[Matrix-SIG] Numeric Array: adding a 0-D array to a cell in a 2-D array

Herbert L. Roitblat roitblat@hawaii.edu
Thu, 24 Feb 2000 11:32:07 -1000


Thanks, I did decide to do an active cast as a temporary Kluge, but it makes
a slow process even SLOWER.  It seems to me that one ought to be able to add
an array element to itself without having to do an active cast.

Herb
-----Original Message-----
From: Janko Hauser <jhauser@ifm.uni-kiel.de>
To: Herbert L. Roitblat <roitblat@hawaii.edu>
Cc: Matrix-Sig <Matrix-sig@python.org>
Date: Thursday, February 24, 2000 11:02 AM
Subject: [Matrix-SIG] Numeric Array: adding a 0-D array to a cell in a 2-D
array


>Also I can not reproduce this error (older NumPY version) you can try
>to do an active cast.
>
>>>> a[kwd,kwd]=temp.astype('b')[0]
>
>As a side note, if you want to know the type you can use the
>typecode() method on arrays. temp.typecode()
>
>HTH,
>
>__Janko
>
>
>
>
>_______________________________________________
>Matrix-SIG maillist  -  Matrix-SIG@python.org
>http://www.python.org/mailman/listinfo/matrix-sig
>