NumPy manual contents¶
- NumPy User Guide
- Setting up
- Quickstart tutorial
- NumPy basics
- Data types
- Array creation
- I/O with NumPy
- Indexing
- Assignment vs referencing
- Single element indexing
- Other indexing options
- Index arrays
- Indexing Multi-dimensional arrays
- Boolean or “mask” index arrays
- Combining index arrays with slices
- Structural indexing tools
- Assigning values to indexed arrays
- Dealing with variable numbers of indices within programs
- Broadcasting
- Byte-swapping
- Structured arrays
- Writing custom array containers
- Subclassing ndarray
- Introduction
- View casting
- Creating new from template
- Relationship of view casting and new-from-template
- Implications for subclassing
- Simple example - adding an extra attribute to ndarray
- Slightly more realistic example - attribute added to existing array
__array_ufunc__
for ufuncs__array_wrap__
for ufuncs and other functions- Extra gotchas - custom
__del__
methods and ndarray.base - Subclassing and Downstream Compatibility
- Miscellaneous
- NumPy for Matlab users
- Building from source
- Using NumPy C-API
- How to extend NumPy
- Using Python as glue
- Writing your own ufunc
- Beyond the Basics
- NumPy Reference
- Array objects
- The N-dimensional array (
ndarray
)- Constructing arrays
- numpy.ndarray
- numpy.ndarray.all
- numpy.ndarray.any
- numpy.ndarray.argmax
- numpy.ndarray.argmin
- numpy.ndarray.argpartition
- numpy.ndarray.argsort
- numpy.ndarray.astype
- numpy.ndarray.byteswap
- numpy.ndarray.choose
- numpy.ndarray.clip
- numpy.ndarray.compress
- numpy.ndarray.conj
- numpy.ndarray.conjugate
- numpy.ndarray.copy
- numpy.ndarray.cumprod
- numpy.ndarray.cumsum
- numpy.ndarray.diagonal
- numpy.ndarray.dot
- numpy.ndarray.dump
- numpy.ndarray.dumps
- numpy.ndarray.fill
- numpy.ndarray.flatten
- numpy.ndarray.getfield
- numpy.ndarray.item
- numpy.ndarray.itemset
- numpy.ndarray.max
- numpy.ndarray.mean
- numpy.ndarray.min
- numpy.ndarray.newbyteorder
- numpy.ndarray.nonzero
- numpy.ndarray.partition
- numpy.ndarray.prod
- numpy.ndarray.ptp
- numpy.ndarray.put
- numpy.ndarray.ravel
- numpy.ndarray.repeat
- numpy.ndarray.reshape
- numpy.ndarray.resize
- numpy.ndarray.round
- numpy.ndarray.searchsorted
- numpy.ndarray.setfield
- numpy.ndarray.setflags
- numpy.ndarray.sort
- numpy.ndarray.squeeze
- numpy.ndarray.std
- numpy.ndarray.sum
- numpy.ndarray.swapaxes
- numpy.ndarray.take
- numpy.ndarray.tobytes
- numpy.ndarray.tofile
- numpy.ndarray.tolist
- numpy.ndarray.tostring
- numpy.ndarray.trace
- numpy.ndarray.transpose
- numpy.ndarray.var
- numpy.ndarray.view
- numpy.ndarray
- Indexing arrays
- Internal memory layout of an ndarray
- Array attributes
- Array methods
- Array conversion
- numpy.ndarray.item
- numpy.ndarray.tolist
- numpy.ndarray.itemset
- numpy.ndarray.tostring
- numpy.ndarray.tobytes
- numpy.ndarray.tofile
- numpy.ndarray.dump
- numpy.ndarray.dumps
- numpy.ndarray.astype
- numpy.ndarray.byteswap
- numpy.ndarray.copy
- numpy.ndarray.view
- numpy.ndarray.getfield
- numpy.ndarray.setflags
- numpy.ndarray.fill
- Shape manipulation
- Item selection and manipulation
- Calculation
- numpy.ndarray.max
- numpy.ndarray.argmax
- numpy.ndarray.min
- numpy.ndarray.argmin
- numpy.ndarray.ptp
- numpy.ndarray.clip
- numpy.ndarray.conj
- numpy.ndarray.round
- numpy.ndarray.trace
- numpy.ndarray.sum
- numpy.ndarray.cumsum
- numpy.ndarray.mean
- numpy.ndarray.var
- numpy.ndarray.std
- numpy.ndarray.prod
- numpy.ndarray.cumprod
- numpy.ndarray.all
- numpy.ndarray.any
- Array conversion
- Arithmetic, matrix multiplication, and comparison operations
- numpy.ndarray.__lt__
- numpy.ndarray.__le__
- numpy.ndarray.__gt__
- numpy.ndarray.__ge__
- numpy.ndarray.__eq__
- numpy.ndarray.__ne__
- numpy.ndarray.__bool__
- numpy.ndarray.__neg__
- numpy.ndarray.__pos__
- numpy.ndarray.__abs__
- numpy.ndarray.__invert__
- numpy.ndarray.__add__
- numpy.ndarray.__sub__
- numpy.ndarray.__mul__
- numpy.ndarray.__truediv__
- numpy.ndarray.__floordiv__
- numpy.ndarray.__mod__
- numpy.ndarray.__divmod__
- numpy.ndarray.__pow__
- numpy.ndarray.__lshift__
- numpy.ndarray.__rshift__
- numpy.ndarray.__and__
- numpy.ndarray.__or__
- numpy.ndarray.__xor__
- numpy.ndarray.__iadd__
- numpy.ndarray.__isub__
- numpy.ndarray.__imul__
- numpy.ndarray.__itruediv__
- numpy.ndarray.__ifloordiv__
- numpy.ndarray.__imod__
- numpy.ndarray.__ipow__
- numpy.ndarray.__ilshift__
- numpy.ndarray.__irshift__
- numpy.ndarray.__iand__
- numpy.ndarray.__ior__
- numpy.ndarray.__ixor__
- numpy.ndarray.__matmul__
- Special methods
- numpy.ndarray.__copy__
- numpy.ndarray.__deepcopy__
- numpy.ndarray.__reduce__
- numpy.ndarray.__setstate__
- numpy.ndarray.__new__
- numpy.ndarray.__array__
- numpy.ndarray.__array_wrap__
- numpy.ndarray.__len__
- numpy.ndarray.__getitem__
- numpy.ndarray.__setitem__
- numpy.ndarray.__contains__
- numpy.ndarray.__int__
- numpy.ndarray.__float__
- numpy.ndarray.__complex__
- numpy.ndarray.__str__
- numpy.ndarray.__repr__
- Constructing arrays
- Scalars
- Built-in scalar types
- Attributes
- numpy.generic.flags
- numpy.generic.shape
- numpy.generic.strides
- numpy.generic.ndim
- numpy.generic.data
- numpy.generic.size
- numpy.generic.itemsize
- numpy.generic.base
- numpy.generic.dtype
- numpy.generic.real
- numpy.generic.imag
- numpy.generic.flat
- numpy.generic.T
- numpy.generic.__array_interface__
- numpy.generic.__array_struct__
- numpy.generic.__array_priority__
- numpy.generic.__array_wrap__
- Indexing
- Methods
- numpy.generic
- numpy.generic.all
- numpy.generic.any
- numpy.generic.argmax
- numpy.generic.argmin
- numpy.generic.argsort
- numpy.generic.astype
- numpy.generic.byteswap
- numpy.generic.choose
- numpy.generic.clip
- numpy.generic.compress
- numpy.generic.conjugate
- numpy.generic.copy
- numpy.generic.cumprod
- numpy.generic.cumsum
- numpy.generic.diagonal
- numpy.generic.dump
- numpy.generic.dumps
- numpy.generic.fill
- numpy.generic.flatten
- numpy.generic.getfield
- numpy.generic.item
- numpy.generic.itemset
- numpy.generic.max
- numpy.generic.mean
- numpy.generic.min
- numpy.generic.newbyteorder
- numpy.generic.nonzero
- numpy.generic.prod
- numpy.generic.ptp
- numpy.generic.put
- numpy.generic.ravel
- numpy.generic.repeat
- numpy.generic.reshape
- numpy.generic.resize
- numpy.generic.round
- numpy.generic.searchsorted
- numpy.generic.setfield
- numpy.generic.setflags
- numpy.generic.sort
- numpy.generic.squeeze
- numpy.generic.std
- numpy.generic.sum
- numpy.generic.swapaxes
- numpy.generic.take
- numpy.generic.tofile
- numpy.generic.tolist
- numpy.generic.tostring
- numpy.generic.trace
- numpy.generic.transpose
- numpy.generic.var
- numpy.generic.view
- numpy.generic.__array__
- numpy.generic.__array_wrap__
- numpy.generic.squeeze
- numpy.generic.byteswap
- numpy.generic.__reduce__
- numpy.generic.__setstate__
- numpy.generic.setflags
- numpy.generic
- Defining new types
- Data type objects (
dtype
)- Specifying and constructing data types
dtype
- Attributes
- numpy.dtype.type
- numpy.dtype.kind
- numpy.dtype.char
- numpy.dtype.num
- numpy.dtype.str
- numpy.dtype.name
- numpy.dtype.itemsize
- numpy.dtype.byteorder
- numpy.dtype.fields
- numpy.dtype.names
- numpy.dtype.subdtype
- numpy.dtype.shape
- numpy.dtype.hasobject
- numpy.dtype.flags
- numpy.dtype.isbuiltin
- numpy.dtype.isnative
- numpy.dtype.descr
- numpy.dtype.alignment
- numpy.dtype.base
- Methods
- Attributes
- Indexing
- Iterating Over Arrays
- Standard array subclasses
- Special attributes and methods
- Matrix objects
- numpy.matrix.T
- numpy.matrix.H
- numpy.matrix.I
- numpy.matrix.A
- numpy.matrix
- numpy.matrix.all
- numpy.matrix.any
- numpy.matrix.argmax
- numpy.matrix.argmin
- numpy.matrix.argpartition
- numpy.matrix.argsort
- numpy.matrix.astype
- numpy.matrix.byteswap
- numpy.matrix.choose
- numpy.matrix.clip
- numpy.matrix.compress
- numpy.matrix.conj
- numpy.matrix.conjugate
- numpy.matrix.copy
- numpy.matrix.cumprod
- numpy.matrix.cumsum
- numpy.matrix.diagonal
- numpy.matrix.dot
- numpy.matrix.dump
- numpy.matrix.dumps
- numpy.matrix.fill
- numpy.matrix.flatten
- numpy.matrix.getA
- numpy.matrix.getA1
- numpy.matrix.getH
- numpy.matrix.getI
- numpy.matrix.getT
- numpy.matrix.getfield
- numpy.matrix.item
- numpy.matrix.itemset
- numpy.matrix.max
- numpy.matrix.mean
- numpy.matrix.min
- numpy.matrix.newbyteorder
- numpy.matrix.nonzero
- numpy.matrix.partition
- numpy.matrix.prod
- numpy.matrix.ptp
- numpy.matrix.put
- numpy.matrix.ravel
- numpy.matrix.repeat
- numpy.matrix.reshape
- numpy.matrix.resize
- numpy.matrix.round
- numpy.matrix.searchsorted
- numpy.matrix.setfield
- numpy.matrix.setflags
- numpy.matrix.sort
- numpy.matrix.squeeze
- numpy.matrix.std
- numpy.matrix.sum
- numpy.matrix.swapaxes
- numpy.matrix.take
- numpy.matrix.tobytes
- numpy.matrix.tofile
- numpy.matrix.tolist
- numpy.matrix.tostring
- numpy.matrix.trace
- numpy.matrix.transpose
- numpy.matrix.var
- numpy.matrix.view
- numpy.asmatrix
- numpy.bmat
- Memory-mapped file arrays
- Character arrays (
numpy.char
)- numpy.chararray
- numpy.chararray.astype
- numpy.chararray.argsort
- numpy.chararray.copy
- numpy.chararray.count
- numpy.chararray.decode
- numpy.chararray.dump
- numpy.chararray.dumps
- numpy.chararray.encode
- numpy.chararray.endswith
- numpy.chararray.expandtabs
- numpy.chararray.fill
- numpy.chararray.find
- numpy.chararray.flatten
- numpy.chararray.getfield
- numpy.chararray.index
- numpy.chararray.isalnum
- numpy.chararray.isalpha
- numpy.chararray.isdecimal
- numpy.chararray.isdigit
- numpy.chararray.islower
- numpy.chararray.isnumeric
- numpy.chararray.isspace
- numpy.chararray.istitle
- numpy.chararray.isupper
- numpy.chararray.item
- numpy.chararray.join
- numpy.chararray.ljust
- numpy.chararray.lower
- numpy.chararray.lstrip
- numpy.chararray.nonzero
- numpy.chararray.put
- numpy.chararray.ravel
- numpy.chararray.repeat
- numpy.chararray.replace
- numpy.chararray.reshape
- numpy.chararray.resize
- numpy.chararray.rfind
- numpy.chararray.rindex
- numpy.chararray.rjust
- numpy.chararray.rsplit
- numpy.chararray.rstrip
- numpy.chararray.searchsorted
- numpy.chararray.setfield
- numpy.chararray.setflags
- numpy.chararray.sort
- numpy.chararray.split
- numpy.chararray.splitlines
- numpy.chararray.squeeze
- numpy.chararray.startswith
- numpy.chararray.strip
- numpy.chararray.swapaxes
- numpy.chararray.swapcase
- numpy.chararray.take
- numpy.chararray.title
- numpy.chararray.tofile
- numpy.chararray.tolist
- numpy.chararray.tostring
- numpy.chararray.translate
- numpy.chararray.transpose
- numpy.chararray.upper
- numpy.chararray.view
- numpy.chararray.zfill
- numpy.core.defchararray.array
- numpy.chararray
- Record arrays (
numpy.rec
)- numpy.recarray
- numpy.recarray.all
- numpy.recarray.any
- numpy.recarray.argmax
- numpy.recarray.argmin
- numpy.recarray.argpartition
- numpy.recarray.argsort
- numpy.recarray.astype
- numpy.recarray.byteswap
- numpy.recarray.choose
- numpy.recarray.clip
- numpy.recarray.compress
- numpy.recarray.conj
- numpy.recarray.conjugate
- numpy.recarray.copy
- numpy.recarray.cumprod
- numpy.recarray.cumsum
- numpy.recarray.diagonal
- numpy.recarray.dot
- numpy.recarray.dump
- numpy.recarray.dumps
- numpy.recarray.fill
- numpy.recarray.flatten
- numpy.recarray.getfield
- numpy.recarray.item
- numpy.recarray.itemset
- numpy.recarray.max
- numpy.recarray.mean
- numpy.recarray.min
- numpy.recarray.newbyteorder
- numpy.recarray.nonzero
- numpy.recarray.partition
- numpy.recarray.prod
- numpy.recarray.ptp
- numpy.recarray.put
- numpy.recarray.ravel
- numpy.recarray.repeat
- numpy.recarray.reshape
- numpy.recarray.resize
- numpy.recarray.round
- numpy.recarray.searchsorted
- numpy.recarray.setfield
- numpy.recarray.setflags
- numpy.recarray.sort
- numpy.recarray.squeeze
- numpy.recarray.std
- numpy.recarray.sum
- numpy.recarray.swapaxes
- numpy.recarray.take
- numpy.recarray.tobytes
- numpy.recarray.tofile
- numpy.recarray.tolist
- numpy.recarray.tostring
- numpy.recarray.trace
- numpy.recarray.transpose
- numpy.recarray.var
- numpy.recarray.view
- numpy.record
- numpy.record.all
- numpy.record.any
- numpy.record.argmax
- numpy.record.argmin
- numpy.record.argsort
- numpy.record.astype
- numpy.record.byteswap
- numpy.record.choose
- numpy.record.clip
- numpy.record.compress
- numpy.record.conjugate
- numpy.record.copy
- numpy.record.cumprod
- numpy.record.cumsum
- numpy.record.diagonal
- numpy.record.dump
- numpy.record.dumps
- numpy.record.fill
- numpy.record.flatten
- numpy.record.getfield
- numpy.record.item
- numpy.record.itemset
- numpy.record.max
- numpy.record.mean
- numpy.record.min
- numpy.record.newbyteorder
- numpy.record.nonzero
- numpy.record.pprint
- numpy.record.prod
- numpy.record.ptp
- numpy.record.put
- numpy.record.ravel
- numpy.record.repeat
- numpy.record.reshape
- numpy.record.resize
- numpy.record.round
- numpy.record.searchsorted
- numpy.record.setfield
- numpy.record.setflags
- numpy.record.sort
- numpy.record.squeeze
- numpy.record.std
- numpy.record.sum
- numpy.record.swapaxes
- numpy.record.take
- numpy.record.tofile
- numpy.record.tolist
- numpy.record.tostring
- numpy.record.trace
- numpy.record.transpose
- numpy.record.var
- numpy.record.view
- numpy.recarray
- Masked arrays (
numpy.ma
) - Standard container class
- Array Iterators
- Masked arrays
- The
numpy.ma
module - Using numpy.ma
- Constructing masked arrays
- numpy.ma.array
- numpy.ma.masked_array
- numpy.ma.asarray
- numpy.ma.asanyarray
- numpy.ma.fix_invalid
- numpy.ma.masked_equal
- numpy.ma.masked_greater
- numpy.ma.masked_greater_equal
- numpy.ma.masked_inside
- numpy.ma.masked_invalid
- numpy.ma.masked_less
- numpy.ma.masked_less_equal
- numpy.ma.masked_not_equal
- numpy.ma.masked_object
- numpy.ma.masked_outside
- numpy.ma.masked_values
- numpy.ma.masked_where
- Accessing the data
- Accessing the mask
- Accessing only the valid entries
- Modifying the mask
- Indexing and slicing
- Operations on masked arrays
- Constructing masked arrays
- Examples
- Constants of the
numpy.ma
module - The
MaskedArray
class- Attributes and properties of masked arrays
- numpy.ma.MaskedArray.base
- numpy.ma.MaskedArray.ctypes
- numpy.ma.MaskedArray.dtype
- numpy.ma.MaskedArray.flags
- numpy.ma.MaskedArray.itemsize
- numpy.ma.MaskedArray.nbytes
- numpy.ma.MaskedArray.ndim
- numpy.ma.MaskedArray.shape
- numpy.ma.MaskedArray.size
- numpy.ma.MaskedArray.strides
- numpy.ma.MaskedArray.imag
- numpy.ma.MaskedArray.real
- numpy.ma.MaskedArray.flat
- numpy.ma.MaskedArray.__array_priority__
- Attributes and properties of masked arrays
MaskedArray
methods- Conversion
- numpy.ma.MaskedArray.__float__
- numpy.ma.MaskedArray.__int__
- numpy.ma.MaskedArray.__long__
- numpy.ma.MaskedArray.view
- numpy.ma.MaskedArray.astype
- numpy.ma.MaskedArray.byteswap
- numpy.ma.MaskedArray.compressed
- numpy.ma.MaskedArray.filled
- numpy.ma.MaskedArray.tofile
- numpy.ma.MaskedArray.toflex
- numpy.ma.MaskedArray.tolist
- numpy.ma.MaskedArray.torecords
- numpy.ma.MaskedArray.tostring
- numpy.ma.MaskedArray.tobytes
- Shape manipulation
- Item selection and manipulation
- numpy.ma.MaskedArray.argmax
- numpy.ma.MaskedArray.argmin
- numpy.ma.MaskedArray.argsort
- numpy.ma.MaskedArray.choose
- numpy.ma.MaskedArray.compress
- numpy.ma.MaskedArray.diagonal
- numpy.ma.MaskedArray.fill
- numpy.ma.MaskedArray.item
- numpy.ma.MaskedArray.nonzero
- numpy.ma.MaskedArray.put
- numpy.ma.MaskedArray.repeat
- numpy.ma.MaskedArray.searchsorted
- numpy.ma.MaskedArray.sort
- numpy.ma.MaskedArray.take
- Pickling and copy
- Calculations
- numpy.ma.MaskedArray.all
- numpy.ma.MaskedArray.anom
- numpy.ma.MaskedArray.any
- numpy.ma.MaskedArray.clip
- numpy.ma.MaskedArray.conj
- numpy.ma.MaskedArray.conjugate
- numpy.ma.MaskedArray.cumprod
- numpy.ma.MaskedArray.cumsum
- numpy.ma.MaskedArray.max
- numpy.ma.MaskedArray.mean
- numpy.ma.MaskedArray.min
- numpy.ma.MaskedArray.prod
- numpy.ma.MaskedArray.product
- numpy.ma.MaskedArray.ptp
- numpy.ma.MaskedArray.round
- numpy.ma.MaskedArray.std
- numpy.ma.MaskedArray.sum
- numpy.ma.MaskedArray.trace
- numpy.ma.MaskedArray.var
- Arithmetic and comparison operations
- Comparison operators:
- Truth value of an array (
bool
): - Arithmetic:
- numpy.ma.MaskedArray.__abs__
- numpy.ma.MaskedArray.__add__
- numpy.ma.MaskedArray.__radd__
- numpy.ma.MaskedArray.__sub__
- numpy.ma.MaskedArray.__rsub__
- numpy.ma.MaskedArray.__mul__
- numpy.ma.MaskedArray.__rmul__
- numpy.ma.MaskedArray.__div__
- numpy.ma.MaskedArray.__truediv__
- numpy.ma.MaskedArray.__rtruediv__
- numpy.ma.MaskedArray.__floordiv__
- numpy.ma.MaskedArray.__rfloordiv__
- numpy.ma.MaskedArray.__mod__
- numpy.ma.MaskedArray.__rmod__
- numpy.ma.MaskedArray.__divmod__
- numpy.ma.MaskedArray.__rdivmod__
- numpy.ma.MaskedArray.__pow__
- numpy.ma.MaskedArray.__rpow__
- numpy.ma.MaskedArray.__lshift__
- numpy.ma.MaskedArray.__rlshift__
- numpy.ma.MaskedArray.__rshift__
- numpy.ma.MaskedArray.__rrshift__
- numpy.ma.MaskedArray.__and__
- numpy.ma.MaskedArray.__rand__
- numpy.ma.MaskedArray.__or__
- numpy.ma.MaskedArray.__ror__
- numpy.ma.MaskedArray.__xor__
- numpy.ma.MaskedArray.__rxor__
- Arithmetic, in-place:
- numpy.ma.MaskedArray.__iadd__
- numpy.ma.MaskedArray.__isub__
- numpy.ma.MaskedArray.__imul__
- numpy.ma.MaskedArray.__idiv__
- numpy.ma.MaskedArray.__itruediv__
- numpy.ma.MaskedArray.__ifloordiv__
- numpy.ma.MaskedArray.__imod__
- numpy.ma.MaskedArray.__ipow__
- numpy.ma.MaskedArray.__ilshift__
- numpy.ma.MaskedArray.__irshift__
- numpy.ma.MaskedArray.__iand__
- numpy.ma.MaskedArray.__ior__
- numpy.ma.MaskedArray.__ixor__
- Representation
- Special methods
- numpy.ma.MaskedArray.__copy__
- numpy.ma.MaskedArray.__deepcopy__
- numpy.ma.MaskedArray.__getstate__
- numpy.ma.MaskedArray.__reduce__
- numpy.ma.MaskedArray.__setstate__
- numpy.ma.MaskedArray.__new__
- numpy.ma.MaskedArray.__array__
- numpy.ma.MaskedArray.__array_wrap__
- numpy.ma.MaskedArray.__len__
- numpy.ma.MaskedArray.__getitem__
- numpy.ma.MaskedArray.__setitem__
- numpy.ma.MaskedArray.__delitem__
- numpy.ma.MaskedArray.__contains__
- Specific methods
- Conversion
- Masked array operations
- Constants
- Creation
- Inspecting the array
- numpy.ma.all
- numpy.ma.any
- numpy.ma.count
- numpy.ma.count_masked
- numpy.ma.getmask
- numpy.ma.getmaskarray
- numpy.ma.getdata
- numpy.ma.nonzero
- numpy.ma.shape
- numpy.ma.size
- numpy.ma.is_masked
- numpy.ma.is_mask
- numpy.ma.MaskedArray.all
- numpy.ma.MaskedArray.any
- numpy.ma.MaskedArray.count
- numpy.ma.MaskedArray.nonzero
- numpy.ma.shape
- numpy.ma.size
- Manipulating a MaskedArray
- Operations on masks
- Conversion operations
- > to a masked array
- numpy.ma.asarray
- numpy.ma.asanyarray
- numpy.ma.fix_invalid
- numpy.ma.masked_equal
- numpy.ma.masked_greater
- numpy.ma.masked_greater_equal
- numpy.ma.masked_inside
- numpy.ma.masked_invalid
- numpy.ma.masked_less
- numpy.ma.masked_less_equal
- numpy.ma.masked_not_equal
- numpy.ma.masked_object
- numpy.ma.masked_outside
- numpy.ma.masked_values
- numpy.ma.masked_where
- > to a ndarray
- > to another object
- Pickling and unpickling
- Filling a masked array
- > to a masked array
- Masked arrays arithmetics
- Arithmetics
- numpy.ma.anom
- numpy.ma.anomalies
- numpy.ma.average
- numpy.ma.conjugate
- numpy.ma.corrcoef
- numpy.ma.cov
- numpy.ma.cumsum
- numpy.ma.cumprod
- numpy.ma.mean
- numpy.ma.median
- numpy.ma.power
- numpy.ma.prod
- numpy.ma.std
- numpy.ma.sum
- numpy.ma.var
- numpy.ma.MaskedArray.anom
- numpy.ma.MaskedArray.cumprod
- numpy.ma.MaskedArray.cumsum
- numpy.ma.MaskedArray.mean
- numpy.ma.MaskedArray.prod
- numpy.ma.MaskedArray.std
- numpy.ma.MaskedArray.sum
- numpy.ma.MaskedArray.var
- Minimum/maximum
- Sorting
- Algebra
- Polynomial fit
- Clipping and rounding
- Miscellanea
- Arithmetics
- The
- The Array Interface
- Datetimes and Timedeltas
- The N-dimensional array (
- Constants
- Universal functions (
ufunc
) - Routines
- Array creation routines
- Array manipulation routines
- Binary operations
- String operations
- String operations
- numpy.char.add
- numpy.char.multiply
- numpy.char.mod
- numpy.char.capitalize
- numpy.char.center
- numpy.char.decode
- numpy.char.encode
- numpy.char.expandtabs
- numpy.char.join
- numpy.char.ljust
- numpy.char.lower
- numpy.char.lstrip
- numpy.char.partition
- numpy.char.replace
- numpy.char.rjust
- numpy.char.rpartition
- numpy.char.rsplit
- numpy.char.rstrip
- numpy.char.split
- numpy.char.splitlines
- numpy.char.strip
- numpy.char.swapcase
- numpy.char.title
- numpy.char.translate
- numpy.char.upper
- numpy.char.zfill
- Comparison
- String information
- numpy.char.count
- numpy.char.endswith
- numpy.char.find
- numpy.char.index
- numpy.char.isalpha
- numpy.char.isalnum
- numpy.char.isdecimal
- numpy.char.isdigit
- numpy.char.islower
- numpy.char.isnumeric
- numpy.char.isspace
- numpy.char.istitle
- numpy.char.isupper
- numpy.char.rfind
- numpy.char.rindex
- numpy.char.startswith
- numpy.char.str_len
- Convenience class
- numpy.char.array
- numpy.char.asarray
- numpy.char.chararray
- numpy.char.chararray.astype
- numpy.char.chararray.argsort
- numpy.char.chararray.copy
- numpy.char.chararray.count
- numpy.char.chararray.decode
- numpy.char.chararray.dump
- numpy.char.chararray.dumps
- numpy.char.chararray.encode
- numpy.char.chararray.endswith
- numpy.char.chararray.expandtabs
- numpy.char.chararray.fill
- numpy.char.chararray.find
- numpy.char.chararray.flatten
- numpy.char.chararray.getfield
- numpy.char.chararray.index
- numpy.char.chararray.isalnum
- numpy.char.chararray.isalpha
- numpy.char.chararray.isdecimal
- numpy.char.chararray.isdigit
- numpy.char.chararray.islower
- numpy.char.chararray.isnumeric
- numpy.char.chararray.isspace
- numpy.char.chararray.istitle
- numpy.char.chararray.isupper
- numpy.char.chararray.item
- numpy.char.chararray.join
- numpy.char.chararray.ljust
- numpy.char.chararray.lower
- numpy.char.chararray.lstrip
- numpy.char.chararray.nonzero
- numpy.char.chararray.put
- numpy.char.chararray.ravel
- numpy.char.chararray.repeat
- numpy.char.chararray.replace
- numpy.char.chararray.reshape
- numpy.char.chararray.resize
- numpy.char.chararray.rfind
- numpy.char.chararray.rindex
- numpy.char.chararray.rjust
- numpy.char.chararray.rsplit
- numpy.char.chararray.rstrip
- numpy.char.chararray.searchsorted
- numpy.char.chararray.setfield
- numpy.char.chararray.setflags
- numpy.char.chararray.sort
- numpy.char.chararray.split
- numpy.char.chararray.splitlines
- numpy.char.chararray.squeeze
- numpy.char.chararray.startswith
- numpy.char.chararray.strip
- numpy.char.chararray.swapaxes
- numpy.char.chararray.swapcase
- numpy.char.chararray.take
- numpy.char.chararray.title
- numpy.char.chararray.tofile
- numpy.char.chararray.tolist
- numpy.char.chararray.tostring
- numpy.char.chararray.translate
- numpy.char.chararray.transpose
- numpy.char.chararray.upper
- numpy.char.chararray.view
- numpy.char.chararray.zfill
- String operations
- C-Types Foreign Function Interface (
numpy.ctypeslib
) - Datetime Support Functions
- Data type routines
- Optionally Scipy-accelerated routines (
numpy.dual
) - Mathematical functions with automatic domain (
numpy.emath
) - Floating point error handling
- Discrete Fourier Transform (
numpy.fft
) - Financial functions
- Functional programming
- NumPy-specific help functions
- Indexing routines
- Input and output
- Linear algebra (
numpy.linalg
) - Logic functions
- Masked array operations
- Constants
- Creation
- Inspecting the array
- numpy.ma.all
- numpy.ma.any
- numpy.ma.count
- numpy.ma.count_masked
- numpy.ma.getmask
- numpy.ma.getmaskarray
- numpy.ma.getdata
- numpy.ma.nonzero
- numpy.ma.shape
- numpy.ma.size
- numpy.ma.is_masked
- numpy.ma.is_mask
- numpy.ma.MaskedArray.all
- numpy.ma.MaskedArray.any
- numpy.ma.MaskedArray.count
- numpy.ma.MaskedArray.nonzero
- numpy.ma.shape
- numpy.ma.size
- Manipulating a MaskedArray
- Operations on masks
- Conversion operations
- > to a masked array
- numpy.ma.asarray
- numpy.ma.asanyarray
- numpy.ma.fix_invalid
- numpy.ma.masked_equal
- numpy.ma.masked_greater
- numpy.ma.masked_greater_equal
- numpy.ma.masked_inside
- numpy.ma.masked_invalid
- numpy.ma.masked_less
- numpy.ma.masked_less_equal
- numpy.ma.masked_not_equal
- numpy.ma.masked_object
- numpy.ma.masked_outside
- numpy.ma.masked_values
- numpy.ma.masked_where
- > to a ndarray
- > to another object
- Pickling and unpickling
- Filling a masked array
- > to a masked array
- Masked arrays arithmetics
- Arithmetics
- numpy.ma.anom
- numpy.ma.anomalies
- numpy.ma.average
- numpy.ma.conjugate
- numpy.ma.corrcoef
- numpy.ma.cov
- numpy.ma.cumsum
- numpy.ma.cumprod
- numpy.ma.mean
- numpy.ma.median
- numpy.ma.power
- numpy.ma.prod
- numpy.ma.std
- numpy.ma.sum
- numpy.ma.var
- numpy.ma.MaskedArray.anom
- numpy.ma.MaskedArray.cumprod
- numpy.ma.MaskedArray.cumsum
- numpy.ma.MaskedArray.mean
- numpy.ma.MaskedArray.prod
- numpy.ma.MaskedArray.std
- numpy.ma.MaskedArray.sum
- numpy.ma.MaskedArray.var
- Minimum/maximum
- Sorting
- Algebra
- Polynomial fit
- Clipping and rounding
- Miscellanea
- Arithmetics
- Mathematical functions
- Matrix library (
numpy.matlib
) - Miscellaneous routines
- Padding Arrays
- Polynomials
- Transition notice
- Polynomial Package
- Using the Convenience Classes
- Polynomial Module (
numpy.polynomial.polynomial
)- Polynomial Class
- numpy.polynomial.polynomial.Polynomial
- numpy.polynomial.polynomial.Polynomial.__call__
- numpy.polynomial.polynomial.Polynomial.basis
- numpy.polynomial.polynomial.Polynomial.cast
- numpy.polynomial.polynomial.Polynomial.convert
- numpy.polynomial.polynomial.Polynomial.copy
- numpy.polynomial.polynomial.Polynomial.cutdeg
- numpy.polynomial.polynomial.Polynomial.degree
- numpy.polynomial.polynomial.Polynomial.deriv
- numpy.polynomial.polynomial.Polynomial.fit
- numpy.polynomial.polynomial.Polynomial.fromroots
- numpy.polynomial.polynomial.Polynomial.has_samecoef
- numpy.polynomial.polynomial.Polynomial.has_samedomain
- numpy.polynomial.polynomial.Polynomial.has_sametype
- numpy.polynomial.polynomial.Polynomial.has_samewindow
- numpy.polynomial.polynomial.Polynomial.identity
- numpy.polynomial.polynomial.Polynomial.integ
- numpy.polynomial.polynomial.Polynomial.linspace
- numpy.polynomial.polynomial.Polynomial.mapparms
- numpy.polynomial.polynomial.Polynomial.roots
- numpy.polynomial.polynomial.Polynomial.trim
- numpy.polynomial.polynomial.Polynomial.truncate
- numpy.polynomial.polynomial.Polynomial
- Basics
- numpy.polynomial.polynomial.polyval
- numpy.polynomial.polynomial.polyval2d
- numpy.polynomial.polynomial.polyval3d
- numpy.polynomial.polynomial.polygrid2d
- numpy.polynomial.polynomial.polygrid3d
- numpy.polynomial.polynomial.polyroots
- numpy.polynomial.polynomial.polyfromroots
- numpy.polynomial.polynomial.polyvalfromroots
- Fitting
- Calculus
- Algebra
- Miscellaneous
- Polynomial Class
- Chebyshev Module (
numpy.polynomial.chebyshev
)- Chebyshev Class
- numpy.polynomial.chebyshev.Chebyshev
- numpy.polynomial.chebyshev.Chebyshev.__call__
- numpy.polynomial.chebyshev.Chebyshev.basis
- numpy.polynomial.chebyshev.Chebyshev.cast
- numpy.polynomial.chebyshev.Chebyshev.convert
- numpy.polynomial.chebyshev.Chebyshev.copy
- numpy.polynomial.chebyshev.Chebyshev.cutdeg
- numpy.polynomial.chebyshev.Chebyshev.degree
- numpy.polynomial.chebyshev.Chebyshev.deriv
- numpy.polynomial.chebyshev.Chebyshev.fit
- numpy.polynomial.chebyshev.Chebyshev.fromroots
- numpy.polynomial.chebyshev.Chebyshev.has_samecoef
- numpy.polynomial.chebyshev.Chebyshev.has_samedomain
- numpy.polynomial.chebyshev.Chebyshev.has_sametype
- numpy.polynomial.chebyshev.Chebyshev.has_samewindow
- numpy.polynomial.chebyshev.Chebyshev.identity
- numpy.polynomial.chebyshev.Chebyshev.integ
- numpy.polynomial.chebyshev.Chebyshev.interpolate
- numpy.polynomial.chebyshev.Chebyshev.linspace
- numpy.polynomial.chebyshev.Chebyshev.mapparms
- numpy.polynomial.chebyshev.Chebyshev.roots
- numpy.polynomial.chebyshev.Chebyshev.trim
- numpy.polynomial.chebyshev.Chebyshev.truncate
- numpy.polynomial.chebyshev.Chebyshev
- Basics
- Fitting
- Calculus
- Algebra
- Quadrature
- Miscellaneous
- numpy.polynomial.chebyshev.chebcompanion
- numpy.polynomial.chebyshev.chebdomain
- numpy.polynomial.chebyshev.chebzero
- numpy.polynomial.chebyshev.chebone
- numpy.polynomial.chebyshev.chebx
- numpy.polynomial.chebyshev.chebtrim
- numpy.polynomial.chebyshev.chebline
- numpy.polynomial.chebyshev.cheb2poly
- numpy.polynomial.chebyshev.poly2cheb
- Chebyshev Class
- Legendre Module (
numpy.polynomial.legendre
)- Legendre Class
- numpy.polynomial.legendre.Legendre
- numpy.polynomial.legendre.Legendre.__call__
- numpy.polynomial.legendre.Legendre.basis
- numpy.polynomial.legendre.Legendre.cast
- numpy.polynomial.legendre.Legendre.convert
- numpy.polynomial.legendre.Legendre.copy
- numpy.polynomial.legendre.Legendre.cutdeg
- numpy.polynomial.legendre.Legendre.degree
- numpy.polynomial.legendre.Legendre.deriv
- numpy.polynomial.legendre.Legendre.fit
- numpy.polynomial.legendre.Legendre.fromroots
- numpy.polynomial.legendre.Legendre.has_samecoef
- numpy.polynomial.legendre.Legendre.has_samedomain
- numpy.polynomial.legendre.Legendre.has_sametype
- numpy.polynomial.legendre.Legendre.has_samewindow
- numpy.polynomial.legendre.Legendre.identity
- numpy.polynomial.legendre.Legendre.integ
- numpy.polynomial.legendre.Legendre.linspace
- numpy.polynomial.legendre.Legendre.mapparms
- numpy.polynomial.legendre.Legendre.roots
- numpy.polynomial.legendre.Legendre.trim
- numpy.polynomial.legendre.Legendre.truncate
- numpy.polynomial.legendre.Legendre
- Basics
- Fitting
- Calculus
- Algebra
- Quadrature
- Miscellaneous
- numpy.polynomial.legendre.legcompanion
- numpy.polynomial.legendre.legdomain
- numpy.polynomial.legendre.legzero
- numpy.polynomial.legendre.legone
- numpy.polynomial.legendre.legx
- numpy.polynomial.legendre.legtrim
- numpy.polynomial.legendre.legline
- numpy.polynomial.legendre.leg2poly
- numpy.polynomial.legendre.poly2leg
- Legendre Class
- Laguerre Module (
numpy.polynomial.laguerre
)- Laguerre Class
- numpy.polynomial.laguerre.Laguerre
- numpy.polynomial.laguerre.Laguerre.__call__
- numpy.polynomial.laguerre.Laguerre.basis
- numpy.polynomial.laguerre.Laguerre.cast
- numpy.polynomial.laguerre.Laguerre.convert
- numpy.polynomial.laguerre.Laguerre.copy
- numpy.polynomial.laguerre.Laguerre.cutdeg
- numpy.polynomial.laguerre.Laguerre.degree
- numpy.polynomial.laguerre.Laguerre.deriv
- numpy.polynomial.laguerre.Laguerre.fit
- numpy.polynomial.laguerre.Laguerre.fromroots
- numpy.polynomial.laguerre.Laguerre.has_samecoef
- numpy.polynomial.laguerre.Laguerre.has_samedomain
- numpy.polynomial.laguerre.Laguerre.has_sametype
- numpy.polynomial.laguerre.Laguerre.has_samewindow
- numpy.polynomial.laguerre.Laguerre.identity
- numpy.polynomial.laguerre.Laguerre.integ
- numpy.polynomial.laguerre.Laguerre.linspace
- numpy.polynomial.laguerre.Laguerre.mapparms
- numpy.polynomial.laguerre.Laguerre.roots
- numpy.polynomial.laguerre.Laguerre.trim
- numpy.polynomial.laguerre.Laguerre.truncate
- numpy.polynomial.laguerre.Laguerre
- Basics
- Fitting
- Calculus
- Algebra
- Quadrature
- Miscellaneous
- numpy.polynomial.laguerre.lagcompanion
- numpy.polynomial.laguerre.lagdomain
- numpy.polynomial.laguerre.lagzero
- numpy.polynomial.laguerre.lagone
- numpy.polynomial.laguerre.lagx
- numpy.polynomial.laguerre.lagtrim
- numpy.polynomial.laguerre.lagline
- numpy.polynomial.laguerre.lag2poly
- numpy.polynomial.laguerre.poly2lag
- Laguerre Class
- Hermite Module, “Physicists’” (
numpy.polynomial.hermite
)- Hermite Class
- numpy.polynomial.hermite.Hermite
- numpy.polynomial.hermite.Hermite.__call__
- numpy.polynomial.hermite.Hermite.basis
- numpy.polynomial.hermite.Hermite.cast
- numpy.polynomial.hermite.Hermite.convert
- numpy.polynomial.hermite.Hermite.copy
- numpy.polynomial.hermite.Hermite.cutdeg
- numpy.polynomial.hermite.Hermite.degree
- numpy.polynomial.hermite.Hermite.deriv
- numpy.polynomial.hermite.Hermite.fit
- numpy.polynomial.hermite.Hermite.fromroots
- numpy.polynomial.hermite.Hermite.has_samecoef
- numpy.polynomial.hermite.Hermite.has_samedomain
- numpy.polynomial.hermite.Hermite.has_sametype
- numpy.polynomial.hermite.Hermite.has_samewindow
- numpy.polynomial.hermite.Hermite.identity
- numpy.polynomial.hermite.Hermite.integ
- numpy.polynomial.hermite.Hermite.linspace
- numpy.polynomial.hermite.Hermite.mapparms
- numpy.polynomial.hermite.Hermite.roots
- numpy.polynomial.hermite.Hermite.trim
- numpy.polynomial.hermite.Hermite.truncate
- numpy.polynomial.hermite.Hermite
- Basics
- Fitting
- Calculus
- Algebra
- Quadrature
- Miscellaneous
- numpy.polynomial.hermite.hermcompanion
- numpy.polynomial.hermite.hermdomain
- numpy.polynomial.hermite.hermzero
- numpy.polynomial.hermite.hermone
- numpy.polynomial.hermite.hermx
- numpy.polynomial.hermite.hermtrim
- numpy.polynomial.hermite.hermline
- numpy.polynomial.hermite.herm2poly
- numpy.polynomial.hermite.poly2herm
- Hermite Class
- HermiteE Module, “Probabilists’” (
numpy.polynomial.hermite_e
)- HermiteE Class
- numpy.polynomial.hermite_e.HermiteE
- numpy.polynomial.hermite_e.HermiteE.__call__
- numpy.polynomial.hermite_e.HermiteE.basis
- numpy.polynomial.hermite_e.HermiteE.cast
- numpy.polynomial.hermite_e.HermiteE.convert
- numpy.polynomial.hermite_e.HermiteE.copy
- numpy.polynomial.hermite_e.HermiteE.cutdeg
- numpy.polynomial.hermite_e.HermiteE.degree
- numpy.polynomial.hermite_e.HermiteE.deriv
- numpy.polynomial.hermite_e.HermiteE.fit
- numpy.polynomial.hermite_e.HermiteE.fromroots
- numpy.polynomial.hermite_e.HermiteE.has_samecoef
- numpy.polynomial.hermite_e.HermiteE.has_samedomain
- numpy.polynomial.hermite_e.HermiteE.has_sametype
- numpy.polynomial.hermite_e.HermiteE.has_samewindow
- numpy.polynomial.hermite_e.HermiteE.identity
- numpy.polynomial.hermite_e.HermiteE.integ
- numpy.polynomial.hermite_e.HermiteE.linspace
- numpy.polynomial.hermite_e.HermiteE.mapparms
- numpy.polynomial.hermite_e.HermiteE.roots
- numpy.polynomial.hermite_e.HermiteE.trim
- numpy.polynomial.hermite_e.HermiteE.truncate
- numpy.polynomial.hermite_e.HermiteE
- Basics
- Fitting
- Calculus
- Algebra
- Quadrature
- Miscellaneous
- numpy.polynomial.hermite_e.hermecompanion
- numpy.polynomial.hermite_e.hermedomain
- numpy.polynomial.hermite_e.hermezero
- numpy.polynomial.hermite_e.hermeone
- numpy.polynomial.hermite_e.hermex
- numpy.polynomial.hermite_e.hermetrim
- numpy.polynomial.hermite_e.hermeline
- numpy.polynomial.hermite_e.herme2poly
- numpy.polynomial.hermite_e.poly2herme
- HermiteE Class
- Polyutils
- Poly1d
- Polynomial Package
- Transition notice
- Random sampling (
numpy.random
)- Quick Start
- Introduction
- Concepts
- Random Generator
- Accessing the BitGenerator
- Simple random data
- Permutations
- Distributions
- numpy.random.Generator.beta
- numpy.random.Generator.binomial
- numpy.random.Generator.chisquare
- numpy.random.Generator.dirichlet
- numpy.random.Generator.exponential
- numpy.random.Generator.f
- numpy.random.Generator.gamma
- numpy.random.Generator.geometric
- numpy.random.Generator.gumbel
- numpy.random.Generator.hypergeometric
- numpy.random.Generator.laplace
- numpy.random.Generator.logistic
- numpy.random.Generator.lognormal
- numpy.random.Generator.logseries
- numpy.random.Generator.multinomial
- numpy.random.Generator.multivariate_normal
- numpy.random.Generator.negative_binomial
- numpy.random.Generator.noncentral_chisquare
- numpy.random.Generator.noncentral_f
- numpy.random.Generator.normal
- numpy.random.Generator.pareto
- numpy.random.Generator.poisson
- numpy.random.Generator.power
- numpy.random.Generator.rayleigh
- numpy.random.Generator.standard_cauchy
- numpy.random.Generator.standard_exponential
- numpy.random.Generator.standard_gamma
- numpy.random.Generator.standard_normal
- numpy.random.Generator.standard_t
- numpy.random.Generator.triangular
- numpy.random.Generator.uniform
- numpy.random.Generator.vonmises
- numpy.random.Generator.wald
- numpy.random.Generator.weibull
- numpy.random.Generator.zipf
- legacy mtrand
- Seeding and State
- Simple random data
- Permutations
- Distributions
- numpy.random.mtrand.RandomState.beta
- numpy.random.mtrand.RandomState.binomial
- numpy.random.mtrand.RandomState.chisquare
- numpy.random.mtrand.RandomState.dirichlet
- numpy.random.mtrand.RandomState.exponential
- numpy.random.mtrand.RandomState.f
- numpy.random.mtrand.RandomState.gamma
- numpy.random.mtrand.RandomState.geometric
- numpy.random.mtrand.RandomState.gumbel
- numpy.random.mtrand.RandomState.hypergeometric
- numpy.random.mtrand.RandomState.laplace
- numpy.random.mtrand.RandomState.logistic
- numpy.random.mtrand.RandomState.lognormal
- numpy.random.mtrand.RandomState.logseries
- numpy.random.mtrand.RandomState.multinomial
- numpy.random.mtrand.RandomState.multivariate_normal
- numpy.random.mtrand.RandomState.negative_binomial
- numpy.random.mtrand.RandomState.noncentral_chisquare
- numpy.random.mtrand.RandomState.noncentral_f
- numpy.random.mtrand.RandomState.normal
- numpy.random.mtrand.RandomState.pareto
- numpy.random.mtrand.RandomState.poisson
- numpy.random.mtrand.RandomState.power
- numpy.random.mtrand.RandomState.rayleigh
- numpy.random.mtrand.RandomState.standard_cauchy
- numpy.random.mtrand.RandomState.standard_exponential
- numpy.random.mtrand.RandomState.standard_gamma
- numpy.random.mtrand.RandomState.standard_normal
- numpy.random.mtrand.RandomState.standard_t
- numpy.random.mtrand.RandomState.triangular
- numpy.random.mtrand.RandomState.uniform
- numpy.random.mtrand.RandomState.vonmises
- numpy.random.mtrand.RandomState.wald
- numpy.random.mtrand.RandomState.weibull
- numpy.random.mtrand.RandomState.zipf
- Bit Generators
- Seeding and Entropy
- Random Generator
- Features
- Set routines
- Sorting, searching, and counting
- Statistics
- Test Support (
numpy.testing
)- Asserts
- numpy.testing.assert_almost_equal
- numpy.testing.assert_approx_equal
- numpy.testing.assert_array_almost_equal
- numpy.testing.assert_allclose
- numpy.testing.assert_array_almost_equal_nulp
- numpy.testing.assert_array_max_ulp
- numpy.testing.assert_array_equal
- numpy.testing.assert_array_less
- numpy.testing.assert_equal
- numpy.testing.assert_raises
- numpy.testing.assert_raises_regex
- numpy.testing.assert_warns
- numpy.testing.assert_string_equal
- Decorators
- Test Running
- Guidelines
- Asserts
- Window functions
- Packaging (
numpy.distutils
)- Modules in
numpy.distutils
- misc_util
- numpy.distutils.misc_util.get_numpy_include_dirs
- numpy.distutils.misc_util.dict_append
- numpy.distutils.misc_util.appendpath
- numpy.distutils.misc_util.allpath
- numpy.distutils.misc_util.dot_join
- numpy.distutils.misc_util.generate_config_py
- numpy.distutils.misc_util.get_cmd
- numpy.distutils.misc_util.terminal_has_colors
- numpy.distutils.misc_util.red_text
- numpy.distutils.misc_util.green_text
- numpy.distutils.misc_util.yellow_text
- numpy.distutils.misc_util.blue_text
- numpy.distutils.misc_util.cyan_text
- numpy.distutils.misc_util.cyg2win32
- numpy.distutils.misc_util.all_strings
- numpy.distutils.misc_util.has_f_sources
- numpy.distutils.misc_util.has_cxx_sources
- numpy.distutils.misc_util.filter_sources
- numpy.distutils.misc_util.get_dependencies
- numpy.distutils.misc_util.is_local_src_dir
- numpy.distutils.misc_util.get_ext_source_files
- numpy.distutils.misc_util.get_script_files
- Other modules
- misc_util
- Building Installable C libraries
- Conversion of
.src
files
- Modules in
- NumPy Distutils - Users Guide
- SciPy structure
- Requirements for SciPy packages
- The
setup.py
file- SciPy pure Python package example
Configuration
instance attributesConfiguration
instance methods- Conversion of
.src
files using Templates - Fortran files
- Other files
- Useful functions in
numpy.distutils.misc_util
numpy.distutils.system_info
modulenumpy.distutils.cpuinfo
modulenumpy.distutils.log
modulenumpy.distutils.exec_command
module
- The
__init__.py
file - Extra features in NumPy Distutils
- NumPy C-API
- Python Types and C-Structures
- New Python Types Defined
- PyArray_Type and PyArrayObject
- PyArrayDescr_Type and PyArray_Descr
- PyUFunc_Type and PyUFuncObject
- PyArrayIter_Type and PyArrayIterObject
- PyArrayMultiIter_Type and PyArrayMultiIterObject
- PyArrayNeighborhoodIter_Type and PyArrayNeighborhoodIterObject
- PyArrayFlags_Type and PyArrayFlagsObject
- ScalarArrayTypes
- Other C-Structures
- New Python Types Defined
- System configuration
- Data Type API
- Array API
- Array Iterator API
- UFunc API
- Generalized Universal Function API
- NumPy core libraries
- C API Deprecations
- Python Types and C-Structures
- NumPy internals
- NumPy and SWIG
- Acknowledgements
- Array objects
- F2PY Users Guide and Reference Manual
- Contributing to NumPy
- Development process - summary
- Development process - details
- NumPy Code of Conduct
- Git Basics
- Setting up and using your development environment
- Development workflow
- NumPy benchmarks
- NumPy C Style Guide
- Releasing a Version
- How to Prepare a Release
- Current build and release info
- Supported platforms and versions
- Tool chain
- What is released
- Release process
- Agree on a release schedule
- Make sure current branch builds a package correctly
- Check that docs can be built
- Check deprecations
- Check the C API version number
- Check the release notes
- Update the release status and create a release “tag”
- Apply patch to fix bogus strides
- Update the version of the master branch
- Trigger the wheel builds on travis-ci and Appveyor
- Make the release
- Update PyPI
- Push the release tag and commit
- Update docs.scipy.org
- Update scipy.org
- Announce to the lists
- Announce to Linux Weekly News
- After the final release
- Step-by-Step Directions
- Release Walkthrough
- Backport Pull Requests
- Update Release documentation
- Finish the Release Note
- Prepare the release commit
- Build source releases
- Build wheels
- Download wheels
- Generate the README files
- Tag the release
- Reset the maintenance branch into a development state
- Upload to PyPI
- Upload files to github
- Upload documents to docs.scipy.org
- Announce the release on scipy.org
- Announce to mailing lists
- Post-Release Tasks
- Release Walkthrough
- How to Prepare a Release
- NumPy governance
- NumPy’s Documentation
- Release Notes
- NumPy 1.17.0 Release Notes
- Highlights
- New functions
- Deprecations
- Future Changes
- Compatibility notes
float16
subnormal rounding- Signed zero when using divmod
MaskedArray.mask
now returns a view of the mask, not the mask itself- Do not lookup
__buffer__
attribute innumpy.frombuffer
out
is buffered for memory overlaps intake
,choose
,put
- Unpickling while loading requires explicit opt-in
- Potential changes to the random stream in old random module
i0
now always returns a result with the same shape as the inputcan_cast
no longer assumes all unsafe casting is allowedndarray.flags.writeable
can be switched to true slightly more often
- C API changes
- New Features
- New extensible
numpy.random
module with selectable random number generators - libFLAME
- User-defined BLAS detection order
- User-defined LAPACK detection order
ufunc.reduce
and related functions now accept awhere
mask- Timsort and radix sort have replaced mergesort for stable sorting
packbits
andunpackbits
accept anorder
keywordunpackbits
now accepts acount
parameterlinalg.svd
andlinalg.pinv
can be faster on hermitian inputs- divmod operation is now supported for two
timedelta64
operands fromfile
now takes anoffset
argument- New mode “empty” for
pad
empty_like
and related functions now accept ashape
argument- Floating point scalars implement
as_integer_ratio
to match the builtin float - Structured
dtype
objects can be indexed with multiple fields names .npy
files support unicode field names
- New extensible
- Improvements
- Array comparison assertions include maximum differences
- Replacement of the fftpack based
fft
module by the pocketfft library - Further improvements to
ctypes
support innumpy.ctypeslib
numpy.errstate
is now also a function decoratornumpy.exp
andnumpy.log
speed up for float32 implementation- Improve performance of
numpy.pad
numpy.interp
handles infinities more robustly- Pathlib support for
fromfile
, tofile andndarray.dump
- Specialized
isnan
,isinf
, andisfinite
ufuncs for bool and int types isfinite
supportsdatetime64
andtimedelta64
types- New keywords added to
nan_to_num
- MemoryErrors caused by allocated overly large arrays are more descriptive
floor
,ceil
, andtrunc
now respect builtin magic methodsquantile
now works on fraction.Fraction anddecimal.Decimal
objects- Support of object arrays in
matmul
- Changes
median
andpercentile
family of functions no longer warn aboutnan
timedelta64 % 0
behavior adjusted to returnNaT
- NumPy functions now always support overrides with
__array_function__
lib.recfunctions.structured_to_unstructured
does not squeeze single-field viewsclip
now uses a ufunc under the hood__array_interface__
offset now works as documented- Pickle protocol in
savez
set to 3 forforce zip64
flag - Structured arrays indexed with non-existent fields raise
KeyError
notValueError
- NumPy 1.16.4 Release Notes
- NumPy 1.16.3 Release Notes
- NumPy 1.16.2 Release Notes
- NumPy 1.16.1 Release Notes
- NumPy 1.16.0 Release Notes
- Highlights
- New functions
- New deprecations
- Expired deprecations
- Future changes
- Compatibility notes
- C API changes
- New Features
- Improvements
- no-copy pickling of numpy arrays
- build shell independence
- np.polynomial.Polynomial classes render in LaTeX in Jupyter notebooks
randint
andchoice
now work on empty distributionslinalg.lstsq
,linalg.qr
, andlinalg.svd
now work with empty arrays- Chain exceptions to give better error messages for invalid PEP3118 format strings
- Einsum optimization path updates and efficiency improvements
numpy.angle
andnumpy.expand_dims
now work onndarray
subclassesNPY_NO_DEPRECATED_API
compiler warning suppressionnp.diff
Added kwargs prepend and append- ARM support updated
- Appending to build flags
- Generalized ufunc signatures now allow fixed-size dimensions
- Generalized ufunc signatures now allow flexible dimensions
np.clip
and theclip
method check for memory overlap- New value
unscaled
for optioncov
innp.polyfit
- Detailed docstrings for scalar numeric types
__module__
attribute now points to public modules- Large allocations marked as suitable for transparent hugepages
- Alpine Linux (and other musl c library distros) support
- Speedup
np.block
for large arrays - Speedup
np.take
for read-only arrays - Support path-like objects for more functions
- Better behaviour of ufunc identities during reductions
- Improved conversion from ctypes objects
- A new
ndpointer.contents
member matmul
is now aufunc
- Start and stop arrays for
linspace
,logspace
andgeomspace
- CI extended with additional services
- Changes
- Comparison ufuncs will now error rather than return NotImplemented
- Positive will now raise a deprecation warning for non-numerical arrays
NDArrayOperatorsMixin
now implements matrix multiplication- The scaling of the covariance matrix in
np.polyfit
is different maximum
andminimum
no longer emit warnings- Umath and multiarray c-extension modules merged into a single module
getfield
validity checks extended- NumPy functions now support overrides with
__array_function__
- Arrays based off readonly buffers cannot be set
writeable
- NumPy 1.15.4 Release Notes
- NumPy 1.15.3 Release Notes
- NumPy 1.15.2 Release Notes
- NumPy 1.15.1 Release Notes
- NumPy 1.15.0 Release Notes
- Highlights
- New functions
- Deprecations
- Future Changes
- Compatibility notes
- Compiled testing modules renamed and made private
- The
NpzFile
returned bynp.savez
is now acollections.abc.Mapping
- Under certain conditions,
nditer
must be used in a context manager - Numpy has switched to using pytest instead of nose for testing
- Numpy no longer monkey-patches
ctypes
with__array_interface__
np.ma.notmasked_contiguous
andnp.ma.flatnotmasked_contiguous
always return listsnp.squeeze
restores old behavior of objects that cannot handle anaxis
argument- unstructured void array’s
.item
method now returns a bytes object copy.copy
andcopy.deepcopy
no longer turnmasked
into an array- Multifield Indexing of Structured Arrays will still return a copy
- C API changes
- New Features
- Improvements
np.einsum
updatesnp.ufunc.reduce
and related functions now accept an initial valuenp.flip
can operate over multiple axeshistogram
andhistogramdd
functions have moved tonp.lib.histograms
histogram
will accept NaN values when explicit bins are givenhistogram
works on datetime types, when explicit bin edges are givenhistogram
“auto” estimator handles limited variance better- The edges retuned by histogram` and
histogramdd
now match the data float type histogramdd
allows explicit ranges to be given in a subset of axes- The normed arguments of
histogramdd
andhistogram2d
have been renamed np.r_
works with 0d arrays, andnp.ma.mr_
works withnp.ma.masked
np.ptp
accepts akeepdims
argument, and extended axis tuplesMaskedArray.astype
now is identical tondarray.astype
- Enable AVX2/AVX512 at compile time
nan_to_num
always returns scalars when receiving scalar or 0d inputsnp.flatnonzero
works on numpy-convertible typesnp.interp
returns numpy scalars rather than builtin scalars- Allow dtype field names to be unicode in Python 2
- Comparison ufuncs accept
dtype=object
, overriding the defaultbool
sort
functions acceptkind='stable'
- Do not make temporary copies for in-place accumulation
linalg.matrix_power
can now handle stacks of matrices- Increased performance in
random.permutation
for multidimensional arrays - Generalized ufuncs now accept
axes
,axis
andkeepdims
arguments - float128 values now print correctly on ppc systems
- New
np.take_along_axis
andnp.put_along_axis
functions
- NumPy 1.14.6 Release Notes
- NumPy 1.14.5 Release Notes
- NumPy 1.14.4 Release Notes
- NumPy 1.14.3 Release Notes
- NumPy 1.14.2 Release Notes
- NumPy 1.14.1 Release Notes
- NumPy 1.14.0 Release Notes
- Highlights
- New functions
- Deprecations
- Future Changes
- Compatibility notes
- The mask of a masked array view is also a view rather than a copy
np.ma.masked
is no longer writeablenp.ma
functions producingfill_value
s have changeda.flat.__array__()
returns non-writeable arrays whena
is non-contiguousnp.tensordot
now returns zero array when contracting over 0-length dimensionnumpy.testing
reorganizednp.asfarray
no longer accepts non-dtypes through thedtype
argument- 1D
np.linalg.norm
preserves float input types, even for arbitrary orders count_nonzero(arr, axis=())
now counts over no axes, not all axes__init__.py
files added to test directories.astype(bool)
on unstructured void arrays now callsbool
on each elementMaskedArray.squeeze
never returnsnp.ma.masked
- Renamed first parameter of
can_cast
fromfrom
tofrom_
isnat
raisesTypeError
when passed wrong typedtype.__getitem__
raisesTypeError
when passed wrong type- User-defined types now need to implement
__str__
and__repr__
- Many changes to array printing, disableable with the new “legacy” printing mode
- C API changes
- New Features
- Encoding argument for text IO functions
- External
nose
plugins are usable bynumpy.testing.Tester
parametrize
decorator added tonumpy.testing
chebinterpolate
function added tonumpy.polynomial.chebyshev
- Support for reading lzma compressed text files in Python 3
sign
option added tonp.setprintoptions
andnp.array2string
hermitian
option added to``np.linalg.matrix_rank``threshold
andedgeitems
options added tonp.array2string
concatenate
andstack
gained anout
argument- Support for PGI flang compiler on Windows
- Improvements
- Numerator degrees of freedom in
random.noncentral_f
need only be positive. - The GIL is released for all
np.einsum
variations - The np.einsum function will use BLAS when possible and optimize by default
f2py
now handles arrays of dimension 0numpy.distutils
supports using MSVC and mingw64-gfortran togethernp.linalg.pinv
now works on stacked matricesnumpy.save
aligns data to 64 bytes instead of 16- NPZ files now can be written without using temporary files
- Better support for empty structured and string types
- Support for
decimal.Decimal
innp.lib.financial
- Float printing now uses “dragon4” algorithm for shortest decimal representation
void
datatype elements are now printed in hex notation- printing style for
void
datatypes is now independently customizable - Reduced memory usage of
np.loadtxt
- Numerator degrees of freedom in
- Changes
- Multiple-field indexing/assignment of structured arrays
- Integer and Void scalars are now unaffected by
np.set_string_function
- 0d array printing changed,
style
arg of array2string deprecated - Seeding
RandomState
using an array requires a 1-d array MaskedArray
objects show a more usefulrepr
- The
repr
ofnp.polynomial
classes is more explicit
- NumPy 1.13.3 Release Notes
- NumPy 1.13.2 Release Notes
- NumPy 1.13.1 Release Notes
- NumPy 1.13.0 Release Notes
- Highlights
- New functions
- Deprecations
- Future Changes
- Build System Changes
- Compatibility notes
- C API changes
- New Features
__array_ufunc__
added- New
positive
ufunc - New
divmod
ufunc np.isnat
ufunc tests for NaT special datetime and timedelta valuesnp.heaviside
ufunc computes the Heaviside functionnp.block
function for creating blocked arraysisin
function, improving onin1d
- Temporary elision
axes
argument forunique
np.gradient
now supports unevenly spaced data- Support for returning arrays of arbitrary dimensions in
apply_along_axis
.ndim
property added todtype
to complement.shape
- Support for tracemalloc in Python 3.6
- NumPy may be built with relaxed stride checking debugging
- Improvements
- Ufunc behavior for overlapping inputs
- Partial support for 64-bit f2py extensions with MinGW
- Performance improvements for
packbits
andunpackbits
- Fix for PPC long double floating point information
- Better default repr for
ndarray
subclasses - More reliable comparisons of masked arrays
- np.matrix with booleans elements can now be created using the string syntax
- More
linalg
operations now accept empty vectors and matrices - Bundled version of LAPACK is now 3.2.2
reduce
ofnp.hypot.reduce
andnp.logical_xor
allowed in more cases- Better
repr
of object arrays
- Changes
argsort
on masked arrays takes the same default arguments assort
average
now preserves subclassesarray == None
andarray != None
do element-wise comparisonnp.equal, np.not_equal
for object arrays ignores object identity- Boolean indexing changes
np.random.multivariate_normal
behavior with bad covariance matrixassert_array_less
comparesnp.inf
and-np.inf
nowassert_array_
and masked arraysassert_equal
hide less warningsoffset
attribute value inmemmap
objectsnp.real
andnp.imag
return scalars for scalar inputs- The polynomial convenience classes cannot be passed to ufuncs
- Output arguments to ufuncs can be tuples also for ufunc methods
- NumPy 1.12.1 Release Notes
- NumPy 1.12.0 Release Notes
- Highlights
- Dropped Support
- Added Support
- Build System Changes
- Deprecations
- Future Changes
- Compatibility notes
- DeprecationWarning to error
- FutureWarning to changed behavior
power
and**
raise errors for integer to negative integer powers- Relaxed stride checking is the default
- The
np.percentile
‘midpoint’ interpolation method fixed for exact indices keepdims
kwarg is passed through to user-class methodsbitwise_and
identity changed- ma.median warns and returns nan when unmasked invalid values are encountered
- Greater consistency in
assert_almost_equal
NoseTester
behaviour of warnings during testingassert_warns
anddeprecated
decorator more specific- C API
- New Features
- Writeable keyword argument for
as_strided
axes
keyword argument forrot90
- Generalized
flip
- BLIS support in
numpy.distutils
- Hook in
numpy/__init__.py
to run distribution-specific checks - New nanfunctions
nancumsum
andnancumprod
added np.interp
can now interpolate complex values- New polynomial evaluation function
polyvalfromroots
added - New array creation function
geomspace
added - New context manager for testing warnings
- New masked array functions
ma.convolve
andma.correlate
added - New
float_power
ufunc np.loadtxt
now supports a single integer asusecol
argument- Improved automated bin estimators for
histogram
np.roll
can now roll multiple axes at the same time- The
__complex__
method has been implemented for the ndarrays pathlib.Path
objects now supported- New
bits
attribute fornp.finfo
- New
signature
argument tonp.vectorize
- Emit py3kwarnings for division of integer arrays
- numpy.sctypes now includes bytes on Python3 too
- Writeable keyword argument for
- Improvements
bitwise_and
identity changed- Generalized Ufuncs will now unlock the GIL
- Caches in np.fft are now bounded in total size and item count
- Improved handling of zero-width string/unicode dtypes
- Integer ufuncs vectorized with AVX2
- Order of operations optimization in
np.einsum
- quicksort has been changed to an introsort
ediff1d
improved performance and subclass handling- Improved precision of
ndarray.mean
for float16 arrays
- Changes
- NumPy 1.11.3 Release Notes
- NumPy 1.11.2 Release Notes
- NumPy 1.11.1 Release Notes
- NumPy 1.11.0 Release Notes
- Highlights
- Build System Changes
- Future Changes
- Compatibility notes
- New Features
- Improvements
np.gradient
now supports anaxis
argumentnp.lexsort
now supports arrays with object data-typenp.ma.core.MaskedArray
now supports anorder
argument- Memory and speed improvements for masked arrays
ndarray.tofile
now uses fallocate on linux- Optimizations for operations of the form
A.T @ A
andA @ A.T
np.testing.assert_warns
can now be used as a context manager- Speed improvement for np.random.shuffle
- Changes
- Deprecations
- FutureWarnings
- NumPy 1.10.4 Release Notes
- NumPy 1.10.3 Release Notes
- NumPy 1.10.2 Release Notes
- NumPy 1.10.1 Release Notes
- NumPy 1.10.0 Release Notes
- Highlights
- Dropped Support
- Future Changes
- Compatibility notes
- Default casting rule change
- numpy version string
- relaxed stride checking
- Concatenation of 1d arrays along any but
axis=0
raisesIndexError
- np.ravel, np.diagonal and np.diag now preserve subtypes
- rollaxis and swapaxes always return a view
- nonzero now returns base ndarrays
- C API
- recarray field return types
- recarray views
- ‘out’ keyword argument of ufuncs now accepts tuples of arrays
- byte-array indices now raises an IndexError
- Masked arrays containing objects with arrays
- Median warns and returns nan when invalid values are encountered
- Functions available from numpy.ma.testutils have changed
- New Features
- Reading extra flags from site.cfg
- np.cbrt to compute cube root for real floats
- numpy.distutils now allows parallel compilation
- genfromtxt has a new
max_rows
argument - New function np.broadcast_to for invoking array broadcasting
- New context manager clear_and_catch_warnings for testing warnings
- cov has new
fweights
andaweights
arguments - Support for the ‘@’ operator in Python 3.5+
- New argument
norm
to fft functions
- Improvements
- np.digitize using binary search
- np.poly now casts integer inputs to float
- np.interp can now be used with periodic functions
- np.pad supports more input types for
pad_width
andconstant_values
- np.argmax and np.argmin now support an
out
argument - More system C99 complex functions detected and used
- np.loadtxt support for the strings produced by the
float.hex
method - np.isclose properly handles minimal values of integer dtypes
- np.allclose uses np.isclose internally.
- np.genfromtxt now handles large integers correctly
- np.load, np.save have pickle backward compatibility flags
- MaskedArray support for more complicated base classes
- Changes
- Deprecations
- NumPy 1.9.2 Release Notes
- NumPy 1.9.1 Release Notes
- NumPy 1.9.0 Release Notes
- Highlights
- Dropped Support
- Future Changes
- Compatibility notes
- The diagonal and diag functions return readonly views.
- Special scalar float values don’t cause upcast to double anymore
- Percentile output changes
- ndarray.tofile exception type
- Invalid fill value exceptions
- Polynomial Classes no longer derived from PolyBase
- Using numpy.random.binomial may change the RNG state vs. numpy < 1.9
- Random seed enforced to be a 32 bit unsigned integer
- Argmin and argmax out argument
- Einsum
- Indexing
- Non-integer reduction axis indexes are deprecated
promote_types
and string dtypecan_cast
and string dtype- astype and string dtype
- npyio.recfromcsv keyword arguments change
- The
doc/swig
directory moved - The
npy_3kcompat.h
header changed - Negative indices in C-Api
sq_item
andsq_ass_item
sequence methods - NDIter
zeros_like
for string dtypes now returns empty strings
- New Features
- Percentile supports more interpolation options
- Generalized axis support for median and percentile
- Dtype parameter added to
np.linspace
andnp.logspace
- More general
np.triu
andnp.tril
broadcasting tobytes
alias fortostring
method- Build system
- Compatibility to python
numbers
module increasing
parameter added tonp.vander
unique_counts
parameter added tonp.unique
- Support for median and percentile in nanfunctions
- NumpyVersion class added
- Allow saving arrays with large number of named columns
- Full broadcasting support for
np.cross
- Improvements
- Better numerical stability for sum in some cases
- Percentile implemented in terms of
np.partition
- Performance improvement for
np.array
- Performance improvement for
np.searchsorted
- Optional reduced verbosity for np.distutils
- Covariance check in
np.random.multivariate_normal
- Polynomial Classes no longer template based
- More GIL releases
- MaskedArray support for more complicated base classes
- C-API
- Deprecations
- NumPy 1.8.2 Release Notes
- NumPy 1.8.1 Release Notes
- NumPy 1.8.0 Release Notes
- Highlights
- Dropped Support
- Future Changes
- Compatibility notes
- New Features
- Support for linear algebra on stacked arrays
- In place fancy indexing for ufuncs
- New functions
partition
andargpartition
- New functions
nanmean
,nanvar
andnanstd
- New functions
full
andfull_like
- IO compatibility with large files
- Building against OpenBLAS
- New constant
- New modes for qr
- New
invert
argument toin1d
- Advanced indexing using np.newaxis
- C-API
- runtests.py
- Improvements
- Changes
- Deprecations
- Authors
- NumPy 1.7.2 Release Notes
- NumPy 1.7.1 Release Notes
- NumPy 1.7.0 Release Notes
- Highlights
- Compatibility notes
- New features
- Reduction UFuncs Generalize axis= Parameter
- Reduction UFuncs New keepdims= Parameter
- Datetime support
- Custom formatter for printing arrays
- New function numpy.random.choice
- New function isclose
- Preliminary multi-dimensional support in the polynomial package
- Ability to pad rank-n arrays
- New argument to searchsorted
- Build system
- C API
- Changes
- Deprecations
- NumPy 1.6.2 Release Notes
- NumPy 1.6.1 Release Notes
- NumPy 1.6.0 Release Notes
- NumPy 1.5.0 Release Notes
- NumPy 1.4.0 Release Notes
- NumPy 1.3.0 Release Notes
- NumPy 1.17.0 Release Notes
- About NumPy
- About this documentation
- Reporting bugs
- NumPy License
- Glossary