numeric.scipy.org    Version 1.0b1 API Documentation generated by Endo 2006-08-14

Arrays with possibly masked values. Masked values of 1 exclude the corresponding element from any computation.

Construction:
x = array(data, dtype=None, copy=True, order=False,
mask = nomask, fill_value=None)
If copy=False, every effort is made not to copy the data:
If data is a MaskedArray, and argument mask=nomask, then the candidate data is data.data and the mask used is data.mask. If data is a numeric array, it is used as the candidate raw data. If dtype.char is not None and is != data.dtype.char then a data copy is required. Otherwise, the candidate is used.

If a data copy is required, raw data stored is the result of: numeric.array(data, dtype=dtype.char, copy=copy)

If mask is nomask there are no masked values. Otherwise mask must be convertible to an array of booleans with the same shape as x.

fill_value is used to fill in masked values when necessary, such as when printing and in method/function filled(). The fill_value is not used for computation within this module.

Attributes

Method summary

Methods