IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
13.3 Object array methods


13.3 Object array methods

ObjectArray maps each of its operator hooks (e.g. __add__) onto the corresponding object ufunc (e.g. numarray.objects.add). In addition to its hook methods, ObjectArray has these public methods:

tolist( )
tolist returns a nested list of objects corresponding to all the elements in the array.

copy( )
copy returns a shallow copy of the object array.

astype( type)
astype returns either a copy of the ObjectArray or converts it into a numerical array of the specified type.

info( )
This will display key attributes of the object array.

Send comments to the NumArray community.