- data
data = property(fget = raw_data, doc = 'The data, but values at masked locations are meaningless.')
- dtype
dtype = property(fget = _get_dtype, doc = 'type of the array elements.')
- flat
flat = property(_get_flat, _set_flat, doc = 'Access array in flat form.')
- imag
imag = imaginary
- imaginary
imaginary = property(_get_imaginary, _set_imaginary, doc = 'Access the imaginary part of the array')
- mask
mask = property(fget = raw_mask, doc = 'The mask, may be nomask. Values where mask true are meaningless.')
- real
real = property(_get_real, _set_real, doc = 'Access the real part of the array')
- shape
shape = property(_get_shape, _set_shape, doc = 'tuple giving the shape of the array')
- size
size = property(fget = _get_size, doc = 'Number of elements in the array.')
- __abs__(self)
Return absolute(self)
- __add__(self, other)
Return add(self, other)
- __and__(self, other)
Return bitwise_and
- __array__(self, t = None)
Special hook for numeric. Converts to numeric if possible.
- __array_wrap__(self, array, context)
Special hook for ufuncs.
Wraps the numpy array and sets the mask according to
context.
- __div__(self, other)
Return divide(self, other)
- __eq__(self, other)
- __float__(self)
Convert self to float.
- __floordiv__(self, other)
Return divide(self, other)
- __ge__(self, other)
- __getitem__(self, i)
Get item described by i. Not a copy as in previous versions.
- __getslice__(self, i, j)
Get slice described by i, j
- __gt__(self, other)
- __iadd__(self, other)
Add other to self in place.
- __idiv__(self, other)
Divide self by other in place.
- __imul__(self, other)
Add other to self in place.
- __init__(self, data, dtype = None, copy = True, fortran = False, mask = nomask, fill_value = None)
array(data, dtype=None, copy=True, fortran=False, mask=nomask, fill_value=None)
If data already a numeric array, its dtype becomes the default value of dtype.
- __int__(self)
Convert self to int.
- __isub__(self, other)
Subtract other from self in place.
- __le__(self, other)
- __len__(self)
Return length of first dimension. This is weird but Python's
slicing behavior depends on it.
- __lshift__(self, n)
- __lt__(self, other)
- __mod__(self, other)
Return remainder(self, other)
- __mul__(self, other)
Return multiply(self, other)
- __ne__(self, other)
- __neg__(self)
Return negative(self)
- __nonzero__(self)
returns true if any element is non-zero or masked
- __or__(self, other)
Return bitwise_or
- __pos__(self)
Return array(self)
- __pow__(self, other, third = None)
Return power(self, other, third)
- __rdiv__(self, other)
Return divide(other, self)
- __repr__(self)
Calculate the repr representation, using masked for fill if
it is enabled. Otherwise fill with fill value.
- __rfloordiv__(self, other)
Return divide(other, self)
- __rmod__(self, other)
Return remainder(other, self)
- __rshift__(self, n)
- __rsub__(self, other)
Return subtract(other, self)
- __rtruediv__(self, other)
Return divide(other, self)
- __setitem__(self, index, value)
Set item described by index. If value is masked, mask those locations.
- __setslice__(self, i, j, value)
Set slice i:j; if value is masked, mask those locations.
- __sqrt__(self)
Return sqrt(self)
- __str__(self)
Calculate the str representation, using masked for fill if
it is enabled. Otherwise fill with fill value.
- __sub__(self, other)
Return subtract(self, other)
- __truediv__(self, other)
Return divide(self, other)
- __xor__(self, other)
Return bitwise_xor
- astype(self, tc)
return self as array of given type.
- byte_swapped(self)
Returns the raw data field, byte_swapped. Included for consistency
with numeric but doesn't make sense in this context.
- compressed(self)
A 1-D array of all the non-masked data.
- count(self, axis = None)
Count of the non-masked elements in a, or along a certain axis.
- dot(self, other)
s.dot(other) = innerproduct(s, other)
- fill_value(self)
Get the current fill value.
- filled(self, fill_value = None)
A numeric array with masked values filled. If fill_value is None,
use self.fill_value().
If mask is nomask, copy data only if not contiguous.
Result is always a contiguous, numeric array.
# Is contiguous really necessary now?
- ids(self)
Return the ids of the data and mask areas
- iscontiguous(self)
Is the data contiguous?
- item(self)
Return Python scalar if possible.
- itemsize(self)
Item size of each data item.
- outer(self, other)
s.outer(other) = outerproduct(s, other)
- put(self, values)
Set the non-masked entries of self to filled(values).
No change to mask
- putmask(self, values)
Set the masked entries of self to filled(values).
Mask changed to nomask.
- ravel(self)
Return a 1-D view of self.
- raw_data(self)
Obsolete; use data property instead.
The raw data; portions may be meaningless.
May be noncontiguous. Expert use only.
- raw_mask(self)
Obsolete; use mask property instead.
May be noncontiguous. Expert use only.
- reshape(self, s)
This array reshaped to shape s
- set_fill_value(self, v = None)
Set the fill value to v. Omit v to restore default.
- tolist(self, fill_value = None)
Convert to list
- tostring(self, fill_value = None)
Convert to string
- unmask(self)
Replace the mask by nomask if possible.
- unshare_mask(self)
If currently sharing mask, make a copy.