Navigation
index
modules
|
modules
|
next
|
Numpy and Scipy Documentation
»
Numpy manual contents
ΒΆ
NumPy User Guide
Introduction
What is NumPy?
Building and installing NumPy
Binary installers
Windows
Linux
Mac OS X
Building from source
Prerequisites
FORTRAN ABI mismatch
Choosing the fortran compiler
How to check the ABI of blas/lapack/atlas
Disabling ATLAS and other accelerated libraries
Supplying additional compiler flags
Building with ATLAS support
Ubuntu 8.10 (Intrepid) and 9.04 (Jaunty)
Ubuntu 8.04 and lower
How to find documentation
Numpy basics
Data types
Array types and conversions between types
Array Scalars
Array creation
Introduction
Converting Python array_like Objects to Numpy Arrays
Intrinsic Numpy Array Creation
Reading Arrays From Disk
Standard Binary Formats
Common ASCII Formats
Custom Binary Formats
Use of Special Libraries
I/O with Numpy
Importing data with
genfromtxt
Defining the input
Splitting the lines into columns
The
delimiter
argument
The
autostrip
argument
The
comments
argument
Skipping lines and choosing columns
The
skip_header
and
skip_footer
arguments
The
usecols
argument
Choosing the data type
Setting the names
The
names
argument
The
defaultfmt
argument
Validating names
Tweaking the conversion
The
converters
argument
Using missing and filling values
missing_values
filling_values
usemask
Shortcut functions
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
General Broadcasting Rules
Byte-swapping
Introduction to byte ordering and ndarrays
Changing byte ordering
Data and dtype endianness don’t match, change dtype to match data
Data and type endianness don’t match, change data to match dtype
Data and dtype endianness match, swap data and dtype
Structured arrays (aka “Record arrays”)
Structured Arrays (and Record Arrays)
Introduction
Defining Structured Arrays
Accessing and modifying field names
Accessing field titles
Accessing multiple fields at once
Filling structured arrays
More information
Subclassing ndarray
Credits
Introduction
ndarrays and object creation
View casting
Creating new from template
Relationship of view casting and new-from-template
Implications for subclassing
A brief Python primer on
__new__
and
__init__
The role of
__array_finalize__
Simple example - adding an extra attribute to ndarray
Slightly more realistic example - attribute added to existing array
__array_wrap__
for ufuncs
Extra gotchas - custom
__del__
methods and ndarray.base
Performance
Miscellaneous
IEEE 754 Floating Point Special Values:
How numpy handles numerical exceptions:
Examples:
Interfacing to C:
Interfacing to Fortran:
Interfacing to C++:
Methods vs. Functions
Using Numpy C-API
How to extend NumPy
Writing an extension module
Required subroutine
Defining functions
Functions without keyword arguments
Functions with keyword arguments
Reference counting
Dealing with array objects
Converting an arbitrary sequence object
Creating a brand-new ndarray
Getting at ndarray memory and accessing elements of the ndarray
Example
Using Python as glue
Calling other compiled libraries from Python
Hand-generated wrappers
f2py
Creating source for a basic extension module
Creating a compiled extension module
Improving the basic interface
Inserting directives in Fortran source
A filtering example
Calling f2py from Python
Automatic extension module generation
Conclusion
weave
Speed up code involving arrays (also see scipy.numexpr)
Inline C-code
Simplify creation of an extension module
Conclusion
Pyrex
Pyrex-add
Pyrex-filter
Conclusion
ctypes
Having a shared library
Loading the shared library
Converting arguments
Calling the function
Complete example
Conclusion
Additional tools you may find useful
SWIG
SIP
Boost Python
Instant
PyInline
PyFort
Writing your own ufunc
Creating a new universal function
Example Non-ufunc extension
Example Numpy ufunc for one dtype
Example Numpy ufunc with multiple dtypes
Example Numpy ufunc with multiple arguments/return values
PyUFunc_FromFuncAndData Specification
Beyond the Basics
Iterating over elements in the array
Basic Iteration
Iterating over all but one axis
Iterating over multiple arrays
Broadcasting over multiple arrays
User-defined data-types
Adding the new data-type
Registering a casting function
Registering coercion rules
Registering a ufunc loop
Subtyping the ndarray in C
Creating sub-types
Specific features of ndarray sub-typing
The __array_finalize__ method
The __array_priority__ attribute
The __array_wrap__ method
NumPy Reference
Array objects
The N-dimensional array (
ndarray
)
Constructing arrays
numpy.ndarray
numpy.ndarray.T
numpy.ndarray.data
numpy.ndarray.dtype
numpy.ndarray.flags
numpy.ndarray.flat
numpy.ndarray.imag
numpy.ndarray.real
numpy.ndarray.size
numpy.ndarray.itemsize
numpy.ndarray.nbytes
numpy.ndarray.ndim
numpy.ndarray.shape
numpy.ndarray.strides
numpy.ndarray.ctypes
numpy.ndarray.base
numpy.ndarray.all
numpy.ndarray.any
numpy.ndarray.argmax
numpy.ndarray.argmin
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.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.tofile
numpy.ndarray.tolist
numpy.ndarray.tostring
numpy.ndarray.trace
numpy.ndarray.transpose
numpy.ndarray.var
numpy.ndarray.view
Indexing arrays
Internal memory layout of an ndarray
Array attributes
Memory layout
numpy.ndarray.flags
numpy.ndarray.shape
numpy.ndarray.strides
numpy.ndarray.ndim
numpy.ndarray.data
numpy.ndarray.size
numpy.ndarray.itemsize
numpy.ndarray.nbytes
numpy.ndarray.base
Data type
numpy.ndarray.dtype
Other attributes
numpy.ndarray.T
numpy.ndarray.real
numpy.ndarray.imag
numpy.ndarray.flat
numpy.ndarray.ctypes
Array interface
ctypes
foreign function interface
numpy.ndarray.ctypes
Array methods
Array conversion
numpy.ndarray.item
numpy.ndarray.tolist
numpy.ndarray.itemset
numpy.ndarray.tostring
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
numpy.ndarray.reshape
numpy.ndarray.resize
numpy.ndarray.transpose
numpy.ndarray.swapaxes
numpy.ndarray.flatten
numpy.ndarray.ravel
numpy.ndarray.squeeze
Item selection and manipulation
numpy.ndarray.take
numpy.ndarray.put
numpy.ndarray.repeat
numpy.ndarray.choose
numpy.ndarray.sort
numpy.ndarray.argsort
numpy.ndarray.searchsorted
numpy.ndarray.nonzero
numpy.ndarray.compress
numpy.ndarray.diagonal
Calculation
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
Arithmetic and comparison operations
numpy.ndarray.__lt__
numpy.ndarray.__le__
numpy.ndarray.__gt__
numpy.ndarray.__ge__
numpy.ndarray.__eq__
numpy.ndarray.__ne__
numpy.ndarray.__nonzero__
numpy.ndarray.__neg__
numpy.ndarray.__pos__
numpy.ndarray.__abs__
numpy.ndarray.__invert__
numpy.ndarray.__add__
numpy.ndarray.__sub__
numpy.ndarray.__mul__
numpy.ndarray.__div__
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.__idiv__
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__
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.__getslice__
numpy.ndarray.__setslice__
numpy.ndarray.__contains__
numpy.ndarray.__int__
numpy.ndarray.__long__
numpy.ndarray.__float__
numpy.ndarray.__oct__
numpy.ndarray.__hex__
numpy.ndarray.__str__
numpy.ndarray.__repr__
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.conj
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
Defining new types
Data type objects (
dtype
)
Specifying and constructing data types
numpy.dtype
numpy.dtype.newbyteorder
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
Methods
numpy.dtype.newbyteorder
numpy.dtype.__reduce__
numpy.dtype.__setstate__
Indexing
Basic Slicing
Advanced indexing
Integer
Boolean
Record Access
Flat Iterator indexing
Iterating Over Arrays
Single Array Iteration
Controlling Iteration Order
Modifying Array Values
Using an External Loop
Tracking an Index or Multi-Index
Buffering the Array Elements
Iterating as a Specific Data Type
Broadcasting Array Iteration
Iterator-Allocated Output Arrays
Outer Product Iteration
Reduction Iteration
Putting the Inner Loop in Cython
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.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.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.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
numpy.memmap
numpy.memmap.flush
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
Record arrays (
numpy.rec
)
numpy.recarray
numpy.recarray.all
numpy.recarray.any
numpy.recarray.argmax
numpy.recarray.argmin
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.field
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.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.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.conj
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
Masked arrays (
numpy.ma
)
Standard container class
numpy.lib.user_array.container
numpy.lib.user_array.container.astype
numpy.lib.user_array.container.byteswap
numpy.lib.user_array.container.copy
numpy.lib.user_array.container.tostring
Array Iterators
Default iteration
Flat iteration
numpy.ndarray.flat
N-dimensional enumeration
numpy.ndenumerate
numpy.ndenumerate.next
Iterator for broadcasting
numpy.broadcast
numpy.broadcast.next
numpy.broadcast.reset
Masked arrays
The
numpy.ma
module
Rationale
What is a masked array?
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
Masking an entry
Unmasking an entry
Indexing and slicing
Operations on masked arrays
Examples
Data with a given value representing missing data
Filling in the missing data
Numerical operations
Ignoring extreme values
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__
MaskedArray
methods
Conversion
numpy.ma.MaskedArray.__float__
numpy.ma.MaskedArray.__hex__
numpy.ma.MaskedArray.__int__
numpy.ma.MaskedArray.__long__
numpy.ma.MaskedArray.__oct__
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
Shape manipulation
numpy.ma.MaskedArray.flatten
numpy.ma.MaskedArray.ravel
numpy.ma.MaskedArray.reshape
numpy.ma.MaskedArray.resize
numpy.ma.MaskedArray.squeeze
numpy.ma.MaskedArray.swapaxes
numpy.ma.MaskedArray.transpose
numpy.ma.MaskedArray.T
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
numpy.ma.MaskedArray.copy
numpy.ma.MaskedArray.dump
numpy.ma.MaskedArray.dumps
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:
numpy.ma.MaskedArray.__lt__
numpy.ma.MaskedArray.__le__
numpy.ma.MaskedArray.__gt__
numpy.ma.MaskedArray.__ge__
numpy.ma.MaskedArray.__eq__
numpy.ma.MaskedArray.__ne__
Truth value of an array (
bool
):
numpy.ma.MaskedArray.__nonzero__
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.__rdiv__
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
numpy.ma.MaskedArray.__repr__
numpy.ma.MaskedArray.__str__
numpy.ma.MaskedArray.ids
numpy.ma.MaskedArray.iscontiguous
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.__getslice__
numpy.ma.MaskedArray.__setslice__
numpy.ma.MaskedArray.__contains__
Specific methods
Handling the mask
numpy.ma.MaskedArray.__setmask__
numpy.ma.MaskedArray.harden_mask
numpy.ma.MaskedArray.soften_mask
numpy.ma.MaskedArray.unshare_mask
numpy.ma.MaskedArray.shrink_mask
Handling the
fill_value
numpy.ma.MaskedArray.get_fill_value
numpy.ma.MaskedArray.set_fill_value
Counting the missing elements
numpy.ma.MaskedArray.count
Masked array operations
Constants
numpy.ma.MaskType
Creation
From existing data
numpy.ma.masked_array
numpy.ma.array
numpy.ma.copy
numpy.ma.frombuffer
numpy.ma.fromfunction
numpy.ma.MaskedArray.copy
Ones and zeros
numpy.ma.empty
numpy.ma.empty_like
numpy.ma.masked_all
numpy.ma.masked_all_like
numpy.ma.ones
numpy.ma.zeros
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.MaskedArray.data
numpy.ma.MaskedArray.mask
numpy.ma.MaskedArray.recordmask
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
Changing the shape
numpy.ma.ravel
numpy.ma.reshape
numpy.ma.resize
numpy.ma.MaskedArray.flatten
numpy.ma.MaskedArray.ravel
numpy.ma.MaskedArray.reshape
numpy.ma.MaskedArray.resize
Modifying axes
numpy.ma.swapaxes
numpy.ma.transpose
numpy.ma.MaskedArray.swapaxes
numpy.ma.MaskedArray.transpose
Changing the number of dimensions
numpy.ma.atleast_1d
numpy.ma.atleast_2d
numpy.ma.atleast_3d
numpy.ma.expand_dims
numpy.ma.squeeze
numpy.ma.MaskedArray.squeeze
numpy.ma.column_stack
numpy.ma.concatenate
numpy.ma.dstack
numpy.ma.hstack
numpy.ma.hsplit
numpy.ma.mr
numpy.ma.row_stack
numpy.ma.vstack
Joining arrays
numpy.ma.column_stack
numpy.ma.concatenate
numpy.ma.dstack
numpy.ma.hstack
numpy.ma.vstack
Operations on masks
Creating a mask
numpy.ma.make_mask
numpy.ma.make_mask_none
numpy.ma.mask_or
numpy.ma.make_mask_descr
Accessing a mask
numpy.ma.getmask
numpy.ma.getmaskarray
numpy.ma.masked_array.mask
Finding masked data
numpy.ma.flatnotmasked_contiguous
numpy.ma.flatnotmasked_edges
numpy.ma.notmasked_contiguous
numpy.ma.notmasked_edges
Modifying a mask
numpy.ma.mask_cols
numpy.ma.mask_or
numpy.ma.mask_rowcols
numpy.ma.mask_rows
numpy.ma.harden_mask
numpy.ma.soften_mask
numpy.ma.MaskedArray.harden_mask
numpy.ma.MaskedArray.soften_mask
numpy.ma.MaskedArray.shrink_mask
numpy.ma.MaskedArray.unshare_mask
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
numpy.ma.compress_cols
numpy.ma.compress_rowcols
numpy.ma.compress_rows
numpy.ma.compressed
numpy.ma.filled
numpy.ma.MaskedArray.compressed
numpy.ma.MaskedArray.filled
> to another object
numpy.ma.MaskedArray.tofile
numpy.ma.MaskedArray.tolist
numpy.ma.MaskedArray.torecords
numpy.ma.MaskedArray.tostring
Pickling and unpickling
numpy.ma.dump
numpy.ma.dumps
numpy.ma.load
numpy.ma.loads
Filling a masked array
numpy.ma.common_fill_value
numpy.ma.default_fill_value
numpy.ma.maximum_fill_value
numpy.ma.maximum_fill_value
numpy.ma.set_fill_value
numpy.ma.MaskedArray.get_fill_value
numpy.ma.MaskedArray.set_fill_value
numpy.ma.MaskedArray.fill_value
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
numpy.ma.argmax
numpy.ma.argmin
numpy.ma.max
numpy.ma.min
numpy.ma.ptp
numpy.ma.MaskedArray.argmax
numpy.ma.MaskedArray.argmin
numpy.ma.MaskedArray.max
numpy.ma.MaskedArray.min
numpy.ma.MaskedArray.ptp
Sorting
numpy.ma.argsort
numpy.ma.sort
numpy.ma.MaskedArray.argsort
numpy.ma.MaskedArray.sort
Algebra
numpy.ma.diag
numpy.ma.dot
numpy.ma.identity
numpy.ma.inner
numpy.ma.innerproduct
numpy.ma.outer
numpy.ma.outerproduct
numpy.ma.trace
numpy.ma.transpose
numpy.ma.MaskedArray.trace
numpy.ma.MaskedArray.transpose
Polynomial fit
numpy.ma.vander
numpy.ma.polyfit
Clipping and rounding
numpy.ma.around
numpy.ma.clip
numpy.ma.round
numpy.ma.MaskedArray.clip
numpy.ma.MaskedArray.round
Miscellanea
numpy.ma.allequal
numpy.ma.allclose
numpy.ma.apply_along_axis
numpy.ma.arange
numpy.ma.choose
numpy.ma.ediff1d
numpy.ma.indices
numpy.ma.where
The Array Interface
Python side
C-struct access
Type description examples
Differences with Array interface (Version 2)
Datetimes and Timedeltas
Basic Datetimes
Datetime and Timedelta Arithmetic
Datetime Units
Business Day Functionality
np.is_busday():
np.busday_count():
Custom Weekmasks
Differences Between 1.6 and 1.7 Datetimes
String Parsing
Unit Conversion
Datetime Arithmetic
Universal functions (
ufunc
)
Broadcasting
Output type determination
Use of internal buffers
numpy.setbufsize
Error handling
numpy.seterr
numpy.seterrcall
Casting Rules
ufunc
Optional keyword arguments
Attributes
numpy.ufunc.nin
numpy.ufunc.nout
numpy.ufunc.nargs
numpy.ufunc.ntypes
numpy.ufunc.types
numpy.ufunc.identity
Methods
numpy.ufunc.reduce
numpy.ufunc.accumulate
numpy.ufunc.reduceat
numpy.ufunc.outer
Available ufuncs
Math operations
Trigonometric functions
Bit-twiddling functions
Comparison functions
Floating functions
Routines
Array creation routines
Ones and zeros
numpy.empty
numpy.empty_like
numpy.eye
numpy.identity
numpy.ones
numpy.ones_like
numpy.zeros
numpy.zeros_like
From existing data
numpy.array
numpy.asarray
numpy.asanyarray
numpy.ascontiguousarray
numpy.asmatrix
numpy.copy
numpy.frombuffer
numpy.fromfile
numpy.fromfunction
numpy.fromiter
numpy.fromstring
numpy.loadtxt
Creating record arrays (
numpy.rec
)
numpy.core.records.array
numpy.core.records.fromarrays
numpy.core.records.fromrecords
numpy.core.records.fromstring
numpy.core.records.fromfile
Creating character arrays (
numpy.char
)
numpy.core.defchararray.array
numpy.core.defchararray.asarray
Numerical ranges
numpy.arange
numpy.linspace
numpy.logspace
numpy.meshgrid
numpy.mgrid
numpy.ogrid
Building matrices
numpy.diag
numpy.diagflat
numpy.tri
numpy.tril
numpy.triu
numpy.vander
The Matrix class
numpy.mat
numpy.bmat
Array manipulation routines
Basic operations
numpy.copyto
Changing array shape
numpy.reshape
numpy.ravel
numpy.ndarray.flat
numpy.ndarray.flatten
Transpose-like operations
numpy.rollaxis
numpy.swapaxes
numpy.ndarray.T
numpy.transpose
Changing number of dimensions
numpy.atleast_1d
numpy.atleast_2d
numpy.atleast_3d
numpy.broadcast
numpy.broadcast.next
numpy.broadcast.reset
numpy.broadcast_arrays
numpy.expand_dims
numpy.squeeze
Changing kind of array
numpy.asarray
numpy.asanyarray
numpy.asmatrix
numpy.asfarray
numpy.asfortranarray
numpy.asscalar
numpy.require
Joining arrays
numpy.column_stack
numpy.concatenate
numpy.dstack
numpy.hstack
numpy.vstack
Splitting arrays
numpy.array_split
numpy.dsplit
numpy.hsplit
numpy.split
numpy.vsplit
Tiling arrays
numpy.tile
numpy.repeat
Adding and removing elements
numpy.delete
numpy.insert
numpy.append
numpy.resize
numpy.trim_zeros
numpy.unique
Rearranging elements
numpy.fliplr
numpy.flipud
numpy.reshape
numpy.roll
numpy.rot90
Binary operations
Elementwise bit operations
numpy.bitwise_and
numpy.bitwise_or
numpy.bitwise_xor
numpy.invert
numpy.left_shift
numpy.right_shift
Bit packing
numpy.packbits
numpy.unpackbits
Output formatting
numpy.binary_repr
String operations
String operations
numpy.core.defchararray.add
numpy.core.defchararray.multiply
numpy.core.defchararray.mod
numpy.core.defchararray.capitalize
numpy.core.defchararray.center
numpy.core.defchararray.decode
numpy.core.defchararray.encode
numpy.core.defchararray.join
numpy.core.defchararray.ljust
numpy.core.defchararray.lower
numpy.core.defchararray.lstrip
numpy.core.defchararray.partition
numpy.core.defchararray.replace
numpy.core.defchararray.rjust
numpy.core.defchararray.rpartition
numpy.core.defchararray.rsplit
numpy.core.defchararray.rstrip
numpy.core.defchararray.split
numpy.core.defchararray.splitlines
numpy.core.defchararray.strip
numpy.core.defchararray.swapcase
numpy.core.defchararray.title
numpy.core.defchararray.translate
numpy.core.defchararray.upper
numpy.core.defchararray.zfill
Comparison
numpy.core.defchararray.equal
numpy.core.defchararray.not_equal
numpy.core.defchararray.greater_equal
numpy.core.defchararray.less_equal
numpy.core.defchararray.greater
numpy.core.defchararray.less
String information
numpy.core.defchararray.count
numpy.core.defchararray.find
numpy.core.defchararray.index
numpy.core.defchararray.isalpha
numpy.core.defchararray.isdecimal
numpy.core.defchararray.isdigit
numpy.core.defchararray.islower
numpy.core.defchararray.isnumeric
numpy.core.defchararray.isspace
numpy.core.defchararray.istitle
numpy.core.defchararray.isupper
numpy.core.defchararray.rfind
numpy.core.defchararray.rindex
numpy.core.defchararray.startswith
Convenience class
numpy.core.defchararray.chararray
numpy.core.defchararray.chararray.astype
numpy.core.defchararray.chararray.argsort
numpy.core.defchararray.chararray.copy
numpy.core.defchararray.chararray.count
numpy.core.defchararray.chararray.decode
numpy.core.defchararray.chararray.dump
numpy.core.defchararray.chararray.dumps
numpy.core.defchararray.chararray.encode
numpy.core.defchararray.chararray.endswith
numpy.core.defchararray.chararray.expandtabs
numpy.core.defchararray.chararray.fill
numpy.core.defchararray.chararray.find
numpy.core.defchararray.chararray.flatten
numpy.core.defchararray.chararray.getfield
numpy.core.defchararray.chararray.index
numpy.core.defchararray.chararray.isalnum
numpy.core.defchararray.chararray.isalpha
numpy.core.defchararray.chararray.isdecimal
numpy.core.defchararray.chararray.isdigit
numpy.core.defchararray.chararray.islower
numpy.core.defchararray.chararray.isnumeric
numpy.core.defchararray.chararray.isspace
numpy.core.defchararray.chararray.istitle
numpy.core.defchararray.chararray.isupper
numpy.core.defchararray.chararray.item
numpy.core.defchararray.chararray.join
numpy.core.defchararray.chararray.ljust
numpy.core.defchararray.chararray.lower
numpy.core.defchararray.chararray.lstrip
numpy.core.defchararray.chararray.nonzero
numpy.core.defchararray.chararray.put
numpy.core.defchararray.chararray.ravel
numpy.core.defchararray.chararray.repeat
numpy.core.defchararray.chararray.replace
numpy.core.defchararray.chararray.reshape
numpy.core.defchararray.chararray.resize
numpy.core.defchararray.chararray.rfind
numpy.core.defchararray.chararray.rindex
numpy.core.defchararray.chararray.rjust
numpy.core.defchararray.chararray.rsplit
numpy.core.defchararray.chararray.rstrip
numpy.core.defchararray.chararray.searchsorted
numpy.core.defchararray.chararray.setfield
numpy.core.defchararray.chararray.setflags
numpy.core.defchararray.chararray.sort
numpy.core.defchararray.chararray.split
numpy.core.defchararray.chararray.splitlines
numpy.core.defchararray.chararray.squeeze
numpy.core.defchararray.chararray.startswith
numpy.core.defchararray.chararray.strip
numpy.core.defchararray.chararray.swapaxes
numpy.core.defchararray.chararray.swapcase
numpy.core.defchararray.chararray.take
numpy.core.defchararray.chararray.title
numpy.core.defchararray.chararray.tofile
numpy.core.defchararray.chararray.tolist
numpy.core.defchararray.chararray.tostring
numpy.core.defchararray.chararray.translate
numpy.core.defchararray.chararray.transpose
numpy.core.defchararray.chararray.upper
numpy.core.defchararray.chararray.view
numpy.core.defchararray.chararray.zfill
C-Types Foreign Function Interface (
numpy.ctypeslib
)
Datetime Support Functions
Business Day Functions
numpy.busdaycalendar
numpy.busdaycalendar.weekmask
numpy.busdaycalendar.holidays
numpy.is_busday
numpy.busday_offset
numpy.busday_count
Data type routines
numpy.can_cast
numpy.promote_types
numpy.min_scalar_type
numpy.result_type
numpy.common_type
numpy.obj2sctype
Creating data types
numpy.dtype
numpy.dtype.newbyteorder
numpy.format_parser
Data type information
numpy.finfo
numpy.iinfo
numpy.iinfo.min
numpy.iinfo.max
numpy.MachAr
Data type testing
numpy.issctype
numpy.issubdtype
numpy.issubsctype
numpy.issubclass
numpy.find_common_type
Miscellaneous
numpy.typename
numpy.sctype2char
numpy.mintypecode
Optionally Scipy-accelerated routines (
numpy.dual
)
Linear algebra
FFT
Other
Mathematical functions with automatic domain (
numpy.emath
)
Floating point error handling
Setting and getting error handling
numpy.seterr
numpy.geterr
numpy.seterrcall
numpy.geterrcall
numpy.errstate
Internal functions
numpy.seterrobj
numpy.geterrobj
Discrete Fourier Transform (
numpy.fft
)
Standard FFTs
numpy.fft.fft
numpy.fft.ifft
numpy.fft.fft2
numpy.fft.ifft2
numpy.fft.fftn
numpy.fft.ifftn
Real FFTs
numpy.fft.rfft
numpy.fft.irfft
numpy.fft.rfft2
numpy.fft.irfft2
numpy.fft.rfftn
numpy.fft.irfftn
Hermitian FFTs
numpy.fft.hfft
numpy.fft.ihfft
Helper routines
numpy.fft.fftfreq
numpy.fft.fftshift
numpy.fft.ifftshift
Background information
Implementation details
Real and Hermitian transforms
Higher dimensions
References
Examples
Financial functions
Simple financial functions
numpy.fv
numpy.pv
numpy.npv
numpy.pmt
numpy.ppmt
numpy.ipmt
numpy.irr
numpy.mirr
numpy.nper
numpy.rate
Functional programming
numpy.apply_along_axis
numpy.apply_over_axes
numpy.vectorize
numpy.vectorize.__call__
numpy.frompyfunc
numpy.piecewise
Numpy-specific help functions
Finding help
numpy.lookfor
Reading help
numpy.info
numpy.source
Indexing routines
Generating index arrays
numpy.c
numpy.r
numpy.s
numpy.nonzero
numpy.where
numpy.indices
numpy.ix
numpy.ogrid
numpy.ravel_multi_index
numpy.unravel_index
numpy.diag_indices
numpy.diag_indices_from
numpy.mask_indices
numpy.tril_indices
numpy.tril_indices_from
numpy.triu_indices
numpy.triu_indices_from
Indexing-like operations
numpy.take
numpy.choose
numpy.compress
numpy.diag
numpy.diagonal
numpy.select
Inserting data into arrays
numpy.place
numpy.put
numpy.putmask
numpy.fill_diagonal
Iterating over arrays
numpy.nditer
numpy.nditer.dtypes
numpy.nditer.finished
numpy.nditer.has_delayed_bufalloc
numpy.nditer.has_index
numpy.nditer.has_multi_index
numpy.nditer.iterationneedsapi
numpy.nditer.iterindex
numpy.nditer.itersize
numpy.nditer.ndim
numpy.nditer.nop
numpy.nditer.operands
numpy.nditer.shape
numpy.nditer.copy
numpy.nditer.debug_print
numpy.nditer.enable_external_loop
numpy.nditer.iternext
numpy.nditer.next
numpy.nditer.remove_axis
numpy.nditer.remove_multi_index
numpy.nditer.reset
numpy.ndenumerate
numpy.ndenumerate.next
numpy.ndindex
numpy.ndindex.ndincr
numpy.ndindex.next
numpy.flatiter
numpy.flatiter.copy
numpy.flatiter.next
Input and output
NPZ files
numpy.load
numpy.save
numpy.savez
Text files
numpy.loadtxt
numpy.savetxt
numpy.genfromtxt
numpy.fromregex
numpy.fromstring
numpy.ndarray.tofile
numpy.ndarray.tolist
Raw binary files
String formatting
numpy.array_repr
numpy.array_str
Memory mapping files
numpy.memmap
Text formatting options
numpy.set_printoptions
numpy.get_printoptions
numpy.set_string_function
Base-n representations
numpy.binary_repr
numpy.base_repr
Data sources
numpy.DataSource
numpy.DataSource.abspath
numpy.DataSource.exists
numpy.DataSource.open
Linear algebra (
numpy.linalg
)
Matrix and vector products
numpy.dot
numpy.vdot
numpy.inner
numpy.outer
numpy.tensordot
numpy.einsum
numpy.linalg.matrix_power
numpy.kron
Decompositions
numpy.linalg.cholesky
numpy.linalg.qr
numpy.linalg.svd
Matrix eigenvalues
numpy.linalg.eig
numpy.linalg.eigh
numpy.linalg.eigvals
numpy.linalg.eigvalsh
Norms and other numbers
numpy.linalg.norm
numpy.linalg.cond
numpy.linalg.det
numpy.linalg.slogdet
numpy.trace
Solving equations and inverting matrices
numpy.linalg.solve
numpy.linalg.tensorsolve
numpy.linalg.lstsq
numpy.linalg.inv
numpy.linalg.pinv
numpy.linalg.tensorinv
Exceptions
numpy.linalg.LinAlgError
Logic functions
Truth value testing
numpy.all
numpy.any
Array contents
numpy.isfinite
numpy.isinf
numpy.isnan
numpy.isneginf
numpy.isposinf
Array type testing
numpy.iscomplex
numpy.iscomplexobj
numpy.isfortran
numpy.isreal
numpy.isrealobj
numpy.isscalar
Logical operations
numpy.logical_and
numpy.logical_or
numpy.logical_not
numpy.logical_xor
Comparison
numpy.allclose
numpy.array_equal
numpy.array_equiv
numpy.greater
numpy.greater_equal
numpy.less
numpy.less_equal
numpy.equal
numpy.not_equal
Masked array operations
Constants
numpy.ma.MaskType
Creation
From existing data
numpy.ma.masked_array
numpy.ma.array
numpy.ma.copy
numpy.ma.frombuffer
numpy.ma.fromfunction
numpy.ma.MaskedArray.copy
Ones and zeros
numpy.ma.empty
numpy.ma.empty_like
numpy.ma.masked_all
numpy.ma.masked_all_like
numpy.ma.ones
numpy.ma.zeros
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.MaskedArray.data
numpy.ma.MaskedArray.mask
numpy.ma.MaskedArray.recordmask
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
Changing the shape
numpy.ma.ravel
numpy.ma.reshape
numpy.ma.resize
numpy.ma.MaskedArray.flatten
numpy.ma.MaskedArray.ravel
numpy.ma.MaskedArray.reshape
numpy.ma.MaskedArray.resize
Modifying axes
numpy.ma.swapaxes
numpy.ma.transpose
numpy.ma.MaskedArray.swapaxes
numpy.ma.MaskedArray.transpose
Changing the number of dimensions
numpy.ma.atleast_1d
numpy.ma.atleast_2d
numpy.ma.atleast_3d
numpy.ma.expand_dims
numpy.ma.squeeze
numpy.ma.MaskedArray.squeeze
numpy.ma.column_stack
numpy.ma.concatenate
numpy.ma.dstack
numpy.ma.hstack
numpy.ma.hsplit
numpy.ma.mr
numpy.ma.row_stack
numpy.ma.vstack
Joining arrays
numpy.ma.column_stack
numpy.ma.concatenate
numpy.ma.dstack
numpy.ma.hstack
numpy.ma.vstack
Operations on masks
Creating a mask
numpy.ma.make_mask
numpy.ma.make_mask_none
numpy.ma.mask_or
numpy.ma.make_mask_descr
Accessing a mask
numpy.ma.getmask
numpy.ma.getmaskarray
numpy.ma.masked_array.mask
Finding masked data
numpy.ma.flatnotmasked_contiguous
numpy.ma.flatnotmasked_edges
numpy.ma.notmasked_contiguous
numpy.ma.notmasked_edges
Modifying a mask
numpy.ma.mask_cols
numpy.ma.mask_or
numpy.ma.mask_rowcols
numpy.ma.mask_rows
numpy.ma.harden_mask
numpy.ma.soften_mask
numpy.ma.MaskedArray.harden_mask
numpy.ma.MaskedArray.soften_mask
numpy.ma.MaskedArray.shrink_mask
numpy.ma.MaskedArray.unshare_mask
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
numpy.ma.compress_cols
numpy.ma.compress_rowcols
numpy.ma.compress_rows
numpy.ma.compressed
numpy.ma.filled
numpy.ma.MaskedArray.compressed
numpy.ma.MaskedArray.filled
> to another object
numpy.ma.MaskedArray.tofile
numpy.ma.MaskedArray.tolist
numpy.ma.MaskedArray.torecords
numpy.ma.MaskedArray.tostring
Pickling and unpickling
numpy.ma.dump
numpy.ma.dumps
numpy.ma.load
numpy.ma.loads
Filling a masked array
numpy.ma.common_fill_value
numpy.ma.default_fill_value
numpy.ma.maximum_fill_value
numpy.ma.maximum_fill_value
numpy.ma.set_fill_value
numpy.ma.MaskedArray.get_fill_value
numpy.ma.MaskedArray.set_fill_value
numpy.ma.MaskedArray.fill_value
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
numpy.ma.argmax
numpy.ma.argmin
numpy.ma.max
numpy.ma.min
numpy.ma.ptp
numpy.ma.MaskedArray.argmax
numpy.ma.MaskedArray.argmin
numpy.ma.MaskedArray.max
numpy.ma.MaskedArray.min
numpy.ma.MaskedArray.ptp
Sorting
numpy.ma.argsort
numpy.ma.sort
numpy.ma.MaskedArray.argsort
numpy.ma.MaskedArray.sort
Algebra
numpy.ma.diag
numpy.ma.dot
numpy.ma.identity
numpy.ma.inner
numpy.ma.innerproduct
numpy.ma.outer
numpy.ma.outerproduct
numpy.ma.trace
numpy.ma.transpose
numpy.ma.MaskedArray.trace
numpy.ma.MaskedArray.transpose
Polynomial fit
numpy.ma.vander
numpy.ma.polyfit
Clipping and rounding
numpy.ma.around
numpy.ma.clip
numpy.ma.round
numpy.ma.MaskedArray.clip
numpy.ma.MaskedArray.round
Miscellanea
numpy.ma.allequal
numpy.ma.allclose
numpy.ma.apply_along_axis
numpy.ma.arange
numpy.ma.choose
numpy.ma.ediff1d
numpy.ma.indices
numpy.ma.where
Mathematical functions
Trigonometric functions
numpy.sin
numpy.cos
numpy.tan
numpy.arcsin
numpy.arccos
numpy.arctan
numpy.hypot
numpy.arctan2
numpy.degrees
numpy.radians
numpy.unwrap
numpy.deg2rad
numpy.rad2deg
Hyperbolic functions
numpy.sinh
numpy.cosh
numpy.tanh
numpy.arcsinh
numpy.arccosh
numpy.arctanh
Rounding
numpy.around
numpy.round
numpy.rint
numpy.fix
numpy.floor
numpy.ceil
numpy.trunc
Sums, products, differences
numpy.prod
numpy.sum
numpy.nansum
numpy.cumprod
numpy.cumsum
numpy.diff
numpy.ediff1d
numpy.gradient
numpy.cross
numpy.trapz
Exponents and logarithms
numpy.exp
numpy.expm1
numpy.exp2
numpy.log
numpy.log10
numpy.log2
numpy.log1p
numpy.logaddexp
numpy.logaddexp2
Other special functions
numpy.i0
numpy.sinc
Floating point routines
numpy.signbit
numpy.copysign
numpy.frexp
numpy.ldexp
Arithmetic operations
numpy.add
numpy.reciprocal
numpy.negative
numpy.multiply
numpy.divide
numpy.power
numpy.subtract
numpy.true_divide
numpy.floor_divide
numpy.fmod
numpy.mod
numpy.modf
numpy.remainder
Handling complex numbers
numpy.angle
numpy.real
numpy.imag
numpy.conj
Miscellaneous
numpy.convolve
numpy.clip
numpy.sqrt
numpy.square
numpy.absolute
numpy.fabs
numpy.sign
numpy.maximum
numpy.minimum
numpy.nan_to_num
numpy.real_if_close
numpy.interp
Matrix library (
numpy.matlib
)
numpy.matlib.empty
numpy.matlib.zeros
numpy.matlib.ones
numpy.matlib.eye
numpy.matlib.identity
numpy.matlib.repmat
numpy.matlib.rand
numpy.matlib.randn
Numarray compatibility (
numpy.numarray
)
Old Numeric compatibility (
numpy.oldnumeric
)
Miscellaneous routines
Buffer objects
numpy.getbuffer
numpy.newbuffer
Performance tuning
numpy.alterdot
numpy.restoredot
numpy.setbufsize
numpy.getbufsize
Padding Arrays
numpy.pad
Polynomials
Transition notice
Polynomial Package
Using the Convenience Classes
Basics
Calculus
Other Polynomial Constructors
Fitting
Polynomial Module (
numpy.polynomial.polynomial
)
Polynomial Class
numpy.polynomial.polynomial.Polynomial
numpy.polynomial.polynomial.Polynomial.domain
numpy.polynomial.polynomial.Polynomial.window
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
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
Fitting
numpy.polynomial.polynomial.polyfit
numpy.polynomial.polynomial.polyvander
numpy.polynomial.polynomial.polyvander2d
numpy.polynomial.polynomial.polyvander3d
Calculus
numpy.polynomial.polynomial.polyder
numpy.polynomial.polynomial.polyint
Algebra
numpy.polynomial.polynomial.polyadd
numpy.polynomial.polynomial.polysub
numpy.polynomial.polynomial.polymul
numpy.polynomial.polynomial.polymulx
numpy.polynomial.polynomial.polydiv
numpy.polynomial.polynomial.polypow
Miscellaneous
numpy.polynomial.polynomial.polycompanion
numpy.polynomial.polynomial.polydomain
numpy.polynomial.polynomial.polyzero
numpy.polynomial.polynomial.polyone
numpy.polynomial.polynomial.polyx
numpy.polynomial.polynomial.polytrim
numpy.polynomial.polynomial.polyline
Chebyshev Module (
numpy.polynomial.chebyshev
)
Chebyshev Class
numpy.polynomial.chebyshev.Chebyshev
numpy.polynomial.chebyshev.Chebyshev.domain
numpy.polynomial.chebyshev.Chebyshev.window
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.linspace
numpy.polynomial.chebyshev.Chebyshev.mapparms
numpy.polynomial.chebyshev.Chebyshev.roots
numpy.polynomial.chebyshev.Chebyshev.trim
numpy.polynomial.chebyshev.Chebyshev.truncate
Basics
numpy.polynomial.chebyshev.chebval
numpy.polynomial.chebyshev.chebval2d
numpy.polynomial.chebyshev.chebval3d
numpy.polynomial.chebyshev.chebgrid2d
numpy.polynomial.chebyshev.chebgrid3d
numpy.polynomial.chebyshev.chebroots
numpy.polynomial.chebyshev.chebfromroots
Fitting
numpy.polynomial.chebyshev.chebfit
numpy.polynomial.chebyshev.chebvander
numpy.polynomial.chebyshev.chebvander2d
numpy.polynomial.chebyshev.chebvander3d
Calculus
numpy.polynomial.chebyshev.chebder
numpy.polynomial.chebyshev.chebint
Algebra
numpy.polynomial.chebyshev.chebadd
numpy.polynomial.chebyshev.chebsub
numpy.polynomial.chebyshev.chebmul
numpy.polynomial.chebyshev.chebmulx
numpy.polynomial.chebyshev.chebdiv
numpy.polynomial.chebyshev.chebpow
Quadrature
numpy.polynomial.chebyshev.chebgauss
numpy.polynomial.chebyshev.chebweight
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
Legendre Module (
numpy.polynomial.legendre
)
Legendre Class
numpy.polynomial.legendre.Legendre
numpy.polynomial.legendre.Legendre.domain
numpy.polynomial.legendre.Legendre.window
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
Basics
numpy.polynomial.legendre.legval
numpy.polynomial.legendre.legval2d
numpy.polynomial.legendre.legval3d
numpy.polynomial.legendre.leggrid2d
numpy.polynomial.legendre.leggrid3d
numpy.polynomial.legendre.legroots
numpy.polynomial.legendre.legfromroots
Fitting
numpy.polynomial.legendre.legfit
numpy.polynomial.legendre.legvander
numpy.polynomial.legendre.legvander2d
numpy.polynomial.legendre.legvander3d
Calculus
numpy.polynomial.legendre.legder
numpy.polynomial.legendre.legint
Algebra
numpy.polynomial.legendre.legadd
numpy.polynomial.legendre.legsub
numpy.polynomial.legendre.legmul
numpy.polynomial.legendre.legmulx
numpy.polynomial.legendre.legdiv
numpy.polynomial.legendre.legpow
Quadrature
numpy.polynomial.legendre.leggauss
numpy.polynomial.legendre.legweight
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
Laguerre Module (
numpy.polynomial.laguerre
)
Laguerre Class
numpy.polynomial.laguerre.Laguerre
numpy.polynomial.laguerre.Laguerre.domain
numpy.polynomial.laguerre.Laguerre.window
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
Basics
numpy.polynomial.laguerre.lagval
numpy.polynomial.laguerre.lagval2d
numpy.polynomial.laguerre.lagval3d
numpy.polynomial.laguerre.laggrid2d
numpy.polynomial.laguerre.laggrid3d
numpy.polynomial.laguerre.lagroots
numpy.polynomial.laguerre.lagfromroots
Fitting
numpy.polynomial.laguerre.lagfit
numpy.polynomial.laguerre.lagvander
numpy.polynomial.laguerre.lagvander2d
numpy.polynomial.laguerre.lagvander3d
Calculus
numpy.polynomial.laguerre.lagder
numpy.polynomial.laguerre.lagint
Algebra
numpy.polynomial.laguerre.lagadd
numpy.polynomial.laguerre.lagsub
numpy.polynomial.laguerre.lagmul
numpy.polynomial.laguerre.lagmulx
numpy.polynomial.laguerre.lagdiv
numpy.polynomial.laguerre.lagpow
Quadrature
numpy.polynomial.laguerre.laggauss
numpy.polynomial.laguerre.lagweight
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
Hermite Module, “Physicists’” (
numpy.polynomial.hermite
)
Hermite Class
numpy.polynomial.hermite.Hermite
numpy.polynomial.hermite.Hermite.domain
numpy.polynomial.hermite.Hermite.window
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
Basics
numpy.polynomial.hermite.hermval
numpy.polynomial.hermite.hermval2d
numpy.polynomial.hermite.hermval3d
numpy.polynomial.hermite.hermgrid2d
numpy.polynomial.hermite.hermgrid3d
numpy.polynomial.hermite.hermroots
numpy.polynomial.hermite.hermfromroots
Fitting
numpy.polynomial.hermite.hermfit
numpy.polynomial.hermite.hermvander
numpy.polynomial.hermite.hermvander2d
numpy.polynomial.hermite.hermvander3d
Calculus
numpy.polynomial.hermite.hermder
numpy.polynomial.hermite.hermint
Algebra
numpy.polynomial.hermite.hermadd
numpy.polynomial.hermite.hermsub
numpy.polynomial.hermite.hermmul
numpy.polynomial.hermite.hermmulx
numpy.polynomial.hermite.hermdiv
numpy.polynomial.hermite.hermpow
Quadrature
numpy.polynomial.hermite.hermgauss
numpy.polynomial.hermite.hermweight
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
HermiteE Module, “Probabilists’” (
numpy.polynomial.hermite_e
)
HermiteE Class
numpy.polynomial.hermite_e.HermiteE
numpy.polynomial.hermite_e.HermiteE.domain
numpy.polynomial.hermite_e.HermiteE.window
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
Basics
numpy.polynomial.hermite_e.hermeval
numpy.polynomial.hermite_e.hermeval2d
numpy.polynomial.hermite_e.hermeval3d
numpy.polynomial.hermite_e.hermegrid2d
numpy.polynomial.hermite_e.hermegrid3d
numpy.polynomial.hermite_e.hermeroots
numpy.polynomial.hermite_e.hermefromroots
Fitting
numpy.polynomial.hermite_e.hermefit
numpy.polynomial.hermite_e.hermevander
numpy.polynomial.hermite_e.hermevander2d
numpy.polynomial.hermite_e.hermevander3d
Calculus
numpy.polynomial.hermite_e.hermeder
numpy.polynomial.hermite_e.hermeint
Algebra
numpy.polynomial.hermite_e.hermeadd
numpy.polynomial.hermite_e.hermesub
numpy.polynomial.hermite_e.hermemul
numpy.polynomial.hermite_e.hermemulx
numpy.polynomial.hermite_e.hermediv
numpy.polynomial.hermite_e.hermepow
Quadrature
numpy.polynomial.hermite_e.hermegauss
numpy.polynomial.hermite_e.hermeweight
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
Poly1d
Basics
numpy.poly1d
numpy.poly1d.coeffs
numpy.poly1d.order
numpy.poly1d.variable
numpy.poly1d.__call__
numpy.poly1d.deriv
numpy.poly1d.integ
numpy.polyval
numpy.poly
numpy.roots
Fitting
numpy.polyfit
Calculus
numpy.polyder
numpy.polyint
Arithmetic
numpy.polyadd
numpy.polydiv
numpy.polymul
numpy.polysub
Warnings
numpy.RankWarning
Random sampling (
numpy.random
)
Simple random data
numpy.random.rand
numpy.random.randn
numpy.random.randint
numpy.random.random_integers
numpy.random.random_sample
numpy.random.random
numpy.random.ranf
numpy.random.sample
numpy.random.choice
numpy.random.bytes
Permutations
numpy.random.shuffle
numpy.random.permutation
Distributions
numpy.random.beta
numpy.random.binomial
numpy.random.chisquare
numpy.random.dirichlet
numpy.random.exponential
numpy.random.f
numpy.random.gamma
numpy.random.geometric
numpy.random.gumbel
numpy.random.hypergeometric
numpy.random.laplace
numpy.random.logistic
numpy.random.lognormal
numpy.random.logseries
numpy.random.multinomial
numpy.random.multivariate_normal
numpy.random.negative_binomial
numpy.random.noncentral_chisquare
numpy.random.noncentral_f
numpy.random.normal
numpy.random.pareto
numpy.random.poisson
numpy.random.power
numpy.random.rayleigh
numpy.random.standard_cauchy
numpy.random.standard_exponential
numpy.random.standard_gamma
numpy.random.standard_normal
numpy.random.standard_t
numpy.random.triangular
numpy.random.uniform
numpy.random.vonmises
numpy.random.wald
numpy.random.weibull
numpy.random.zipf
Random generator
numpy.random.RandomState
numpy.random.RandomState.beta
numpy.random.RandomState.binomial
numpy.random.RandomState.bytes
numpy.random.RandomState.chisquare
numpy.random.RandomState.choice
numpy.random.RandomState.dirichlet
numpy.random.RandomState.exponential
numpy.random.RandomState.f
numpy.random.RandomState.gamma
numpy.random.RandomState.geometric
numpy.random.RandomState.get_state
numpy.random.RandomState.gumbel
numpy.random.RandomState.hypergeometric
numpy.random.RandomState.laplace
numpy.random.RandomState.logistic
numpy.random.RandomState.lognormal
numpy.random.RandomState.logseries
numpy.random.RandomState.multinomial
numpy.random.RandomState.multivariate_normal
numpy.random.RandomState.negative_binomial
numpy.random.RandomState.noncentral_chisquare
numpy.random.RandomState.noncentral_f
numpy.random.RandomState.normal
numpy.random.RandomState.pareto
numpy.random.RandomState.permutation
numpy.random.RandomState.poisson
numpy.random.RandomState.power
numpy.random.RandomState.rand
numpy.random.RandomState.randint
numpy.random.RandomState.randn
numpy.random.RandomState.random_integers
numpy.random.RandomState.random_sample
numpy.random.RandomState.rayleigh
numpy.random.RandomState.seed
numpy.random.RandomState.set_state
numpy.random.RandomState.shuffle
numpy.random.RandomState.standard_cauchy
numpy.random.RandomState.standard_exponential
numpy.random.RandomState.standard_gamma
numpy.random.RandomState.standard_normal
numpy.random.RandomState.standard_t
numpy.random.RandomState.tomaxint
numpy.random.RandomState.triangular
numpy.random.RandomState.uniform
numpy.random.RandomState.vonmises
numpy.random.RandomState.wald
numpy.random.RandomState.weibull
numpy.random.RandomState.zipf
numpy.random.seed
numpy.random.get_state
numpy.random.set_state
Set routines
Making proper sets
numpy.unique
Boolean operations
numpy.in1d
numpy.intersect1d
numpy.setdiff1d
numpy.setxor1d
numpy.union1d
Sorting, searching, and counting
Sorting
numpy.sort
numpy.lexsort
numpy.argsort
numpy.ndarray.sort
numpy.msort
numpy.sort_complex
Searching
numpy.argmax
numpy.nanargmax
numpy.argmin
numpy.nanargmin
numpy.argwhere
numpy.nonzero
numpy.flatnonzero
numpy.where
numpy.searchsorted
numpy.extract
Counting
numpy.count_nonzero
Statistics
Order statistics
numpy.amin
numpy.amax
numpy.nanmin
numpy.nanmax
numpy.ptp
numpy.percentile
Averages and variances
numpy.average
numpy.mean
numpy.median
numpy.std
numpy.var
Correlating
numpy.corrcoef
numpy.correlate
numpy.cov
Histograms
numpy.histogram
numpy.histogram2d
numpy.histogramdd
numpy.bincount
numpy.digitize
Test Support (
numpy.testing
)
Asserts
numpy.testing.assert_almost_equal
numpy.testing.assert_approx_equal
numpy.testing.assert_array_almost_equal
numpy.testing.assert_array_equal
numpy.testing.assert_array_less
numpy.testing.assert_equal
numpy.testing.assert_raises
numpy.testing.assert_warns
numpy.testing.assert_string_equal
Decorators
numpy.testing.decorators.deprecated
numpy.testing.decorators.knownfailureif
numpy.testing.decorators.setastest
numpy.testing.decorators.skipif
numpy.testing.decorators.slow
numpy.testing.decorate_methods
Test Running
numpy.testing.Tester
numpy.testing.run_module_suite
numpy.testing.rundocs
Window functions
Various windows
numpy.bartlett
numpy.blackman
numpy.hamming
numpy.hanning
numpy.kaiser
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
numpy.distutils.system_info.get_info
numpy.distutils.system_info.get_standard_file
numpy.distutils.cpuinfo.cpu
numpy.distutils.log.set_verbosity
numpy.distutils.exec_command
Building Installable C libraries
npy-pkg-config files
Reusing a C library from another package
Conversion of
.src
files
Fortran files
Named repeat rule
Short repeat rule
Pre-defined names
Other files
Numpy C-API
Python Types and C-Structures
New Python Types Defined
PyArray_Type
PyArrayDescr_Type
PyUFunc_Type
PyArrayIter_Type
PyArrayMultiIter_Type
PyArrayNeighborhoodIter_Type
PyArrayFlags_Type
ScalarArrayTypes
Other C-Structures
PyArray_Dims
PyArray_Chunk
PyArrayInterface
Internally used structures
System configuration
Data type sizes
Platform information
Data Type API
Enumerated Types
Defines
Max and min values for integers
Number of bits in data types
Bit-width references to enumerated typenums
Integer that can hold a pointer
C-type names
Boolean
(Un)Signed Integer
(Complex) Floating point
Bit-width names
Printf Formatting
Array API
Array structure and data access
Data access
Creating arrays
From scratch
From other objects
Dealing with types
General check of Python Type
Data-type checking
Converting data types
New data types
Special functions for NPY_OBJECT
Array flags
Basic Array Flags
Combinations of array flags
Flag-like constants
Flag checking
Array method alternative API
Conversion
Shape Manipulation
Item selection and manipulation
Calculation
Functions
Array Functions
Other functions
Auxiliary Data With Object Semantics
Array Iterators
Broadcasting (multi-iterators)
Neighborhood iterator
Array Scalars
Data-type descriptors
Conversion Utilities
For use with
PyArg_ParseTuple
Other conversions
Miscellaneous
Importing the API
Checking the API Version
Internal Flexibility
Memory management
Threading support
Group 1
Group 2
Priority
Default buffers
Other constants
Miscellaneous Macros
Enumerated Types
Array Iterator API
Array Iterator
Converting from Previous NumPy Iterators
Simple Iteration Example
Simple Multi-Iteration Example
Iterator Data Types
Construction and Destruction
Functions For Iteration
UFunc API
Constants
Macros
Functions
Generic functions
Importing the API
Generalized Universal Function API
Definitions
Details of Signature
C-API for implementing Elementary Functions
Numpy core libraries
Numpy core math library
Floating point classification
Useful math constants
Low-level floating point manipulation
Complex functions
Linking against the core math library in an extension
Half-precision functions
C API Deprecations
Background
Deprecation Mechanism NPY_NO_DEPRECATED_API
Numpy internals
Numpy C Code Explanations
Memory model
Data-type encapsulation
N-D Iterators
Broadcasting
Array Scalars
Advanced (“Fancy”) Indexing
Fancy-indexing check
Fancy-indexing implementation
Creating the mapping object
Binding the mapping object
Getting (or Setting)
Universal Functions
Setup
Function call
One Loop
Strided Loop
Buffered Loop
Final output manipulation
Methods
Setup
Reduce
Accumulate
Reduceat
Internal organization of numpy arrays
Multidimensional Array Indexing Order Issues
Numpy and SWIG
Numpy.i: a SWIG Interface File for NumPy
Introduction
Using numpy.i
Available Typemaps
Input Arrays
In-Place Arrays
Argout Arrays
Argoutview Arrays
Output Arrays
Other Common Types: bool
Other Common Types: complex
NumPy Array Scalars and SWIG
Why is There a Second File?
Helper Functions
Macros
Routines
Beyond the Provided Typemaps
A Common Example
Other Situations
A Final Note
Summary
Testing the numpy.i Typemaps
Introduction
Testing Organization
Testing Header Files
Testing Source Files
Testing SWIG Interface Files
Testing Python Scripts
Acknowledgements
Contributing to Numpy
Working with
NumPy
source code
Introduction
Install git
Overview
In detail
Following the latest source
Get the local copy of the code
Updating the code
Git for development
Getting started with Git development
Basic Git setup
Making your own copy (fork) of NumPy
Set up and configure a github account
Create your own forked copy of NumPy
Set up your fork
Overview
In detail
Clone your fork
Linking your repository to the upstream repo
Git configuration
Overview
In detail
user.name and user.email
Aliases
Editor
Merging
Development workflow
Basic workflow
Making a new feature branch
The editing workflow
Overview
In more detail
Writing the commit message
Rebasing on master
Recovering from mess-ups
Asking for your changes to be merged with the main repo
Asking for code review
Filing a pull request
Pushing changes to the main repo
Additional things you might want to do
Rewriting commit history
Deleting a branch on github
Several people sharing a single repository
Exploring your repository
git resources
Tutorials and summaries
Advanced git workflow
Manual pages online
Release Notes
NumPy 1.3.0 Release Notes
Highlights
Python 2.6 support
Generalized ufuncs
Experimental Windows 64 bits support
New features
Formatting issues
Nan handling in max/min
Nan handling in sign
New ufuncs
Masked arrays
gfortran support on windows
Arch option for windows binary
Deprecated features
Histogram
Documentation changes
New C API
Multiarray API
Ufunc API
New defines
Portable NAN, INFINITY, etc...
Internal changes
numpy.core math configuration revamp
umath refactor
Improvements to build warnings
Separate core math library
CPU arch detection
NumPy 1.4.0 Release Notes
Highlights
New features
Extended array wrapping mechanism for ufuncs
Automatic detection of forward incompatibilities
New iterators
New polynomial support
New C API
New ufuncs
New defines
Testing
Reusing npymath
Improved set operations
Improvements
Deprecations
Internal changes
Use C99 complex functions when available
split multiarray and umath source code
Separate compilation
Separate core math library
NumPy 1.5.0 Release Notes
Highlights
New features
Changes
NumPy 1.6.0 Release Notes
Highlights
New features
Changes
Deprecated features
Removed features
NumPy 1.6.1 Release Notes
NumPy 1.6.2 Release Notes
About NumPy
NumPy community
About this documentation
Conventions
Reporting bugs
Numpy License
Glossary
Jargon
Next topic
NumPy User Guide
This Page
Show Source
Edit page
Quick search
Enter search terms or a module, class or function name.
Navigation
index
modules
|
modules
|
next
|
Numpy and Scipy Documentation
»