[SciPy-user] assign to diagonal values?

Alan G Isaac aisaac@american....
Sat May 23 16:02:53 CDT 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