Trees | Index | Help |
---|
Package numarray :: Module records :: Class RecArray |
|
object
--+ |_ndarray
--+ |NDArray
--+ | RecArray
NestedRecArray
Method Summary | |
---|---|
__init__(self,
buffer,
formats,
shape,
names,
byteoffset,
bytestride,
byteorder,
aligned)
| |
Add two RecArray objects in a row wise manner | |
returns pickled state dictionary for RecArray | |
__repr__(self)
| |
restores state of NDArray after unpickling. | |
__str__(self)
| |
Byteswap data in place and change the _byteorder attribute. | |
get the field data as a numeric array | |
getbyteorder(self)
| |
info() prints out key attributes of a record array. | |
reshape(*value)
| |
reverses the state of the _byteorder attribute: little <-> big. | |
view(self)
| |
Inherited from NDArray | |
support for copy.copy() | |
support for copy.deepcopy() | |
| |
__reduce__ returns the pickling "reduction tuple" for an NDArray. | |
| |
Return a new array with the same shape and type, but a copy of the data | |
factory(...) calls the array(...) factory function defined in the source module where the class of 'self' was defined. | |
| |
| |
| |
is_c_array() returns 1 iff the array is aligned and contiguous, and returns 0 otherwise. | |
Size (in bytes) of an array element | |
| |
| |
ravel(self) setshapes 'self' into an equivalent 1D array. | |
repeat() returns a new array with each element 'a[i]' repeated 'r[i]' times. | |
resize() shrinks/grows 'self' to new 'shape', possibly replacing the underlying buffer object. | |
| |
Change array shape in place. | |
| |
Write the array as a binary image to a file. | |
Return a string with a binary copy of the array | |
transpose() re-shapes the array by permuting it's dimensions as specified by 'axes'. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Property Summary | |
---|---|
Inherited from NDArray | |
flat : access to array as 1D | |
shape : tuple of array dimensions |
Method Details |
---|
__add__(self,
other)
Add two RecArray objects in a row wise manner
|
__getstate__(self)returns pickled state dictionary for RecArray
|
__setstate__(self, state)restores state of NDArray after unpickling.
|
byteswap(self)Byteswap data in place and change the _byteorder attribute. |
field(self, fieldName)get the field data as a numeric array |
info(self)info() prints out key attributes of a record array.
|
togglebyteorder(self)reverses the state of the _byteorder attribute: little <-> big. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Apr 21 13:11:50 2005 | http://epydoc.sf.net |