Class _ndarray
[show private | hide private]
[frames | no frames]

Type _ndarray

object --+
         |
        _ndarray

Known Subclasses:
NDArray

Method Summary
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delitem__(x, y)
x.__delitem__(y) <==> del x[y]
  __getitem__(x, y)
x.__getitem__(y) <==> x[y]
  __len__(x)
x.__len__() <==> len(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __setitem__(x, i, y)
x.__setitem__(i, y) <==> x[i]=y
byte offset of indices within array _getByteOffset(indices)
_getByteOffset(indices) -> byte offset of indices within array
None _putter(axis1, axis2)
_putter(axis1, axis2) -> None
  _simpleIndexing(...)
_simpleIndexing(key, value=None) gets or sets for integer sequence key
None _taker(axis1, axis2)
_taker(axis1, axis2) -> None
  _universalIndexing(...)
_universalIndexing(key, value=None) gets(value=None) or sets(value!=None) at key
1 if array is fortran-contiguous, 0 otherwise. is_fortran_contiguous()
is_fortran_contiguous() -> 1 if array is fortran-contiguous, 0 otherwise.
1 if array is aligned, 0 otherwise. isaligned()
isaligned() -> 1 if array is aligned, 0 otherwise.
1 if array is contiguous, 0 otherwise. iscontiguous()
iscontiguous() -> 1 if array is contiguous, 0 otherwise.
total number of elements in array. nelements()
nelements() -> total number of elements in array.
None swapaxes(axis1, axis2)
swapaxes(axis1, axis2) -> None
array converted to nested list of scalars. tolist()
tolist() -> array converted to nested list of scalars.
new array object referring to same data buffer view()
view() -> new array object referring to same data buffer
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
getset_descriptor _aligned = <attribute '_aligned' of '_ndarray._ndarray' ...
getset_descriptor _byteoffset = <attribute '_byteoffset' of '_ndarray._nda...
getset_descriptor _bytestride = <attribute '_bytestride' of '_ndarray._nda...
getset_descriptor _contiguous = <attribute '_contiguous' of '_ndarray._nda...
getset_descriptor _data = <attribute '_data' of '_ndarray._ndarray' object...
getset_descriptor _itemsize = <attribute '_itemsize' of '_ndarray._ndarray...
getset_descriptor _shape = <attribute '_shape' of '_ndarray._ndarray' obje...
getset_descriptor _strides = <attribute '_strides' of '_ndarray._ndarray' ...
getset_descriptor flags = <attribute 'flags' of '_ndarray._ndarray' object...
getset_descriptor rank = <attribute 'rank' of '_ndarray._ndarray' objects>

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides:
__builtin__.object.__init__

__delitem__(x, y)
(Index deletion operator)

x.__delitem__(y) <==> del x[y]
Returns:
del x[y]

__getitem__(x, y)
(Indexing operator)

x.__getitem__(y) <==> x[y]
Returns:
x[y]

__len__(x)
(Length operator)

x.__len__() <==> len(x)
Returns:
len(x)

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.object.__new__

__setitem__(x, i, y)
(Index assignment operator)

x.__setitem__(i, y) <==> x[i]=y
Returns:
x[i]=y

_getByteOffset(indices)

_getByteOffset(indices) -> byte offset of indices within array
Returns:
byte offset of indices within array

_putter(axis1, axis2)

_putter(axis1, axis2) -> None
Returns:
None

_simpleIndexing(...)

_simpleIndexing(key, value=None) gets or sets for integer sequence key

_taker(axis1, axis2)

_taker(axis1, axis2) -> None
Returns:
None

_universalIndexing(...)

_universalIndexing(key, value=None) gets(value=None) or sets(value!=None) at key

is_fortran_contiguous()

is_fortran_contiguous() -> 1 if array is fortran-contiguous, 0 otherwise.
Returns:
1 if array is fortran-contiguous, 0 otherwise.

isaligned()

isaligned() -> 1 if array is aligned, 0 otherwise.
Returns:
1 if array is aligned, 0 otherwise.

iscontiguous()

iscontiguous() -> 1 if array is contiguous, 0 otherwise.
Returns:
1 if array is contiguous, 0 otherwise.

nelements()

nelements() -> total number of elements in array.
Returns:
total number of elements in array.

swapaxes(axis1, axis2)

swapaxes(axis1, axis2) -> None
Returns:
None

tolist()

tolist() -> array converted to nested list of scalars.
Returns:
array converted to nested list of scalars.

view()

view() -> new array object referring to same data buffer
Returns:
new array object referring to same data buffer

Class Variable Details

_aligned

Type:
getset_descriptor
Value:
<attribute '_aligned' of '_ndarray._ndarray' objects>                  

_byteoffset

Type:
getset_descriptor
Value:
<attribute '_byteoffset' of '_ndarray._ndarray' objects>               

_bytestride

Type:
getset_descriptor
Value:
<attribute '_bytestride' of '_ndarray._ndarray' objects>               

_contiguous

Type:
getset_descriptor
Value:
<attribute '_contiguous' of '_ndarray._ndarray' objects>               

_data

Type:
getset_descriptor
Value:
<attribute '_data' of '_ndarray._ndarray' objects>                     

_itemsize

Type:
getset_descriptor
Value:
<attribute '_itemsize' of '_ndarray._ndarray' objects>                 

_shape

Type:
getset_descriptor
Value:
<attribute '_shape' of '_ndarray._ndarray' objects>                    

_strides

Type:
getset_descriptor
Value:
<attribute '_strides' of '_ndarray._ndarray' objects>                  

flags

Type:
getset_descriptor
Value:
<attribute 'flags' of '_ndarray._ndarray' objects>                     

rank

Type:
getset_descriptor
Value:
<attribute 'rank' of '_ndarray._ndarray' objects>                      

Generated by Epydoc 2.1 on Thu Apr 21 13:11:50 2005 http://epydoc.sf.net