Table of Contents
A Guide to NumPy Documentation
A Guide to NumPy Documentation
Advanced F2PY usages
Advanced F2PY usages
API reference
Release
Array API
a
b
char *PyArray_BYTES()
char* PyArray_One()
char* PyArray_Zero()
char* PyDataMem_RENEW()
double PyArray_GetPriority()
int PyArrayIter_Check()
int PyArrayNeighborhoodIter_Next()
int PyArrayNeighborhoodIter_Reset()
int PyArray_AxisConverter()
int PyArray_BoolConverter()
int PyArray_Broadcast()
int PyArray_BufferConverter()
int PyArray_ByteorderConverter()
int PyArray_CanCastArrayTo()
int PyArray_CanCastSafely()
int PyArray_CanCastTo()
int PyArray_CanCastTypeTo()
int PyArray_CanCoerceScalar()
int PyArray_CastingConverter()
int PyArray_CastTo()
int PyArray_CheckAnyScalar()
int PyArray_CheckExact()
int PyArray_CheckScalar()
int PyArray_ClipmodeConverter()
int PyArray_CompareLists()
int PyArray_ConvertClipmodeSequence()
int PyArray_CopyInto()
int Pyarray_DescrAlignConverter()
int Pyarray_DescrAlignConverter2()
int PyArray_DescrConverter()
int PyArray_DescrConverter2()
int PyArray_Dump()
int PyArray_EquivByteorders()
int PyArray_FillWithScalar()
int PyArray_FLAGS()
int PyArray_Free()
int PyArray_GetArrayParamsFromObject()
int PyArray_HasArrayInterface()
int PyArray_HasArrayInterfaceType()
int PyArray_HASFIELDS()
int PyArray_IntpConverter()
int PyArray_IntpFromSequence()
int PyArray_ISALIGNED()
int PyArray_IsAnyScalar()
int PyArray_ISBEHAVED()
int PyArray_ISBEHAVED_RO()
int PyArray_ISBOOL()
int PyArray_ISBYTESWAPPED()
int PyArray_ISCARRAY()
int PyArray_ISCARRAY_RO()
int PyArray_ISCOMPLEX()
int PyArray_ISEXTENDED()
int PyArray_ISFARRAY()
int PyArray_ISFARRAY_RO()
int PyArray_ISFLEXIBLE()
int PyArray_ISFLOAT()
int PyArray_ISFORTRAN()
int PyArray_ISINTEGER()
int PyArray_ISNOTSWAPPED()
int PyArray_ISNUMBER()
int PyArray_ISOBJECT()
int PyArray_ISONESEGMENT()
int PyArray_ISPYTHON()
int PyArray_IsPythonNumber()
int PyArray_IsPythonScalar()
int PyArray_ISSIGNED()
int PyArray_ISSTRING()
int PyArray_ISUNSIGNED()
int PyArray_ISUSERDEF()
int PyArray_ISWRITEABLE()
int PyArray_IsZeroDim()
int PyArray_IS_C_CONTIGUOUS()
int PyArray_IS_F_CONTIGUOUS()
int PyArray_ITER_NOTDONE()
int PyArray_MoveInto()
int PyArray_MultiIter_NOTDONE()
int PyArray_MultiplyIntList()
int PyArray_NDIM()
int PyArray_ObjectType()
int PyArray_OrderConverter()
int PyArray_OutputConverter()
int PyArray_Partition()
int PyArray_RegisterCanCast()
int PyArray_RegisterCastFunc()
int PyArray_RegisterDataType()
int PyArray_RemoveSmallest()
int PyArray_ResolveWritebackIfCopy()
int PyArray_SearchsideConverter()
int PyArray_SetBaseObject()
int PyArray_SetField()
int PyArray_SETITEM()
int PyArray_SetUpdateIfCopyBase()
int PyArray_SetWritebackIfCopyBase()
int PyArray_SortkindConverter()
int PyArray_TYPE()
int PyArray_TypestrConvert()
int PyArray_ValidType()
int PyArray_XDECREF()
int PyDataType_HASFIELDS()
int PyDataType_ISBOOL()
int PyDataType_ISCOMPLEX()
int PyDataType_ISEXTENDED()
int PyDataType_ISFLEXIBLE()
int PyDataType_ISFLOAT()
int PyDataType_ISINTEGER()
int PyDataType_ISNUMBER()
int PyDataType_ISOBJECT()
int PyDataType_ISPYTHON()
int PyDataType_ISSIGNED()
int PyDataType_ISSTRING()
int PyDataType_ISUNSIGNED()
int PyDataType_ISUNSIZED()
int PyDataType_ISUSERDEF()
int PyTypeNum_ISBOOL()
int PyTypeNum_ISCOMPLEX()
int PyTypeNum_ISEXTENDED()
int PyTypeNum_ISFLEXIBLE()
int PyTypeNum_ISFLOAT()
int PyTypeNum_ISINTEGER()
int PyTypeNum_ISNUMBER()
int PyTypeNum_ISOBJECT()
int PyTypeNum_ISPYTHON()
int PyTypeNum_ISSIGNED()
int PyTypeNum_ISSTRING()
int PyTypeNum_ISUSERDEF()
NO_IMPORT_ARRAY
NpyAuxData *NPY_AUXDATA_CLONE()
NpyAuxData_CloneFunc
NpyAuxData_FreeFunc
NPY_ALLOW_C_API
NPY_ARRAY_ALIGNED
NPY_ARRAY_BEHAVED
NPY_ARRAY_BEHAVED_NS
NPY_ARRAY_CARRAY
NPY_ARRAY_CARRAY_RO
NPY_ARRAY_DEFAULT
NPY_ARRAY_ELEMENTSTRIDES
NPY_ARRAY_ENSUREARRAY
NPY_ARRAY_ENSURECOPY
NPY_ARRAY_FARRAY
NPY_ARRAY_FARRAY_RO
NPY_ARRAY_FORCECAST
NPY_ARRAY_F_CONTIGUOUS
NPY_ARRAY_INOUT_ARRAY
NPY_ARRAY_INOUT_FARRAY
NPY_ARRAY_IN_ARRAY
NPY_ARRAY_IN_FARRAY
NPY_ARRAY_NOTSWAPPED
NPY_ARRAY_OUT_ARRAY
NPY_ARRAY_OUT_FARRAY
NPY_ARRAY_OWNDATA
NPY_ARRAY_UPDATEIFCOPY
NPY_ARRAY_UPDATE_ALL
NPY_ARRAY_WRITEABLE
NPY_ARRAY_WRITEBACKIFCOPY
NPY_BEGIN_THREADS
NPY_BEGIN_THREADS_DEF
npy_bool PyArray_EquivArrTypes()
npy_bool PyArray_EquivTypenums()
npy_bool PyArray_EquivTypes()
NPY_BOOL_SCALAR
NPY_CASTING
NPY_CLIP
NPY_CLIPMODE
NPY_COMPLEX_SCALAR
NPY_CORDER
NPY_DISABLE_C_API
NPY_END_ALLOW_THREADS
NPY_END_THREADS
NPY_EQUIV_CASTING
NPY_FAIL
NPY_FALSE
NPY_FEATURE_VERSION
NPY_FLOAT_SCALAR
NPY_FORTRANORDER
NPY_HEAPSORT
NPY_INTNEG_SCALAR
npy_intp *PyArray_DIMS()
npy_intp *PyArray_SHAPE()
npy_intp *PyArray_STRIDES()
npy_intp PyArray_CountNonzero()
npy_intp PyArray_DIM()
npy_intp PyArray_ITEMSIZE()
npy_intp PyArray_MultiplyList()
npy_intp PyArray_NBYTES()
npy_intp PyArray_PyIntAsIntp()
npy_intp PyArray_REFCOUNT()
npy_intp PyArray_Size()
npy_intp PyArray_SIZE()
npy_intp PyArray_STRIDE()
npy_intp* PyDimMem_NEW()
npy_intp* PyDimMem_RENEW()
NPY_INTPOS_SCALAR
NPY_KEEPORDER
NPY_MAXARGS
NPY_MAXDIMS
NPY_MAX_BUFSIZE
NPY_MERGESORT
NPY_MIN_BUFSIZE
NPY_NEIGHBORHOOD_ITER_CIRCULAR_PADDING
NPY_NEIGHBORHOOD_ITER_CONSTANT_PADDING
NPY_NEIGHBORHOOD_ITER_MIRROR_PADDING
NPY_NEIGHBORHOOD_ITER_ONE_PADDING
NPY_NSCALARKINDS
NPY_NSORTS
NPY_OBJECT_SCALAR
NPY_ORDER
NPY_OUT_ARRAY
NPY_SAFE_CASTING
NPY_SAME_KIND_CASTING
NPY_SCALARKIND
NPY_SCALARKIND PyArray_ScalarKind()
NPY_SCALAR_PRIORITY
NPY_SEARCHRIGHT
NPY_SEARCHSIDE
NPY_SELECTKIND
NPY_STABLESORT
NPY_SUBTYPE_PRIORITY
NPY_SUCCEED
NPY_TRUE
NPY_UNSAFE_CASTING
NPY_WRAP
PyArrayObject* PyArray_GETCONTIGUOUS()
PyArrayObject** PyArray_ConvertToCommonType()
PyArray_CEQ()
PyArray_CGE()
PyArray_CGT()
PyArray_CLE()
PyArray_CLT()
PyArray_CNE()
PyArray_Descr *PyArray_DESCR()
PyArray_Descr *PyArray_DTYPE()
PyArray_Descr* PyArray_DescrFromObject()
PyArray_Descr* PyArray_DescrFromScalar()
PyArray_Descr* PyArray_DescrFromType()
PyArray_Descr* PyArray_DescrNew()
PyArray_Descr* PyArray_DescrNewByteorder()
PyArray_Descr* PyArray_DescrNewFromType()
PyArray_Descr* PyArray_MinScalarType()
PyArray_Descr* PyArray_PromoteTypes()
PyArray_Descr* PyArray_ResultType()
PyArray_IsScalar()
PyArray_MAX()
PyArray_MIN()
PyArray_VectorUnaryFunc* PyArray_GetCastFunc()
PyObject *PyArray_BASE()
PyObject *PyArray_BroadcastToShape()
PyObject *PyArray_CheckAxis()
PyObject *PyArray_FieldNames()
PyObject *PyArray_GETITEM()
PyObject* PyArray_All()
PyObject* PyArray_Any()
PyObject* PyArray_Arange()
PyObject* PyArray_ArangeObj()
PyObject* PyArray_ArgMin()
PyObject* PyArray_ArgPartition()
PyObject* PyArray_ArgSort()
PyObject* PyArray_Byteswap()
PyObject* PyArray_CastToType()
PyObject* PyArray_CheckFromAny()
PyObject* PyArray_Choose()
PyObject* PyArray_Clip()
PyObject* PyArray_Compress()
PyObject* PyArray_Concatenate()
PyObject* PyArray_Conjugate()
PyObject* PyArray_ContiguousFromAny()
PyObject* PyArray_ContiguousFromObject()
PyObject* PyArray_CopyAndTranspose()
PyObject* PyArray_Correlate()
PyObject* PyArray_Correlate2()
PyObject* PyArray_CumProd()
PyObject* PyArray_CumSum()
PyObject* PyArray_Diagonal()
PyObject* PyArray_Dumps()
PyObject* PyArray_EinsteinSum()
PyObject* PyArray_Empty()
PyObject* PyArray_EMPTY()
PyObject* PyArray_EnsureArray()
PyObject* PyArray_Flatten()
PyObject* PyArray_FROMANY()
PyObject* PyArray_FromArray()
PyObject* PyArray_FromArrayAttr()
PyObject* PyArray_FromBuffer()
PyObject* PyArray_FromFile()
PyObject* PyArray_FromInterface()
PyObject* PyArray_FromObject()
PyObject* PyArray_FromScalar()
PyObject* PyArray_FromString()
PyObject* PyArray_FromStructInterface()
PyObject* PyArray_FROM_O()
PyObject* PyArray_FROM_OF()
PyObject* PyArray_FROM_OT()
PyObject* PyArray_FROM_OTF()
PyObject* PyArray_GetNumericOps()
PyObject* PyArray_InnerProduct()
PyObject* PyArray_IterAllButAxis()
PyObject* PyArray_LexSort()
PyObject* PyArray_MatrixProduct()
PyObject* PyArray_MatrixProduct2()
PyObject* PyArray_Max()
PyObject* PyArray_Mean()
PyObject* PyArray_Min()
PyObject* PyArray_New()
PyObject* PyArray_NewCopy()
PyObject* PyArray_NewLikeArray()
PyObject* PyArray_Nonzero()
PyObject* PyArray_Prod()
PyObject* PyArray_Ptp()
PyObject* PyArray_PutMask()
PyObject* PyArray_PutTo()
PyObject* PyArray_Ravel()
PyObject* PyArray_Repeat()
PyObject* PyArray_Reshape()
PyObject* PyArray_Resize()
PyObject* PyArray_Round()
PyObject* PyArray_Scalar()
PyObject* PyArray_SearchSorted()
PyObject* PyArray_SimpleNew()
PyObject* PyArray_SimpleNewFromData()
PyObject* PyArray_SimpleNewFromDescr()
PyObject* PyArray_Sort()
PyObject* PyArray_Squeeze()
PyObject* PyArray_Std()
PyObject* PyArray_Sum()
PyObject* PyArray_SwapAxes()
PyObject* PyArray_ToFile()
PyObject* PyArray_ToList()
PyObject* PyArray_ToScalar()
PyObject* PyArray_ToString()
PyObject* PyArray_Trace()
PyObject* PyArray_Transpose()
PyObject* PyArray_TypeObjectFromType()
PyObject* PyArray_View()
PyObject* PyArray_Where()
PyObject* PyArray_Zeros()
PyObject* PyArray_ZEROS()
PY_ARRAY_UNIQUE_SYMBOL
unsigned int PyArray_GetNDArrayCFeatureVersion()
unsigned int PyArray_GetNDArrayCVersion()
void *PyArray_DATA()
void *PyArray_ITER_DATA()
void *PyArray_MultiIter_DATA()
void NPY_AUXDATA_FREE()
void NPY_BEGIN_THREADS_DESCR()
void NPY_BEGIN_THREADS_THRESHOLDED()
void NPY_END_THREADS_DESCR()
void PyArray_ArrayType()
void PyArray_CastScalarToCtype()
void PyArray_CLEARFLAGS()
void PyArray_DiscardWritebackIfCopy()
void PyArray_ENABLEFLAGS()
void PyArray_FillObjectArray()
void PyArray_FILLWBYTE()
void PyArray_free()
void PyArray_Item_INCREF()
void PyArray_Item_XDECREF()
void PyArray_ITER_GOTO()
void PyArray_ITER_GOTO1D()
void PyArray_ITER_NEXT()
void PyArray_ITER_RESET()
void PyArray_MultiIter_GOTO()
void PyArray_MultiIter_GOTO1D()
void PyArray_MultiIter_NEXT()
void PyArray_MultiIter_NEXTi()
void PyArray_MultiIter_RESET()
void PyArray_ScalarAsCtype()
void PyArray_SetStringFunction()
void PyArray_UpdateFlags()
void PyArray_XDECREF_ERR()
void PyDataMem_FREE()
void PyDimMem_FREE()
void* PyArray_GETPTR1()
void* PyArray_GETPTR2()
void* PyArray_GETPTR3()
void* PyArray_GETPTR4()
void* PyArray_malloc()
void* PyArray_realloc()
WITH_THREADS
Array creation routines
Array creation routines
core.defchararray.array()
core.defchararray.asarray()
core.records.array()
core.records.fromarrays()
core.records.fromfile()
core.records.fromrecords()
core.records.fromstring()
numpy.arange()
numpy.array()
numpy.bmat()
numpy.copy()
numpy.diagflat()
numpy.empty()
numpy.empty_like()
numpy.eye()
numpy.frombuffer()
numpy.fromfile()
numpy.fromfunction()
numpy.fromiter()
numpy.full()
numpy.full_like()
numpy.geomspace()
numpy.identity()
numpy.linspace()
numpy.logspace()
numpy.mat()
numpy.meshgrid()
numpy.mgrid
numpy.ones()
numpy.ones_like()
numpy.tri()
numpy.tril()
numpy.triu()
numpy.vander()
numpy.zeros()
numpy.zeros_like()
Array Iterator API
char** NpyIter_GetDataPtrArray()
char** NpyIter_GetInitialDataPtrArray()
int NpyIter_CreateCompatibleStrides()
int NpyIter_Deallocate()
int NpyIter_EnableExternalLoop()
int NpyIter_GetNDim()
int NpyIter_GetNOp()
int NpyIter_GetShape()
int NpyIter_GotoIndex()
int NpyIter_GotoIterIndex()
int NpyIter_GotoMultiIndex()
int NpyIter_RemoveAxis()
int NpyIter_RemoveMultiIndex()
int NpyIter_Reset()
int NpyIter_ResetBasePointers()
int NpyIter_ResetToIterIndexRange()
NpyIter
NpyIter* NpyIter_AdvancedNew()
NpyIter* NpyIter_Copy()
NpyIter* NpyIter_MultiNew()
NpyIter_GetMultiIndexFunc
NpyIter_GetMultiIndexFunc *NpyIter_GetGetMultiIndex()
NpyIter_IterNextFunc
NpyIter_Type
npy_bool NpyIter_HasDelayedBufAlloc()
npy_bool NpyIter_HasExternalLoop()
npy_bool NpyIter_HasIndex()
npy_bool NpyIter_HasMultiIndex()
npy_bool NpyIter_IsBuffered()
npy_bool NpyIter_IsFirstVisit()
npy_bool NpyIter_IsGrowInner()
npy_bool NpyIter_RequiresBuffering()
npy_intp NpyIter_GetBufferSize()
npy_intp NpyIter_GetIterIndex()
npy_intp NpyIter_GetIterSize()
npy_intp* NpyIter_GetAxisStrideArray()
npy_intp* NpyIter_GetIndexPtr()
npy_intp* NpyIter_GetInnerLoopSizePtr()
npy_intp* NpyIter_GetInnerStrideArray()
NPY_ITER_ALIGNED
NPY_ITER_ALLOCATE
NPY_ITER_ARRAYMASK
NPY_ITER_BUFFERED
NPY_ITER_COMMON_DTYPE
NPY_ITER_CONTIG
NPY_ITER_COPY
NPY_ITER_COPY_IF_OVERLAP
NPY_ITER_DELAY_BUFALLOC
NPY_ITER_DONT_NEGATE_STRIDES
NPY_ITER_EXTERNAL_LOOP
NPY_ITER_F_INDEX
NPY_ITER_GROWINNER
NPY_ITER_MULTI_INDEX
NPY_ITER_NBO
NPY_ITER_NO_BROADCAST
NPY_ITER_NO_SUBTYPE
NPY_ITER_OVERLAP_ASSUME_ELEMENTWISE
NPY_ITER_RANGED
NPY_ITER_READONLY
NPY_ITER_REDUCE_OK
NPY_ITER_REFS_OK
NPY_ITER_UPDATEIFCOPY
NPY_ITER_WRITEMASKED
NPY_ITER_WRITEONLY
NPY_ITER_ZEROSIZE_OK
PyArray_Descr** NpyIter_GetDescrArray()
PyObject* NpyIter_GetIterView()
PyObject** NpyIter_GetOperandArray()
void NpyIter_GetInnerFixedStrideArray()
void NpyIter_GetIterIndexRange()
void NpyIter_GetReadFlags()
void NpyIter_GetWriteFlags()
Array manipulation routines
Array manipulation routines
broadcast.reset()
ndarray.flat
ndarray.flatten()
ndarray.T
numpy.append()
numpy.array_split()
numpy.asanyarray()
numpy.asarray()
numpy.asarray_chkfinite()
numpy.ascontiguousarray()
numpy.asfarray()
numpy.asfortranarray()
numpy.asmatrix()
numpy.asscalar()
numpy.atleast_1d()
numpy.atleast_2d()
numpy.atleast_3d()
numpy.block()
numpy.broadcast
numpy.broadcast_arrays()
numpy.broadcast_to()
numpy.column_stack()
numpy.concatenate()
numpy.copyto()
numpy.delete()
numpy.dsplit()
numpy.dstack()
numpy.expand_dims()
numpy.flip()
numpy.fliplr()
numpy.flipud()
numpy.hsplit()
numpy.hstack()
numpy.insert()
numpy.moveaxis()
numpy.ravel()
numpy.repeat()
numpy.require()
numpy.reshape()
numpy.resize()
numpy.roll()
numpy.rollaxis()
numpy.rot90()
numpy.row_stack()
numpy.shape()
numpy.split()
numpy.squeeze()
numpy.stack()
numpy.swapaxes()
numpy.tile()
numpy.transpose()
numpy.trim_zeros()
numpy.vsplit()
numpy.vstack()
Array objects
Array objects
Binary operations
1
Binary operations
numpy.bitwise_and()
numpy.bitwise_or()
numpy.bitwise_xor()
numpy.invert()
numpy.left_shift()
numpy.packbits()
numpy.right_shift()
numpy.unpackbits()
Building the NumPy API and reference docs
Building the NumPy API and reference docs
C API Deprecations
C API Deprecations
C-Types Foreign Function Interface (numpy.ctypeslib)
numpy.ctypeslib.as_array()
numpy.ctypeslib.as_ctypes()
numpy.ctypeslib.as_ctypes_type()
numpy.ctypeslib.load_library()
numpy.ctypeslib.ndpointer()
Constants
numpy.e
numpy.euler_gamma
numpy.Inf
numpy.inf
numpy.Infinity
numpy.infty
numpy.NAN
numpy.nan
numpy.NaN
numpy.newaxis
numpy.NINF
numpy.NZERO
numpy.pi
numpy.PINF
numpy.PZERO
Data Type API
NPY_BOOL
NPY_BYTE
NPY_CDOUBLE
NPY_CFLOAT
NPY_CLONGDOUBLE
NPY_COMPLEX128
NPY_COMPLEX64
NPY_DATETIME
NPY_DEFAULT_TYPE
NPY_DOUBLE
NPY_FLOAT
NPY_FLOAT16
NPY_FLOAT32
NPY_FLOAT64
NPY_HALF
NPY_INT
npy_int
NPY_INT16
npy_int16
npy_int32
NPY_INT32
npy_int64
NPY_INT64
NPY_INT8
NPY_INTP
npy_intp
NPY_INTP_FMT
NPY_LONG
NPY_LONGDOUBLE
NPY_LONGDOUBLE_FMT
NPY_LONGLONG
NPY_MASK
NPY_NOTYPE
NPY_NTYPES
NPY_OBJECT
npy_short
NPY_SHORT
NPY_STRING
NPY_TIMEDELTA
NPY_TYPES
NPY_UBYTE
npy_uint
NPY_UINT
npy_uint16
NPY_UINT16
NPY_UINT32
npy_uint32
NPY_UINT64
npy_uint64
NPY_UINT8
npy_uintp
NPY_UINTP
NPY_UINTP_FMT
NPY_ULONG
NPY_ULONGLONG
NPY_ULONGLONG_FMT
NPY_UNICODE
NPY_USERDEF
NPY_USHORT
npy_ushort
NPY_VOID
Data type objects (dtype)
Attributes
dtype.alignment
dtype.base
dtype.byteorder
dtype.char
dtype.descr
dtype.fields
dtype.flags
dtype.hasobject
dtype.isbuiltin
dtype.isnative
dtype.itemsize
dtype.kind
dtype.metadata
dtype.name
dtype.names
dtype.num
dtype.shape
dtype.str
dtype.subdtype
dtype.type
dtype.__reduce__()
dtype.__setstate__()
Data type routines
1
1
2
Attributes
dtype.newbyteorder()
numpy.can_cast()
numpy.common_type()
numpy.dtype
numpy.find_common_type()
numpy.finfo()
numpy.format_parser()
numpy.iinfo()
numpy.issctype()
numpy.issubclass_()
numpy.issubdtype()
numpy.issubsctype()
numpy.MachAr()
numpy.maximum_sctype()
numpy.mintypecode()
numpy.min_scalar_type()
numpy.obj2sctype()
numpy.promote_types()
numpy.result_type()
numpy.sctype2char()
numpy.typename()
Datetime Support Functions
Datetime Support Functions
numpy.busdaycalendar()
numpy.busday_count()
numpy.busday_offset()
numpy.datetime_as_string()
numpy.datetime_data()
numpy.is_busday()
Datetimes and Timedeltas
Datetimes and Timedeltas
Development
::
Additional Git Resources
Contributing to NumPy
Current steering council and institutional partners
Development workflow
Get the local copy of the code
Git configuration
Git for development
How to contribute to the NumPy documentation
Install git
Is the intended behavior clear under all conditions? Some things to watch:
NumPy governance
NumPy project governance and decision-making
Setting up and using your development environment
Setting up git for NumPy development
Two and three dots in difference specs
Under-the-hood Documentation for developers
Discrete Fourier Transform (numpy.fft)
CT
CT
fft.fft()
fft.fft2()
fft.fftfreq()
fft.fftn()
fft.fftshift()
fft.hfft()
fft.ifft()
fft.ifft2()
fft.ifftn()
fft.ifftshift()
fft.ihfft()
fft.irfft()
fft.irfft2()
fft.irfftn()
fft.rfft()
fft.rfft2()
fft.rfftfreq()
fft.rfftn()
Documentation conventions
Documentation conventions
F2PY Users Guide and Reference Manual
F2PY Users Guide and Reference Manual
Floating point error handling
errstate.__call__()
Floating point error handling
numpy.errstate()
numpy.geterr()
numpy.geterrcall()
numpy.geterrobj()
numpy.seterrobj()
Functional programming
1
Functional programming
numpy.apply_along_axis()
numpy.apply_over_axes()
numpy.frompyfunc()
numpy.piecewise()
numpy.vectorize()
vectorize.__call__()
Generalized Universal Function API
Elementary Function
Global State
Global State
Glossary
()
Indexing
numpy.newaxis
Indexing routines
flatiter.copy()
Indexing routines
lib.stride_tricks.as_strided()
lib.stride_tricks.sliding_window_view()
ndindex.ndincr()
nditer.close()
nditer.copy()
nditer.debug_print()
nditer.enable_external_loop()
nditer.iternext()
nditer.remove_axis()
nditer.remove_multi_index()
nditer.reset()
numpy.choose()
numpy.compress()
numpy.c_
numpy.diag()
numpy.diagonal()
numpy.diag_indices()
numpy.diag_indices_from()
numpy.fill_diagonal()
numpy.flatiter
numpy.indices()
numpy.ix_()
numpy.lib.Arrayterator()
numpy.mask_indices()
numpy.ndenumerate()
numpy.ndindex()
numpy.nditer()
numpy.nested_iters()
numpy.ogrid
numpy.place()
numpy.put()
numpy.putmask()
numpy.put_along_axis()
numpy.ravel_multi_index()
numpy.r_
numpy.select()
numpy.s_
numpy.take()
numpy.take_along_axis()
numpy.tril_indices()
numpy.tril_indices_from()
numpy.triu_indices()
numpy.triu_indices_from()
numpy.unravel_index()
Input and output
1
1
1
DataSource.abspath()
DataSource.exists()
DataSource.open()
Input and output
lib.format.open_memmap()
memmap.flush()
ndarray.tofile()
ndarray.tolist()
numpy.array2string()
numpy.array_repr()
numpy.array_str()
numpy.base_repr()
numpy.binary_repr()
numpy.DataSource()
numpy.format_float_positional()
numpy.format_float_scientific()
numpy.fromregex()
numpy.fromstring()
numpy.genfromtxt()
numpy.get_printoptions()
numpy.load()
numpy.loadtxt()
numpy.memmap
numpy.printoptions()
numpy.save()
numpy.savetxt()
numpy.savez()
numpy.savez_compressed()
numpy.set_printoptions()
numpy.set_string_function()
“descr”dtype.descr
Iterating Over Arrays
Iterating Over Arrays
Linear algebra (numpy.linalg)
1
1
1
1
1
1
1
1
2
2
linalg.cholesky()
linalg.cond()
linalg.det()
linalg.eig()
linalg.eigh()
linalg.eigvals()
linalg.eigvalsh()
linalg.inv()
linalg.LinAlgError
linalg.lstsq()
linalg.matrix_power()
linalg.matrix_rank()
linalg.multi_dot()
linalg.norm()
linalg.pinv()
linalg.qr()
linalg.slogdet()
linalg.solve()
linalg.svd()
linalg.tensorinv()
linalg.tensorsolve()
Linear algebra (numpy.linalg)
numpy.dot()
numpy.einsum()
numpy.einsum_path()
numpy.inner()
numpy.kron()
numpy.matmul()
numpy.outer()
numpy.tensordot()
numpy.trace()
numpy.vdot()
Logic functions
Logic functions
numpy.all()
numpy.allclose()
numpy.any()
numpy.array_equal()
numpy.array_equiv()
numpy.equal()
numpy.greater()
numpy.greater_equal()
numpy.isclose()
numpy.iscomplex()
numpy.iscomplexobj()
numpy.isfinite()
numpy.isfortran()
numpy.isinf()
numpy.isnan()
numpy.isnat()
numpy.isneginf()
numpy.isposinf()
numpy.isreal()
numpy.isrealobj()
numpy.isscalar()
numpy.less()
numpy.less_equal()
numpy.logical_and()
numpy.logical_not()
numpy.logical_or()
numpy.logical_xor()
numpy.not_equal()
Masked array operations
1
1
1
2
ma.all()
ma.allclose()
ma.allequal()
ma.anom()
ma.anomalies()
ma.any()
ma.append()
ma.apply_along_axis()
ma.apply_over_axes()
ma.arange()
ma.argmax()
ma.argmin()
ma.argsort()
ma.around
ma.array()
ma.asanyarray()
ma.asarray()
ma.atleast_1d()
ma.atleast_2d()
ma.atleast_3d()
ma.average()
ma.choose()
ma.clip()
ma.clump_masked()
ma.clump_unmasked()
ma.column_stack()
ma.common_fill_value()
ma.compressed()
ma.compress_cols()
ma.compress_rowcols()
ma.compress_rows()
ma.concatenate()
ma.conjugate()
ma.copy()
ma.corrcoef()
ma.count()
ma.count_masked()
ma.cov()
ma.cumprod()
ma.cumsum()
ma.default_fill_value()
ma.diag()
ma.dot()
ma.dstack()
ma.ediff1d()
ma.empty()
ma.empty_like()
ma.expand_dims()
ma.filled()
ma.fix_invalid()
ma.flatnotmasked_contiguous()
ma.flatnotmasked_edges()
ma.frombuffer()
ma.fromfunction()
ma.getdata()
ma.getmask()
ma.getmaskarray()
ma.harden_mask()
ma.hsplit()
ma.hstack()
ma.identity()
ma.indices()
ma.inner()
ma.innerproduct()
ma.isarray()
ma.isMA()
ma.isMaskedArray()
ma.is_mask()
ma.is_masked()
ma.make_mask()
ma.make_mask_descr()
ma.make_mask_none()
ma.MaskedArray.all()
ma.MaskedArray.anom()
ma.MaskedArray.any()
ma.MaskedArray.argmax()
ma.MaskedArray.argmin()
ma.MaskedArray.argsort()
ma.MaskedArray.clip()
ma.MaskedArray.compressed()
ma.MaskedArray.copy()
ma.MaskedArray.count()
ma.MaskedArray.cumprod()
ma.MaskedArray.cumsum()
ma.MaskedArray.filled()
ma.MaskedArray.flatten()
ma.MaskedArray.get_fill_value()
ma.MaskedArray.harden_mask()
ma.MaskedArray.max()
ma.MaskedArray.mean()
ma.MaskedArray.min()
ma.MaskedArray.nonzero()
ma.MaskedArray.prod()
ma.MaskedArray.ptp()
ma.MaskedArray.ravel()
ma.MaskedArray.reshape()
ma.MaskedArray.resize()
ma.MaskedArray.round()
ma.MaskedArray.set_fill_value()
ma.MaskedArray.shrink_mask()
ma.MaskedArray.soften_mask()
ma.MaskedArray.sort()
ma.MaskedArray.squeeze()
ma.MaskedArray.std()
ma.MaskedArray.sum()
ma.MaskedArray.swapaxes()
ma.MaskedArray.tobytes()
ma.MaskedArray.tofile()
ma.MaskedArray.tolist()
ma.MaskedArray.torecords()
ma.MaskedArray.trace()
ma.MaskedArray.transpose()
ma.MaskedArray.unshare_mask()
ma.MaskedArray.var()
ma.masked_all()
ma.masked_all_like()
ma.masked_equal()
ma.masked_greater()
ma.masked_greater_equal()
ma.masked_inside()
ma.masked_invalid()
ma.masked_less()
ma.masked_less_equal()
ma.masked_not_equal()
ma.masked_object()
ma.masked_outside()
ma.masked_values()
ma.masked_where()
ma.mask_cols()
ma.mask_or()
ma.mask_rowcols()
ma.mask_rows()
ma.max()
ma.maximum_fill_value()
ma.mean()
ma.median()
ma.min()
ma.minimum_fill_value()
ma.mr_
ma.nonzero()
ma.notmasked_contiguous()
ma.notmasked_edges()
ma.ones()
ma.outer()
ma.outerproduct()
ma.polyfit()
ma.power()
ma.prod()
ma.ptp()
ma.ravel()
ma.reshape()
ma.resize()
ma.round()
ma.row_stack()
ma.set_fill_value()
ma.shape()
ma.size()
ma.soften_mask()
ma.sort()
ma.squeeze()
ma.stack()
ma.std()
ma.sum()
ma.swapaxes()
ma.trace()
ma.transpose()
ma.vander()
ma.var()
ma.vstack()
ma.where()
ma.zeros()
Masked array operations
numpy.ma.masked_array
numpy.ma.MaskType
property ma.masked_array.mask
Masked arrays
ma.MaskedArray.astype()
ma.MaskedArray.base
ma.MaskedArray.byteswap()
ma.MaskedArray.choose()
ma.MaskedArray.compress()
ma.MaskedArray.conj()
ma.MaskedArray.conjugate()
ma.MaskedArray.ctypes
ma.MaskedArray.diagonal()
ma.MaskedArray.dump()
ma.MaskedArray.dumps()
ma.MaskedArray.fill()
ma.MaskedArray.flags
ma.MaskedArray.ids()
ma.MaskedArray.iscontiguous()
ma.MaskedArray.item()
ma.MaskedArray.itemsize
ma.MaskedArray.nbytes
ma.MaskedArray.ndim
ma.MaskedArray.product()
ma.MaskedArray.put()
ma.MaskedArray.repeat()
ma.MaskedArray.searchsorted()
ma.MaskedArray.size
ma.MaskedArray.strides
ma.MaskedArray.take()
ma.MaskedArray.toflex()
ma.MaskedArray.tostring()
ma.MaskedArray.view()
ma.MaskedArray.__abs__()
ma.MaskedArray.__add__()
ma.MaskedArray.__and__()
ma.MaskedArray.__array_priority__
ma.MaskedArray.__array_wrap__()
ma.MaskedArray.__array__()
ma.MaskedArray.__bool__()
ma.MaskedArray.__contains__()
ma.MaskedArray.__copy__()
ma.MaskedArray.__deepcopy__()
ma.MaskedArray.__delitem__()
ma.MaskedArray.__divmod__()
ma.MaskedArray.__div__()
ma.MaskedArray.__eq__()
ma.MaskedArray.__float__()
ma.MaskedArray.__floordiv__()
ma.MaskedArray.__getitem__()
ma.MaskedArray.__getstate__()
ma.MaskedArray.__ge__()
ma.MaskedArray.__gt__()
ma.MaskedArray.__iadd__()
ma.MaskedArray.__iand__()
ma.MaskedArray.__idiv__()
ma.MaskedArray.__ifloordiv__()
ma.MaskedArray.__ilshift__()
ma.MaskedArray.__imod__()
ma.MaskedArray.__imul__()
ma.MaskedArray.__int__()
ma.MaskedArray.__ior__()
ma.MaskedArray.__ipow__()
ma.MaskedArray.__irshift__()
ma.MaskedArray.__isub__()
ma.MaskedArray.__itruediv__()
ma.MaskedArray.__ixor__()
ma.MaskedArray.__len__()
ma.MaskedArray.__le__()
ma.MaskedArray.__lshift__()
ma.MaskedArray.__lt__()
ma.MaskedArray.__mod__()
ma.MaskedArray.__mul__()
ma.MaskedArray.__ne__()
ma.MaskedArray.__or__()
ma.MaskedArray.__pow__()
ma.MaskedArray.__radd__()
ma.MaskedArray.__rand__()
ma.MaskedArray.__rdivmod__()
ma.MaskedArray.__reduce__()
ma.MaskedArray.__repr__()
ma.MaskedArray.__rfloordiv__()
ma.MaskedArray.__rlshift__()
ma.MaskedArray.__rmod__()
ma.MaskedArray.__rmul__()
ma.MaskedArray.__ror__()
ma.MaskedArray.__rpow__()
ma.MaskedArray.__rrshift__()
ma.MaskedArray.__rshift__()
ma.MaskedArray.__rsub__()
ma.MaskedArray.__rtruediv__()
ma.MaskedArray.__rxor__()
ma.MaskedArray.__setitem__()
ma.MaskedArray.__setmask__()
ma.MaskedArray.__setstate__()
ma.MaskedArray.__str__()
ma.MaskedArray.__sub__()
ma.MaskedArray.__truediv__()
ma.MaskedArray.__xor__()
Masked arrays
MaskedArray.baseclass
MaskedArray.fill_value
MaskedArray.hardmask
MaskedArray.mask
MaskedArray.recordmask
MaskedArray.sharedmask
numpy.ma.masked
numpy.ma.masked_print_options
numpy.ma.nomask
property ma.MaskedArray.dtype
property ma.MaskedArray.flat
property ma.MaskedArray.imag
property ma.MaskedArray.real
property ma.MaskedArray.shape
property ma.MaskedArray.T
static ma.MaskedArray.__new__()
The numpy.ma module
Mathematical functions
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
3
3
Mathematical functions
numpy.absolute()
numpy.add()
numpy.angle()
numpy.arccos()
numpy.arccosh()
numpy.arcsin()
numpy.arcsinh()
numpy.arctan()
numpy.arctan2()
numpy.arctanh()
numpy.around()
numpy.cbrt()
numpy.ceil()
numpy.clip()
numpy.conj()
numpy.conjugate()
numpy.convolve()
numpy.copysign()
numpy.cos()
numpy.cosh()
numpy.cross()
numpy.cumprod()
numpy.cumsum()
numpy.deg2rad()
numpy.degrees()
numpy.diff()
numpy.divide()
numpy.divmod()
numpy.ediff1d()
numpy.exp()
numpy.exp2()
numpy.expm1()
numpy.fabs()
numpy.fix()
numpy.float_power()
numpy.floor()
numpy.floor_divide()
numpy.fmax()
numpy.fmin()
numpy.fmod()
numpy.frexp()
numpy.gcd()
numpy.gradient()
numpy.heaviside()
numpy.hypot()
numpy.i0()
numpy.imag()
numpy.interp()
numpy.lcm()
numpy.ldexp()
numpy.log()
numpy.log10()
numpy.log1p()
numpy.log2()
numpy.logaddexp()
numpy.logaddexp2()
numpy.maximum()
numpy.minimum()
numpy.mod()
numpy.modf()
numpy.multiply()
numpy.nancumprod()
numpy.nancumsum()
numpy.nanprod()
numpy.nansum()
numpy.nan_to_num()
numpy.negative()
numpy.nextafter()
numpy.positive()
numpy.power()
numpy.prod()
numpy.rad2deg()
numpy.radians()
numpy.real()
numpy.real_if_close()
numpy.reciprocal()
numpy.remainder()
numpy.rint()
numpy.round_()
numpy.sign()
numpy.signbit()
numpy.sin()
numpy.sinc()
numpy.sinh()
numpy.spacing()
numpy.sqrt()
numpy.square()
numpy.subtract()
numpy.sum()
numpy.tan()
numpy.tanh()
numpy.trapz()
numpy.true_divide()
numpy.trunc()
numpy.unwrap()
Mathematical functions with automatic domain (numpy.emath)
lib.scimath.arccos()
lib.scimath.arcsin()
lib.scimath.arctanh()
lib.scimath.log()
lib.scimath.log10()
lib.scimath.log2()
lib.scimath.logn()
lib.scimath.power()
lib.scimath.sqrt()
Mathematical functions with automatic domain (numpy.emath)
Matrix library (numpy.matlib)
matlib.empty()
matlib.eye()
matlib.identity()
matlib.ones()
matlib.rand()
matlib.randn()
matlib.repmat()
matlib.zeros()
Matrix library (numpy.matlib)
Memory Alignment
Some cases where uint and true alignment are different ()
Miscellaneous routines
Miscellaneous routines
numpy.broadcast_shapes()
numpy.byte_bounds()
numpy.deprecate()
numpy.deprecate_with_doc()
numpy.disp()
numpy.getbufsize()
numpy.get_include()
numpy.lib.mixins.NDArrayOperatorsMixin
numpy.lib.NumpyVersion()
numpy.may_share_memory()
numpy.shares_memory()
numpy.show_config()
numpy.who()
NumPy and SWIG
NumPy and SWIG
NumPy benchmarks
NumPy benchmarks
NumPy C Code Explanations
NumPy C Code Explanations
NumPy C-API
NumPy C-API
NumPy core libraries
double npy_copysign()
double npy_half_to_double()
double npy_spacing()
float npy_half_to_float()
int npy_clear_floatstatus()
int npy_clear_floatstatus_barrier()
int npy_get_floatstatus()
int npy_get_floatstatus_barrier()
int npy_half_eq()
int npy_half_eq_nonan()
int npy_half_ge()
int npy_half_gt()
int npy_half_isfinite()
int npy_half_isinf()
int npy_half_isnan()
int npy_half_iszero()
int npy_half_le()
int npy_half_le_nonan()
int npy_half_lt()
int npy_half_lt_nonan()
int npy_half_ne()
int npy_half_signbit()
int npy_isfinite()
int npy_isinf()
int npy_isnan()
int npy_signbit()
NPY_1_PI
NPY_2_PI
NPY_EULER
npy_half npy_double_to_half()
npy_half npy_float_to_half()
npy_half npy_half_copysign()
npy_half npy_half_nextafter()
npy_half npy_half_spacing()
NPY_HALF_NAN
NPY_HALF_NEGONE
NPY_HALF_NINF
NPY_HALF_NZERO
NPY_HALF_ONE
NPY_HALF_PINF
NPY_HALF_PZERO
NPY_INFINITY
NPY_LOG10E
NPY_LOG2E
NPY_LOGE10
NPY_LOGE2
NPY_NAN
NPY_NZERO
NPY_PI
NPY_PI_2
NPY_PI_4
NPY_PZERO
npy_uint16 npy_doublebits_to_halfbits()
npy_uint16 npy_floatbits_to_halfbits()
npy_uint32 npy_halfbits_to_floatbits()
npy_uint64 npy_halfbits_to_doublebits()
void npy_set_floatstatus_divbyzero()
void npy_set_floatstatus_invalid()
void npy_set_floatstatus_overflow()
void npy_set_floatstatus_underflow()
NumPy Distutils - Users Guide
config.add_library()
NumPy internals
NumPy internals
NumPy license
NumPy license
NumPy-specific help functions
NumPy-specific help functions
numpy.info()
numpy.lookfor()
numpy.source()
numpy.i: a SWIG Interface File for NumPy
is_array()
NumPy’s Documentation
NumPy’s Documentation
Optionally SciPy-accelerated routines (numpy.dual)
Optionally SciPy-accelerated routines (numpy.dual)
Packaging (numpy.distutils)
add_data_dir()
add_data_files()
add_extension()
add_headers()
add_include_dirs()
add_installed_library()
add_library()
add_npy_pkg_config()
add_scripts()
add_subpackage()
distutils.cpuinfo.cpu
distutils.log.set_verbosity()
distutils.system_info.get_info()
distutils.system_info.get_standard_file()
exec_command
get_build_temp_dir()
get_config_cmd()
get_distribution()
get_info()
get_subpackage()
get_version()
have_f77c()
have_f90c()
make_config_py()
make_svn_version_py()
numpy.distutils.ccompiler
numpy.distutils.ccompiler_opt
numpy.distutils.core.Extension()
numpy.distutils.misc_util.allpath()
numpy.distutils.misc_util.all_strings()
numpy.distutils.misc_util.appendpath()
numpy.distutils.misc_util.as_list()
numpy.distutils.misc_util.blue_text()
numpy.distutils.misc_util.cyan_text()
numpy.distutils.misc_util.cyg2win32()
numpy.distutils.misc_util.default_config_dict()
numpy.distutils.misc_util.dict_append()
numpy.distutils.misc_util.dot_join()
numpy.distutils.misc_util.filter_sources()
numpy.distutils.misc_util.generate_config_py()
numpy.distutils.misc_util.get_build_architecture()
numpy.distutils.misc_util.get_cmd()
numpy.distutils.misc_util.get_data_files()
numpy.distutils.misc_util.get_dependencies()
numpy.distutils.misc_util.get_ext_source_files()
numpy.distutils.misc_util.get_frame()
numpy.distutils.misc_util.get_info()
numpy.distutils.misc_util.get_language()
numpy.distutils.misc_util.get_lib_source_files()
numpy.distutils.misc_util.get_mathlibs()
numpy.distutils.misc_util.get_numpy_include_dirs()
numpy.distutils.misc_util.get_num_build_jobs()
numpy.distutils.misc_util.get_pkg_info()
numpy.distutils.misc_util.get_script_files()
numpy.distutils.misc_util.gpaths()
numpy.distutils.misc_util.green_text()
numpy.distutils.misc_util.has_cxx_sources()
numpy.distutils.misc_util.has_f_sources()
numpy.distutils.misc_util.is_local_src_dir()
numpy.distutils.misc_util.is_sequence()
numpy.distutils.misc_util.is_string()
numpy.distutils.misc_util.mingw32()
numpy.distutils.misc_util.minrelpath()
numpy.distutils.misc_util.njoin()
numpy.distutils.misc_util.quote_args()
numpy.distutils.misc_util.red_text()
numpy.distutils.misc_util.terminal_has_colors()
numpy.distutils.misc_util.yellow_text()
Parameters
paths()
Padding Arrays
numpy.pad()
Padding Arrays
Polynomials
1
1
1
1
1
1
1
1
1
1
2
2
Hermite Series, “Physicists” (numpy.polynomial.hermite)
HermiteE Series, “Probabilists” (numpy.polynomial.hermite_e)
Laguerre Series (numpy.polynomial.laguerre)
Legendre Series (numpy.polynomial.legendre)
numpy.poly()
numpy.poly1d()
numpy.polyadd()
numpy.polyder()
numpy.polydiv()
numpy.polyfit()
numpy.polyint()
numpy.polymul()
numpy.polynomial.chebyshev.Chebyshev()
numpy.polynomial.hermite.Hermite()
numpy.polynomial.hermite_e.HermiteE()
numpy.polynomial.laguerre.Laguerre()
numpy.polynomial.legendre.Legendre()
numpy.polynomial.polynomial.Polynomial()
numpy.polynomial.polyutils.PolyBase
numpy.polysub()
numpy.polyval()
numpy.RankWarning
numpy.roots()
Poly1d
poly1d.deriv()
poly1d.integ()
poly1d.__call__()
polynomial.chebyshev.cheb2poly()
polynomial.chebyshev.chebadd()
polynomial.chebyshev.chebcompanion()
polynomial.chebyshev.chebder()
polynomial.chebyshev.chebdiv()
polynomial.chebyshev.chebdomain
polynomial.chebyshev.chebfit()
polynomial.chebyshev.chebfromroots()
polynomial.chebyshev.chebgauss()
polynomial.chebyshev.chebgrid2d()
polynomial.chebyshev.chebgrid3d()
polynomial.chebyshev.chebint()
polynomial.chebyshev.chebinterpolate()
polynomial.chebyshev.chebline()
polynomial.chebyshev.chebmul()
polynomial.chebyshev.chebmulx()
polynomial.chebyshev.chebone
polynomial.chebyshev.chebpow()
polynomial.chebyshev.chebpts1()
polynomial.chebyshev.chebpts2()
polynomial.chebyshev.chebroots()
polynomial.chebyshev.chebsub()
polynomial.chebyshev.chebtrim()
polynomial.chebyshev.chebval()
polynomial.chebyshev.chebval2d()
polynomial.chebyshev.chebval3d()
polynomial.chebyshev.chebvander()
polynomial.chebyshev.chebvander2d()
polynomial.chebyshev.chebvander3d()
polynomial.chebyshev.chebweight()
polynomial.chebyshev.chebx
polynomial.chebyshev.Chebyshev.basis()
polynomial.chebyshev.Chebyshev.cast()
polynomial.chebyshev.Chebyshev.convert()
polynomial.chebyshev.Chebyshev.copy()
polynomial.chebyshev.Chebyshev.cutdeg()
polynomial.chebyshev.Chebyshev.degree()
polynomial.chebyshev.Chebyshev.deriv()
polynomial.chebyshev.Chebyshev.fit()
polynomial.chebyshev.Chebyshev.fromroots()
polynomial.chebyshev.Chebyshev.has_samecoef()
polynomial.chebyshev.Chebyshev.has_samedomain()
polynomial.chebyshev.Chebyshev.has_sametype()
polynomial.chebyshev.Chebyshev.has_samewindow()
polynomial.chebyshev.Chebyshev.identity()
polynomial.chebyshev.Chebyshev.integ()
polynomial.chebyshev.Chebyshev.interpolate()
polynomial.chebyshev.Chebyshev.linspace()
polynomial.chebyshev.Chebyshev.mapparms()
polynomial.chebyshev.Chebyshev.roots()
polynomial.chebyshev.Chebyshev.trim()
polynomial.chebyshev.Chebyshev.truncate()
polynomial.chebyshev.Chebyshev.__call__()
polynomial.chebyshev.chebzero
polynomial.chebyshev.poly2cheb()
polynomial.hermite.herm2poly()
polynomial.hermite.hermadd()
polynomial.hermite.hermcompanion()
polynomial.hermite.hermder()
polynomial.hermite.hermdiv()
polynomial.hermite.hermdomain
polynomial.hermite.hermfit()
polynomial.hermite.hermfromroots()
polynomial.hermite.hermgauss()
polynomial.hermite.hermgrid2d()
polynomial.hermite.hermgrid3d()
polynomial.hermite.hermint()
polynomial.hermite.Hermite.basis()
polynomial.hermite.Hermite.cast()
polynomial.hermite.Hermite.convert()
polynomial.hermite.Hermite.copy()
polynomial.hermite.Hermite.cutdeg()
polynomial.hermite.Hermite.degree()
polynomial.hermite.Hermite.deriv()
polynomial.hermite.Hermite.fit()
polynomial.hermite.Hermite.fromroots()
polynomial.hermite.Hermite.has_samecoef()
polynomial.hermite.Hermite.has_samedomain()
polynomial.hermite.Hermite.has_sametype()
polynomial.hermite.Hermite.has_samewindow()
polynomial.hermite.Hermite.identity()
polynomial.hermite.Hermite.integ()
polynomial.hermite.Hermite.linspace()
polynomial.hermite.Hermite.mapparms()
polynomial.hermite.Hermite.roots()
polynomial.hermite.Hermite.trim()
polynomial.hermite.Hermite.truncate()
polynomial.hermite.Hermite.__call__()
polynomial.hermite.hermline()
polynomial.hermite.hermmul()
polynomial.hermite.hermmulx()
polynomial.hermite.hermone
polynomial.hermite.hermpow()
polynomial.hermite.hermroots()
polynomial.hermite.hermsub()
polynomial.hermite.hermtrim()
polynomial.hermite.hermval()
polynomial.hermite.hermval2d()
polynomial.hermite.hermval3d()
polynomial.hermite.hermvander()
polynomial.hermite.hermvander2d()
polynomial.hermite.hermvander3d()
polynomial.hermite.hermweight()
polynomial.hermite.hermx
polynomial.hermite.hermzero
polynomial.hermite.poly2herm()
polynomial.hermite_e.herme2poly()
polynomial.hermite_e.hermeadd()
polynomial.hermite_e.hermecompanion()
polynomial.hermite_e.hermeder()
polynomial.hermite_e.hermediv()
polynomial.hermite_e.hermedomain
polynomial.hermite_e.hermefit()
polynomial.hermite_e.hermefromroots()
polynomial.hermite_e.hermegauss()
polynomial.hermite_e.hermegrid2d()
polynomial.hermite_e.hermegrid3d()
polynomial.hermite_e.hermeint()
polynomial.hermite_e.hermeline()
polynomial.hermite_e.hermemul()
polynomial.hermite_e.hermemulx()
polynomial.hermite_e.hermeone
polynomial.hermite_e.hermepow()
polynomial.hermite_e.hermeroots()
polynomial.hermite_e.hermesub()
polynomial.hermite_e.hermetrim()
polynomial.hermite_e.hermeval()
polynomial.hermite_e.hermeval2d()
polynomial.hermite_e.hermeval3d()
polynomial.hermite_e.hermevander()
polynomial.hermite_e.hermevander2d()
polynomial.hermite_e.hermevander3d()
polynomial.hermite_e.hermeweight()
polynomial.hermite_e.hermex
polynomial.hermite_e.hermezero
polynomial.hermite_e.HermiteE.basis()
polynomial.hermite_e.HermiteE.cast()
polynomial.hermite_e.HermiteE.convert()
polynomial.hermite_e.HermiteE.copy()
polynomial.hermite_e.HermiteE.cutdeg()
polynomial.hermite_e.HermiteE.degree()
polynomial.hermite_e.HermiteE.deriv()
polynomial.hermite_e.HermiteE.fit()
polynomial.hermite_e.HermiteE.fromroots()
polynomial.hermite_e.HermiteE.has_samecoef()
polynomial.hermite_e.HermiteE.has_samedomain()
polynomial.hermite_e.HermiteE.has_sametype()
polynomial.hermite_e.HermiteE.has_samewindow()
polynomial.hermite_e.HermiteE.identity()
polynomial.hermite_e.HermiteE.integ()
polynomial.hermite_e.HermiteE.linspace()
polynomial.hermite_e.HermiteE.mapparms()
polynomial.hermite_e.HermiteE.roots()
polynomial.hermite_e.HermiteE.trim()
polynomial.hermite_e.HermiteE.truncate()
polynomial.hermite_e.HermiteE.__call__()
polynomial.hermite_e.poly2herme()
polynomial.laguerre.lag2poly()
polynomial.laguerre.lagadd()
polynomial.laguerre.lagcompanion()
polynomial.laguerre.lagder()
polynomial.laguerre.lagdiv()
polynomial.laguerre.lagdomain
polynomial.laguerre.lagfit()
polynomial.laguerre.lagfromroots()
polynomial.laguerre.laggauss()
polynomial.laguerre.laggrid2d()
polynomial.laguerre.laggrid3d()
polynomial.laguerre.lagint()
polynomial.laguerre.lagline()
polynomial.laguerre.lagmul()
polynomial.laguerre.lagmulx()
polynomial.laguerre.lagone
polynomial.laguerre.lagpow()
polynomial.laguerre.lagroots()
polynomial.laguerre.lagsub()
polynomial.laguerre.lagtrim()
polynomial.laguerre.Laguerre.basis()
polynomial.laguerre.Laguerre.cast()
polynomial.laguerre.Laguerre.convert()
polynomial.laguerre.Laguerre.copy()
polynomial.laguerre.Laguerre.cutdeg()
polynomial.laguerre.Laguerre.degree()
polynomial.laguerre.Laguerre.deriv()
polynomial.laguerre.Laguerre.fit()
polynomial.laguerre.Laguerre.fromroots()
polynomial.laguerre.Laguerre.has_samecoef()
polynomial.laguerre.Laguerre.has_samedomain()
polynomial.laguerre.Laguerre.has_sametype()
polynomial.laguerre.Laguerre.has_samewindow()
polynomial.laguerre.Laguerre.identity()
polynomial.laguerre.Laguerre.integ()
polynomial.laguerre.Laguerre.linspace()
polynomial.laguerre.Laguerre.mapparms()
polynomial.laguerre.Laguerre.roots()
polynomial.laguerre.Laguerre.trim()
polynomial.laguerre.Laguerre.truncate()
polynomial.laguerre.Laguerre.__call__()
polynomial.laguerre.lagval()
polynomial.laguerre.lagval2d()
polynomial.laguerre.lagval3d()
polynomial.laguerre.lagvander()
polynomial.laguerre.lagvander2d()
polynomial.laguerre.lagvander3d()
polynomial.laguerre.lagweight()
polynomial.laguerre.lagx
polynomial.laguerre.lagzero
polynomial.laguerre.poly2lag()
polynomial.legendre.leg2poly()
polynomial.legendre.legadd()
polynomial.legendre.legcompanion()
polynomial.legendre.legder()
polynomial.legendre.legdiv()
polynomial.legendre.legdomain
polynomial.legendre.Legendre.basis()
polynomial.legendre.Legendre.cast()
polynomial.legendre.Legendre.convert()
polynomial.legendre.Legendre.copy()
polynomial.legendre.Legendre.cutdeg()
polynomial.legendre.Legendre.degree()
polynomial.legendre.Legendre.deriv()
polynomial.legendre.Legendre.fit()
polynomial.legendre.Legendre.fromroots()
polynomial.legendre.Legendre.has_samecoef()
polynomial.legendre.Legendre.has_samedomain()
polynomial.legendre.Legendre.has_sametype()
polynomial.legendre.Legendre.has_samewindow()
polynomial.legendre.Legendre.identity()
polynomial.legendre.Legendre.integ()
polynomial.legendre.Legendre.linspace()
polynomial.legendre.Legendre.mapparms()
polynomial.legendre.Legendre.roots()
polynomial.legendre.Legendre.trim()
polynomial.legendre.Legendre.truncate()
polynomial.legendre.Legendre.__call__()
polynomial.legendre.legfit()
polynomial.legendre.legfromroots()
polynomial.legendre.leggauss()
polynomial.legendre.leggrid2d()
polynomial.legendre.leggrid3d()
polynomial.legendre.legint()
polynomial.legendre.legline()
polynomial.legendre.legmul()
polynomial.legendre.legmulx()
polynomial.legendre.legone
polynomial.legendre.legpow()
polynomial.legendre.legroots()
polynomial.legendre.legsub()
polynomial.legendre.legtrim()
polynomial.legendre.legval()
polynomial.legendre.legval2d()
polynomial.legendre.legval3d()
polynomial.legendre.legvander()
polynomial.legendre.legvander2d()
polynomial.legendre.legvander3d()
polynomial.legendre.legweight()
polynomial.legendre.legx
polynomial.legendre.legzero
polynomial.legendre.poly2leg()
polynomial.polynomial.polyadd()
polynomial.polynomial.polycompanion()
polynomial.polynomial.polyder()
polynomial.polynomial.polydiv()
polynomial.polynomial.polydomain
polynomial.polynomial.polyfit()
polynomial.polynomial.polyfromroots()
polynomial.polynomial.polygrid2d()
polynomial.polynomial.polygrid3d()
polynomial.polynomial.polyint()
polynomial.polynomial.polyline()
polynomial.polynomial.polymul()
polynomial.polynomial.polymulx()
polynomial.polynomial.Polynomial.basis()
polynomial.polynomial.Polynomial.cast()
polynomial.polynomial.Polynomial.convert()
polynomial.polynomial.Polynomial.copy()
polynomial.polynomial.Polynomial.cutdeg()
polynomial.polynomial.Polynomial.degree()
polynomial.polynomial.Polynomial.deriv()
polynomial.polynomial.Polynomial.fit()
polynomial.polynomial.Polynomial.fromroots()
polynomial.polynomial.Polynomial.has_samecoef()
polynomial.polynomial.Polynomial.has_samedomain()
polynomial.polynomial.Polynomial.has_sametype()
polynomial.polynomial.Polynomial.has_samewindow()
polynomial.polynomial.Polynomial.identity()
polynomial.polynomial.Polynomial.integ()
polynomial.polynomial.Polynomial.linspace()
polynomial.polynomial.Polynomial.mapparms()
polynomial.polynomial.Polynomial.roots()
polynomial.polynomial.Polynomial.trim()
polynomial.polynomial.Polynomial.truncate()
polynomial.polynomial.Polynomial.__call__()
polynomial.polynomial.polyone
polynomial.polynomial.polypow()
polynomial.polynomial.polyroots()
polynomial.polynomial.polysub()
polynomial.polynomial.polytrim()
polynomial.polynomial.polyval()
polynomial.polynomial.polyval2d()
polynomial.polynomial.polyval3d()
polynomial.polynomial.polyvalfromroots()
polynomial.polynomial.polyvander()
polynomial.polynomial.polyvander2d()
polynomial.polynomial.polyvander3d()
polynomial.polynomial.polyx
polynomial.polynomial.polyzero
polynomial.polyutils.as_series()
polynomial.polyutils.getdomain()
polynomial.polyutils.mapdomain()
polynomial.polyutils.mapparms()
polynomial.polyutils.PolyDomainError
polynomial.polyutils.PolyError
polynomial.polyutils.RankWarning
polynomial.polyutils.trimcoef()
polynomial.polyutils.trimseq()
Polynomials
Polyutils
Power Series (numpy.polynomial.polynomial)
Using the Convenience Classes
Python Types and C-Structures
char *core_signature
char *data
char *dataptr
char *doc
char *name
char *types
char byteorder
char flags
char kind
char type
char typekind
int **cancastscalarkindto
int *cancastto
int *core_dim_ixs
int *core_num_dims
int *core_offsets
int alignment
int argmax()
int argmin()
int argsort()
int compare()
int core_enabled
int core_num_dim_ix
int elsize
int flags
int flags
int flags
int fromstr()
int identity
int itemsize
int len
int nargs
int nd
int nd
int nd
int nout
int ntypes
int PyDataType_FLAGCHK()
int PyDataType_REFCHK()
int reserved1
int scanfunc()
int setitem()
int sort()
int type_num
NpyAuxData *c_metadata
NPY_AO
npy_bool contiguous
npy_bool nonzero()
NPY_FROM_FIELDS
npy_hash_t
npy_hash_t *hash
npy_intp *backstrides
npy_intp *coordinates
npy_intp *core_dim_sizes
npy_intp *dimensions
npy_intp *dims_m1
npy_intp *factors
npy_intp *shape
npy_intp *strides
npy_intp *strides
npy_intp *strides
npy_intp dimensions
npy_intp index
npy_intp index
npy_intp len
npy_intp size
npy_intp size
NPY_ITEM_HASOBJECT
NPY_ITEM_IS_POINTER
NPY_LIST_PICKLE
NPY_NEEDS_INIT
NPY_NEEDS_PYAPI
NPY_OBJECT_DTYPE_FLAGS
NPY_SCALARKIND scalarkind()
npy_uint32 *core_dim_flags
npy_uint32 iter_flags
npy_uint32 op_flags
NPY_USE_GETITEM
NPY_USE_SETITEM
PyArrayFlagsObject
PyArrayIterObject
PyArrayIterObject **iters
PyArrayMapIter_Type
PyArrayMultiIterObject
PyArrayNeighborhoodIterObject
PyArrayObject
PyArrayObject *ao
PyArray_ArrayDescr *subarray
PyArray_ArrFuncs
PyArray_ArrFuncs *f
PyArray_Descr
PyArray_Descr *descr
PyArray_Type
PyObject *base
PyObject *castdict
PyObject *descr
PyObject *fields
PyObject *getitem()
PyObject *identity_value
PyObject *metadata
PyObject *names
PyObject *obj
PyObject *shape
PyObject *userloops
PyObject *weakreflist
PyUFuncObject
PyUFuncReduceObject
PyUFunc_LegacyInnerLoopSelectionFunc *legacy_inner_loop_selector
PyUFunc_Loop1d
PyUFunc_MaskedInnerLoopSelectionFunc *masked_inner_loop_selector
PyUFunc_TypeResolutionFunc *type_resolver
UFUNC_CORE_DIM_SIZE_INFERRED
void **data
void *data
void *ptr
void *ptr
void *reserved2
void copyswap()
void copyswapn()
void dotfunc()
void fastclip()
void fastputmask()
void fasttake()
void fill()
void fillwithscalar()
void functions()
Random sampling (numpy.random)
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1()
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2()
2()
2()
2()
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
4
4
4
4
4
4
4
4
4
4
4
4
4
5
5
5
binomial_t
Bit Generators
bitgen_t
double random_beta()
double random_chisquare()
double random_exponential()
double random_f()
double random_gamma()
double random_gumbel()
double random_laplace()
double random_logistic()
double random_lognormal()
double random_noncentral_chisquare()
double random_noncentral_f()
double random_normal()
double random_pareto()
double random_power()
double random_rayleigh()
double random_standard_cauchy()
double random_standard_exponential()
double random_standard_gamma()
double random_standard_normal()
double random_standard_t()
double random_standard_uniform()
double random_triangular()
double random_uniform()
double random_vonmises()
double random_wald()
double random_weibull()
Extending
Extending numpy.random via Cython
Extending via CFFI
Extending via Numba
Extending via Numba and CFFI
extending.pyx
extending_distributions.pyx
float random_gamma_f()
float random_standard_exponential_f()
float random_standard_gamma_f()
float random_standard_normal_f()
float random_standard_uniform_f()
int random_multivariate_hypergeometric_count()
Multithreaded Generation
npy_int32 random_positive_int32()
npy_int64 random_binomial()
npy_int64 random_geometric()
npy_int64 random_geometric_inversion()
npy_int64 random_geometric_search()
npy_int64 random_hypergeometric()
npy_int64 random_logseries()
npy_int64 random_negative_binomial()
npy_int64 random_poisson()
npy_int64 random_positive_int()
npy_int64 random_positive_int64()
npy_int64 random_zipf()
npy_uint64 random_bounded_uint64()
npy_uint64 random_interval()
npy_uint64 random_uint()
numpy.random.BitGenerator()
numpy.random.default_rng()
numpy.random.Generator()
numpy.random.MT19937()
numpy.random.PCG64()
numpy.random.Philox()
numpy.random.RandomState()
numpy.random.SeedSequence()
numpy.random.SFC64()
Performance
Random sampling (numpy.random)
random.beta()
random.binomial()
random.BitGenerator.random_raw()
random.bytes()
random.chisquare()
random.choice()
random.dirichlet()
random.exponential()
random.f()
random.gamma()
random.Generator.beta()
random.Generator.binomial()
random.Generator.bit_generator
random.Generator.bytes()
random.Generator.chisquare()
random.Generator.choice()
random.Generator.dirichlet()
random.Generator.exponential()
random.Generator.f()
random.Generator.gamma()
random.Generator.geometric()
random.Generator.gumbel()
random.Generator.hypergeometric()
random.Generator.integers()
random.Generator.laplace()
random.Generator.logistic()
random.Generator.lognormal()
random.Generator.logseries()
random.Generator.multinomial()
random.Generator.multivariate_hypergeometric()
random.Generator.multivariate_normal()
random.Generator.negative_binomial()
random.Generator.noncentral_chisquare()
random.Generator.noncentral_f()
random.Generator.normal()
random.Generator.pareto()
random.Generator.permutation()
random.Generator.permuted()
random.Generator.poisson()
random.Generator.power()
random.Generator.random()
random.Generator.rayleigh()
random.Generator.shuffle()
random.Generator.standard_cauchy()
random.Generator.standard_exponential()
random.Generator.standard_gamma()
random.Generator.standard_normal()
random.Generator.standard_t()
random.Generator.triangular()
random.Generator.uniform()
random.Generator.vonmises()
random.Generator.wald()
random.Generator.weibull()
random.Generator.zipf()
random.geometric()
random.get_state()
random.gumbel()
random.hypergeometric()
random.laplace()
random.logistic()
random.lognormal()
random.logseries()
random.MT19937.cffi
random.MT19937.ctypes
random.MT19937.jumped()
random.MT19937.state
random.multinomial()
random.multivariate_normal()
random.negative_binomial()
random.noncentral_chisquare()
random.noncentral_f()
random.normal()
random.pareto()
random.PCG64.advance()
random.PCG64.cffi
random.PCG64.ctypes
random.PCG64.jumped()
random.PCG64.state
random.permutation()
random.Philox.advance()
random.Philox.cffi
random.Philox.ctypes
random.Philox.jumped()
random.Philox.state
random.poisson()
random.power()
random.rand()
random.randint()
random.randn()
random.random()
random.RandomState.beta()
random.RandomState.binomial()
random.RandomState.bytes()
random.RandomState.chisquare()
random.RandomState.choice()
random.RandomState.dirichlet()
random.RandomState.exponential()
random.RandomState.f()
random.RandomState.gamma()
random.RandomState.geometric()
random.RandomState.get_state()
random.RandomState.gumbel()
random.RandomState.hypergeometric()
random.RandomState.laplace()
random.RandomState.logistic()
random.RandomState.lognormal()
random.RandomState.logseries()
random.RandomState.multinomial()
random.RandomState.multivariate_normal()
random.RandomState.negative_binomial()
random.RandomState.noncentral_chisquare()
random.RandomState.noncentral_f()
random.RandomState.normal()
random.RandomState.pareto()
random.RandomState.permutation()
random.RandomState.poisson()
random.RandomState.power()
random.RandomState.rand()
random.RandomState.randint()
random.RandomState.randn()
random.RandomState.random_integers()
random.RandomState.random_sample()
random.RandomState.rayleigh()
random.RandomState.seed()
random.RandomState.set_state()
random.RandomState.shuffle()
random.RandomState.standard_cauchy()
random.RandomState.standard_exponential()
random.RandomState.standard_gamma()
random.RandomState.standard_normal()
random.RandomState.standard_t()
random.RandomState.triangular()
random.RandomState.uniform()
random.RandomState.vonmises()
random.RandomState.wald()
random.RandomState.weibull()
random.RandomState.zipf()
random.random_integers()
random.random_sample()
random.ranf()
random.rayleigh()
random.sample()
random.seed()
random.SeedSequence.generate_state()
random.SeedSequence.spawn()
random.set_state()
random.SFC64.cffi
random.SFC64.ctypes
random.SFC64.state
random.shuffle()
random.standard_cauchy()
random.standard_exponential()
random.standard_gamma()
random.standard_normal()
random.standard_t()
random.triangular()
random.uniform()
random.vonmises()
random.wald()
random.weibull()
random.zipf()
setup.py
void random_multinomial()
void random_multivariate_hypergeometric_marginals()
void random_standard_exponential_fill()
void random_standard_exponential_fill_f()
void random_standard_normal_fill()
void random_standard_normal_fill_f()
void random_standard_uniform_fill()
void random_standard_uniform_fill_f()
What’s New or Different
Release Notes
Release Notes
Reporting bugs
Reporting bugs
Routines
Routines
Scalars
1
generic.base
generic.byteswap()
generic.data
generic.dtype
generic.flags
generic.flat
generic.imag
generic.itemsize
generic.ndim
generic.real
generic.setflags()
generic.shape
generic.size
generic.squeeze()
generic.strides
generic.T
generic.__array_interface__
generic.__array_priority__
generic.__array_struct__
generic.__array_wrap__()
generic.__array__()
generic.__reduce__()
generic.__setstate__()
numpy.byte
numpy.bytes_
numpy.cdouble
numpy.cfloat
numpy.clongdouble
numpy.clongfloat
numpy.complex128
numpy.complex192
numpy.complex256
numpy.complex64
numpy.complex_
numpy.csingle
numpy.datetime64
numpy.double
numpy.flexible
numpy.float128
numpy.float16
numpy.float32
numpy.float64
numpy.float96
numpy.half
numpy.int16
numpy.int32
numpy.int64
numpy.int8
numpy.intc
numpy.intp
numpy.int_
numpy.longcomplex
numpy.longdouble
numpy.longfloat
numpy.longlong
numpy.number
numpy.object_
numpy.short
numpy.single
numpy.singlecomplex
numpy.string_
numpy.str_
numpy.timedelta64
numpy.ubyte
numpy.uint
numpy.uint16
numpy.uint32
numpy.uint64
numpy.uint8
numpy.uintc
numpy.uintp
numpy.ulonglong
numpy.unicode_
numpy.ushort
numpy.void
Set routines
numpy.in1d()
numpy.intersect1d()
numpy.isin()
numpy.lib.arraysetops
numpy.setdiff1d()
numpy.setxor1d()
numpy.union1d()
numpy.unique()
Set routines
Signature file
Attribute statements:
SIMD Optimizations
NATIVE: Enables all CPU features that supported by the current
Sorting, searching, and counting
ndarray.sort()
numpy.argmax()
numpy.argmin()
numpy.argpartition()
numpy.argsort()
numpy.argwhere()
numpy.count_nonzero()
numpy.extract()
numpy.flatnonzero()
numpy.lexsort()
numpy.msort()
numpy.nanargmax()
numpy.nanargmin()
numpy.nonzero()
numpy.partition()
numpy.searchsorted()
numpy.sort()
numpy.sort_complex()
numpy.where()
Sorting, searching, and counting
Standard array subclasses
chararray.argsort()
chararray.astype()
chararray.copy()
chararray.count()
chararray.decode()
chararray.dump()
chararray.dumps()
chararray.encode()
chararray.endswith()
chararray.expandtabs()
chararray.fill()
chararray.find()
chararray.flatten()
chararray.getfield()
chararray.index()
chararray.isalnum()
chararray.isalpha()
chararray.isdecimal()
chararray.isdigit()
chararray.islower()
chararray.isnumeric()
chararray.isspace()
chararray.istitle()
chararray.isupper()
chararray.item()
chararray.join()
chararray.ljust()
chararray.lower()
chararray.lstrip()
chararray.nonzero()
chararray.put()
chararray.ravel()
chararray.repeat()
chararray.replace()
chararray.reshape()
chararray.resize()
chararray.rfind()
chararray.rindex()
chararray.rjust()
chararray.rsplit()
chararray.rstrip()
chararray.searchsorted()
chararray.setfield()
chararray.setflags()
chararray.sort()
chararray.split()
chararray.splitlines()
chararray.squeeze()
chararray.startswith()
chararray.strip()
chararray.swapaxes()
chararray.swapcase()
chararray.take()
chararray.title()
chararray.tofile()
chararray.tolist()
chararray.tostring()
chararray.translate()
chararray.transpose()
chararray.upper()
chararray.view()
chararray.zfill()
class.__array_finalize__()
class.__array_function__()
class.__array_prepare__()
class.__array_priority__
class.__array_ufunc__()
class.__array_wrap__()
class.__array__()
matrix.all()
matrix.any()
matrix.argmax()
matrix.argmin()
matrix.argpartition()
matrix.argsort()
matrix.astype()
matrix.byteswap()
matrix.choose()
matrix.clip()
matrix.compress()
matrix.conj()
matrix.conjugate()
matrix.copy()
matrix.cumprod()
matrix.cumsum()
matrix.diagonal()
matrix.dot()
matrix.dump()
matrix.dumps()
matrix.fill()
matrix.flatten()
matrix.getA()
matrix.getA1()
matrix.getfield()
matrix.getH()
matrix.getI()
matrix.getT()
matrix.item()
matrix.itemset()
matrix.max()
matrix.mean()
matrix.min()
matrix.newbyteorder()
matrix.nonzero()
matrix.partition()
matrix.prod()
matrix.ptp()
matrix.put()
matrix.ravel()
matrix.repeat()
matrix.reshape()
matrix.resize()
matrix.round()
matrix.searchsorted()
matrix.setfield()
matrix.setflags()
matrix.sort()
matrix.squeeze()
matrix.std()
matrix.sum()
matrix.swapaxes()
matrix.take()
matrix.tobytes()
matrix.tofile()
matrix.tolist()
matrix.tostring()
matrix.trace()
matrix.transpose()
matrix.var()
matrix.view()
numpy.chararray()
numpy.lib.user_array.container()
numpy.matrix()
numpy.recarray
numpy.record
property matrix.A
property matrix.H
property matrix.I
property matrix.T
recarray.all()
recarray.any()
recarray.argmax()
recarray.argmin()
recarray.argpartition()
recarray.argsort()
recarray.astype()
recarray.byteswap()
recarray.choose()
recarray.clip()
recarray.compress()
recarray.conj()
recarray.conjugate()
recarray.copy()
recarray.cumprod()
recarray.cumsum()
recarray.diagonal()
recarray.dot()
recarray.dump()
recarray.dumps()
recarray.fill()
recarray.flatten()
recarray.getfield()
recarray.item()
recarray.itemset()
recarray.max()
recarray.mean()
recarray.min()
recarray.newbyteorder()
recarray.nonzero()
recarray.partition()
recarray.prod()
recarray.ptp()
recarray.put()
recarray.ravel()
recarray.repeat()
recarray.reshape()
recarray.resize()
recarray.round()
recarray.searchsorted()
recarray.setfield()
recarray.setflags()
recarray.sort()
recarray.squeeze()
recarray.std()
recarray.sum()
recarray.swapaxes()
recarray.take()
recarray.tobytes()
recarray.tofile()
recarray.tolist()
recarray.tostring()
recarray.trace()
recarray.transpose()
recarray.var()
recarray.view()
record.all()
record.any()
record.argmax()
record.argmin()
record.argsort()
record.astype()
record.byteswap()
record.choose()
record.clip()
record.compress()
record.conjugate()
record.copy()
record.cumprod()
record.cumsum()
record.diagonal()
record.dump()
record.dumps()
record.fill()
record.flatten()
record.getfield()
record.item()
record.itemset()
record.max()
record.mean()
record.min()
record.newbyteorder()
record.nonzero()
record.pprint()
record.prod()
record.ptp()
record.put()
record.ravel()
record.repeat()
record.reshape()
record.resize()
record.round()
record.searchsorted()
record.setfield()
record.setflags()
record.sort()
record.squeeze()
record.std()
record.sum()
record.swapaxes()
record.take()
record.tofile()
record.tolist()
record.tostring()
record.trace()
record.transpose()
record.var()
record.view()
Statistics
numpy.amax()
numpy.amin()
numpy.average()
numpy.bincount()
numpy.corrcoef()
numpy.correlate()
numpy.cov()
numpy.digitize()
numpy.histogram()
numpy.histogram2d()
numpy.histogramdd()
numpy.histogram_bin_edges()
numpy.mean()
numpy.median()
numpy.nanmax()
numpy.nanmean()
numpy.nanmedian()
numpy.nanmin()
numpy.nanpercentile()
numpy.nanquantile()
numpy.nanstd()
numpy.nanvar()
numpy.percentile()
numpy.ptp()
numpy.quantile()
numpy.std()
numpy.var()
Statistics
String operations
char.add()
char.array()
char.asarray()
char.capitalize()
char.center()
char.chararray.argsort()
char.chararray.astype()
char.chararray.copy()
char.chararray.count()
char.chararray.decode()
char.chararray.dump()
char.chararray.dumps()
char.chararray.encode()
char.chararray.endswith()
char.chararray.expandtabs()
char.chararray.fill()
char.chararray.find()
char.chararray.flatten()
char.chararray.getfield()
char.chararray.index()
char.chararray.isalnum()
char.chararray.isalpha()
char.chararray.isdecimal()
char.chararray.isdigit()
char.chararray.islower()
char.chararray.isnumeric()
char.chararray.isspace()
char.chararray.istitle()
char.chararray.isupper()
char.chararray.item()
char.chararray.join()
char.chararray.ljust()
char.chararray.lower()
char.chararray.lstrip()
char.chararray.nonzero()
char.chararray.put()
char.chararray.ravel()
char.chararray.repeat()
char.chararray.replace()
char.chararray.reshape()
char.chararray.resize()
char.chararray.rfind()
char.chararray.rindex()
char.chararray.rjust()
char.chararray.rsplit()
char.chararray.rstrip()
char.chararray.searchsorted()
char.chararray.setfield()
char.chararray.setflags()
char.chararray.sort()
char.chararray.split()
char.chararray.splitlines()
char.chararray.squeeze()
char.chararray.startswith()
char.chararray.strip()
char.chararray.swapaxes()
char.chararray.swapcase()
char.chararray.take()
char.chararray.title()
char.chararray.tofile()
char.chararray.tolist()
char.chararray.tostring()
char.chararray.translate()
char.chararray.transpose()
char.chararray.upper()
char.chararray.view()
char.chararray.zfill()
char.compare_chararrays()
char.count()
char.decode()
char.encode()
char.endswith()
char.equal()
char.expandtabs()
char.find()
char.greater()
char.greater_equal()
char.index()
char.isalnum()
char.isalpha()
char.isdecimal()
char.isdigit()
char.islower()
char.isnumeric()
char.isspace()
char.istitle()
char.isupper()
char.join()
char.less()
char.less_equal()
char.ljust()
char.lower()
char.lstrip()
char.mod()
char.multiply()
char.not_equal()
char.partition()
char.replace()
char.rfind()
char.rindex()
char.rjust()
char.rpartition()
char.rsplit()
char.rstrip()
char.split()
char.splitlines()
char.startswith()
char.strip()
char.str_len()
char.swapcase()
char.title()
char.translate()
char.upper()
char.zfill()
numpy.char.chararray()
String operations
System configuration
int PyArray_GetEndianness()
NPY_BIG_ENDIAN
NPY_BYTE_ORDER
NPY_CPU_AMD64
NPY_CPU_IA64
NPY_CPU_LITTLE
NPY_CPU_PARISC
NPY_CPU_PPC
NPY_CPU_PPC64
NPY_CPU_S390
NPY_CPU_SPARC
NPY_CPU_SPARC64
NPY_CPU_UNKNOWN_ENDIAN
NPY_LITTLE_ENDIAN
NPY_SIGINT_OFF
NPY_SIGINT_ON
NPY_SIGJMP_BUF
NPY_SIGLONGJMP
NPY_SIGSETJMP
NPY_SIZEOF_DOUBLE
NPY_SIZEOF_FLOAT
NPY_SIZEOF_INT
NPY_SIZEOF_INTP
NPY_SIZEOF_LONG
NPY_SIZEOF_LONGDOUBLE
NPY_SIZEOF_LONGLONG
NPY_SIZEOF_LONG_DOUBLE
NPY_SIZEOF_PY_INTPTR_T
NPY_SIZEOF_PY_LONG_LONG
NPY_SIZEOF_SHORT
NPY_UNLIKELY
NPY_UNUSED
Test Support (numpy.testing)
numpy.test()
numpy.testing.suppress_warnings()
numpy.testing.Tester
Test Support (numpy.testing)
testing.assert_allclose()
testing.assert_almost_equal()
testing.assert_approx_equal()
testing.assert_array_almost_equal()
testing.assert_array_almost_equal_nulp()
testing.assert_array_equal()
testing.assert_array_less()
testing.assert_array_max_ulp()
testing.assert_equal()
testing.assert_raises()
testing.assert_raises_regex()
testing.assert_string_equal()
testing.assert_warns()
testing.dec.deprecated()
testing.dec.knownfailureif()
testing.dec.setastest()
testing.dec.skipif()
testing.dec.slow()
testing.decorate_methods()
testing.rundocs()
testing.run_module_suite()
testing.suppress_warnings.filter()
testing.suppress_warnings.record()
testing.suppress_warnings.__call__()
Testing the numpy.i Typemaps
self.typeStr
The Array Interface
version
The N-dimensional array (ndarray)
ndarray.all()
ndarray.any()
ndarray.argmax()
ndarray.argmin()
ndarray.argpartition()
ndarray.argsort()
ndarray.astype()
ndarray.base
ndarray.byteswap()
ndarray.choose()
ndarray.clip()
ndarray.compress()
ndarray.conj()
ndarray.conjugate()
ndarray.copy()
ndarray.ctypes
ndarray.cumprod()
ndarray.cumsum()
ndarray.data
ndarray.diagonal()
ndarray.dot()
ndarray.dtype
ndarray.dump()
ndarray.dumps()
ndarray.fill()
ndarray.flags
ndarray.getfield()
ndarray.imag
ndarray.item()
ndarray.itemset()
ndarray.itemsize
ndarray.max()
ndarray.mean()
ndarray.min()
ndarray.nbytes
ndarray.ndim
ndarray.newbyteorder()
ndarray.nonzero()
ndarray.partition()
ndarray.prod()
ndarray.ptp()
ndarray.put()
ndarray.ravel()
ndarray.real
ndarray.repeat()
ndarray.reshape()
ndarray.resize()
ndarray.round()
ndarray.searchsorted()
ndarray.setfield()
ndarray.setflags()
ndarray.shape
ndarray.size
ndarray.squeeze()
ndarray.std()
ndarray.strides
ndarray.sum()
ndarray.swapaxes()
ndarray.take()
ndarray.tobytes()
ndarray.tostring()
ndarray.trace()
ndarray.transpose()
ndarray.var()
ndarray.view()
ndarray.__abs__()
ndarray.__add__()
ndarray.__and__()
ndarray.__array_wrap__()
ndarray.__array__()
ndarray.__bool__()
ndarray.__complex__()
ndarray.__contains__()
ndarray.__copy__()
ndarray.__deepcopy__()
ndarray.__divmod__()
ndarray.__eq__()
ndarray.__float__()
ndarray.__floordiv__()
ndarray.__getitem__()
ndarray.__ge__()
ndarray.__gt__()
ndarray.__iadd__()
ndarray.__iand__()
ndarray.__ifloordiv__()
ndarray.__ilshift__()
ndarray.__imod__()
ndarray.__imul__()
ndarray.__int__()
ndarray.__invert__()
ndarray.__ior__()
ndarray.__ipow__()
ndarray.__irshift__()
ndarray.__isub__()
ndarray.__itruediv__()
ndarray.__ixor__()
ndarray.__len__()
ndarray.__le__()
ndarray.__lshift__()
ndarray.__lt__()
ndarray.__matmul__()
ndarray.__mod__()
ndarray.__mul__()
ndarray.__neg__()
ndarray.__new__()
ndarray.__ne__()
ndarray.__or__()
ndarray.__pos__()
ndarray.__pow__()
ndarray.__reduce__()
ndarray.__repr__()
ndarray.__rshift__()
ndarray.__setitem__()
ndarray.__setstate__()
ndarray.__str__()
ndarray.__sub__()
ndarray.__truediv__()
ndarray.__xor__()
numpy.ndarray()
The N-dimensional array (ndarray)
Three ways to wrap - getting started
Three ways to wrap - getting started
Typing (numpy.typing)
numpy.typing.ArrayLike
numpy.typing.DTypeLike
numpy.typing.NBitBase
UFunc API
int PyUFunc_checkfperr()
int PyUFunc_GenericFunction()
int PyUFunc_RegisterLoopForDescr()
int PyUFunc_RegisterLoopForType()
int PyUFunc_ReplaceLoopBySignature()
NO_IMPORT_UFUNC
NPY_LOOP_END_THREADS
PyObject* PyUFunc_FromFuncAndDataAndSignature()
PyObject* PyUFunc_FromFuncAndDataAndSignatureAndIdentity()
PyUFunc_IdentityValue
PyUFunc_MinusOne
PyUFunc_None
PyUFunc_ReorderableNone
PyUFunc_Zero
UFUNC_ERR_CALL
UFUNC_ERR_RAISE
UFUNC_ERR_WARN
UFUNC_ERR_{HANDLER}
UFUNC_FPE_DIVIDEBYZERO
UFUNC_FPE_INVALID
UFUNC_FPE_OVERFLOW
UFUNC_FPE_UNDERFLOW
UFUNC_MASK_INVALID
UFUNC_MASK_OVERFLOW
UFUNC_MASK_UNDERFLOW
UFUNC_SHIFT_DIVIDEBYZERO
UFUNC_SHIFT_INVALID
UFUNC_SHIFT_OVERFLOW
UFUNC_SHIFT_UNDERFLOW
void import_ufunc()
void PyUFunc_clearfperr()
void PyUFunc_DD_D()
void PyUFunc_dd_d()
void PyUFunc_D_D()
void PyUFunc_d_d()
void PyUFunc_ee_e()
void PyUFunc_ee_e_As_dd_d()
void PyUFunc_ee_e_As_ff_f()
void PyUFunc_e_e()
void PyUFunc_e_e_As_d_d()
void PyUFunc_e_e_As_f_f()
void PyUFunc_FF_F()
void PyUFunc_ff_f()
void PyUFunc_FF_F_As_DD_D()
void PyUFunc_ff_f_As_dd_d()
void PyUFunc_F_F()
void PyUFunc_f_f()
void PyUFunc_F_F_As_D_D()
void PyUFunc_GetPyValues()
void PyUFunc_gg_g()
void PyUFunc_GG_G()
void PyUFunc_G_G()
void PyUFunc_g_g()
void PyUFunc_On_Om()
void PyUFunc_OO_O()
void PyUFunc_OO_O_method()
void PyUFunc_O_O()
void PyUFunc_O_O_method()
Universal functions (ufunc)
1
numpy.setbufsize()
numpy.seterr()
numpy.seterrcall()
numpy.ufunc
ufunc.accumulate()
ufunc.at()
ufunc.identity
ufunc.nargs
ufunc.nin
ufunc.nout
ufunc.ntypes
ufunc.outer()
ufunc.reduce()
ufunc.reduceat()
ufunc.signature
ufunc.types
ufunc.__call__()
Universal functions (ufunc)
User Guide
1
Array Broadcasting in Numpy
Array creation
Building from source
Byte-swapping
Data types
deletechars
Explanations
How to write a NumPy how-to
I/O with NumPy
Indexing
int PyModule_AddIntConstant()
int PyModule_AddObject()
int PyModule_AddStringConstant()
Miscellaneous
ndarray.ndim
ndpointer()
NumPy basics
NumPy for MATLAB users
NumPy How Tos
NumPy Tutorials
NumPy user guide
numpy.lib.recfunctions.append_fields()
numpy.lib.recfunctions.apply_along_fields()
numpy.lib.recfunctions.assign_fields_by_name()
numpy.lib.recfunctions.drop_fields()
numpy.lib.recfunctions.find_duplicates()
numpy.lib.recfunctions.flatten_descr()
numpy.lib.recfunctions.get_fieldstructure()
numpy.lib.recfunctions.get_names()
numpy.lib.recfunctions.get_names_flat()
numpy.lib.recfunctions.join_by()
numpy.lib.recfunctions.merge_arrays()
numpy.lib.recfunctions.recursive_fill_fields()
numpy.lib.recfunctions.rec_append_fields()
numpy.lib.recfunctions.rec_drop_fields()
numpy.lib.recfunctions.rec_join()
numpy.lib.recfunctions.rename_fields()
numpy.lib.recfunctions.repack_fields()
numpy.lib.recfunctions.require_fields()
numpy.lib.recfunctions.stack_arrays()
numpy.lib.recfunctions.structured_to_unstructured()
numpy.lib.recfunctions.unstructured_to_structured()
NumPy: the absolute basics for beginners
Reading and writing files
Subclassing ndarray
Tutorial: Linear algebra on n-dimensional arrays
Tutorial: Masked Arrays
Using NumPy C-API
void castfunc()
What is NumPy?
Writing custom array containers
Writing your own ufunc
Using F2PY
--overwrite-signature
numpy.f2py.compile()
Using F2PY bindings in Python
Using F2PY bindings in Python
Using via numpy.distutils
build_src
Window functions
1
1
1
1
2
2
2
2
3
3
3
3
4
4
4
5
numpy.bartlett()
numpy.blackman()
numpy.hamming()
numpy.hanning()
numpy.kaiser()
Window functions
中文
English
A
A
Serif
Sans
White
Sepia
Night
首页
API Docs
工具
首页
API Docs
工具
numpy
/
1.20.1
/
reference
/
distutils
/
Files
File Name
misc_util.html
Name
NumPy
Version
1.10.4
1.11.0
1.12.0
1.13.0
1.14.5
1.15.4
1.16.1
1.17.0
1.18.5
1.19.0
1.20.1
1.21.4
1.22.0
Badge
Last Updated
2021-02-18T19:43:37Z