[SciPy-user] assign to diagonal values?

Alan G Isaac aisaac at american.edu
Sat May 23 17:02:53 EDT 2009


On 1/31/2008 1:37 AM Anne Archibald apparently wrote:
> m[range(n),range(n)]=new_diagonal


Will that work with range objects (in Python 3)?
(Of course, arange could be used.)

Just curious,
Alan Isaac




More information about the SciPy-User mailing list