module documentation

Undocumented

Constant NEIGH​_MODE Undocumented
Class ​Matmul​Common Common tests for '@' operator and numpy.matmul.
Class ​Test​Alen Undocumented
Class ​Test​Alignment Undocumented
Class ​Test​Arange Undocumented
Class ​Test​Argmax Undocumented
Class ​Test​Argmax​Argmin​Common Undocumented
Class ​Test​Argmin Undocumented
Class ​Test​Array​Attribute​Deletion Undocumented
Class ​Test​Array​Construction Undocumented
Class ​Test​Array​Creation​Copy​Argument Undocumented
Class ​Test​Array​Finalize Tests __array_finalize__
Class ​Test​Array​Interface Undocumented
Class ​Test​Array​Priority Undocumented
Class ​Test​As​CArray Undocumented
Class ​Test​Assignment Undocumented
Class ​Test​Attributes Undocumented
Class ​Test​Binop Undocumented
Class ​Test​Bool Undocumented
Class ​Test​Bytestring​Array​Nonzero Undocumented
Class ​Test​CAPI Undocumented
Class ​Test​Cequence​Methods Undocumented
Class ​Test​Choose Undocumented
Class ​Test​Clip Undocumented
Class ​Test​Compress Undocumented
Class ​Test​Conversion Undocumented
Class ​Test​Creation Test the np.array constructor
Class ​Test​CTypes Undocumented
Class ​Test​Dot Undocumented
Class ​Test​Dtypedescr Undocumented
Class ​Test​Fancy​Indexing Undocumented
Class ​Test​Flags Undocumented
Class ​Test​Flat Undocumented
Class ​Test​Format Undocumented
Class ​Test​From​Buffer Undocumented
Class ​Test​Hash Undocumented
Class ​Test​Hashing Undocumented
Class ​Test​Inner Undocumented
Class ​Test​IO Test tofile, fromfile, tobytes, and fromstring
Class ​Test​Lexsort Undocumented
Class ​Test​Map​Iter Undocumented
Class ​Test​Matmul Undocumented
Class ​Test​Matmul​Operator Undocumented
Class ​Test​Mem​Event​Hook Undocumented
Class ​Test​Methods Undocumented
Class ​Test​Min​Max Undocumented
Class ​Test​Min​Scalar​Type Undocumented
Class ​Test​Neighborhood​Iter Undocumented
Class ​Test​Newaxis Undocumented
Class ​Test​New​Buffer​Protocol Test PEP3118 buffers
Class ​Test​PEP3118​Dtype Undocumented
Class ​Test​Pickling Undocumented
Class ​Test​Putmask Undocumented
Class ​Test​Record Undocumented
Class ​Test​Repeat Undocumented
Class ​Test​Resize Undocumented
Class ​Test​Scalar​Indexing Undocumented
Class ​Test​Size​Of Undocumented
Class ​Test​Stacked​Neighborhood​Iter Undocumented
Class ​Test​Stats Undocumented
Class ​Test​String​Compare Undocumented
Class ​Test​Structured Undocumented
Class ​Test​Subscripting Undocumented
Class ​Test​Take Undocumented
Class ​Test​Temporary​Elide Undocumented
Class ​Test​Unicode​Array​Nonzero Undocumented
Class ​Test​Unicode​Encoding Tests for encoding related bugs, such as UCS2 vs UCS4, round-tripping issues, etc
Class ​Test​Vdot Undocumented
Class ​Test​View Undocumented
Class ​Test​Warnings Undocumented
Class ​Test​Where Undocumented
Class ​Test​Writeback​If​Copy Undocumented
Class ​Test​Zero​Rank Undocumented
Class ​Test​Zero​Size​Flexible Undocumented
Function ​_aligned​_zeros Allocate a new ndarray with aligned memory.
Function ​_mean Undocumented
Function ​_std Undocumented
Function ​_var Undocumented
Function test​_array​_interface​_empty​_shape Undocumented
Function test​_array​_interface​_itemsize Undocumented
Function test​_array​_interface​_offset Undocumented
Function test​_array​_interface​_unicode​_typestr Undocumented
Function test​_equal​_override Undocumented
Function test​_flat​_element​_deletion Undocumented
Function test​_getfield Undocumented
Function test​_interface​_no​_shape Undocumented
Function test​_matmul​_axes Undocumented
Function test​_matmul​_inplace Undocumented
Function test​_npymath​_complex Undocumented
Function test​_npymath​_real Undocumented
Function test_orderconverter_with_non​ASCII_unicode_ordering Undocumented
Function test​_scalar​_element​_deletion Undocumented
Function test​_uintalignment​_and​_alignment Undocumented
NEIGH_MODE: dict[str, int] =

Undocumented

Value
{'zero': 0, 'one': 1, 'constant': 2, 'circular': 3, 'mirror': 4}
def _aligned_zeros(shape, dtype=float, order='C', align=None):

Allocate a new ndarray with aligned memory.

The ndarray is guaranteed not aligned to twice the requested alignment. Eg, if align=4, guarantees it is not aligned to 8. If align=None uses dtype.alignment.

def _mean(a, **args):

Undocumented

def _std(a, **args):

Undocumented

def _var(a, **args):

Undocumented

def test_array_interface_empty_shape():

Undocumented

def test_array_interface_itemsize():

Undocumented

def test_array_interface_offset():

Undocumented

def test_array_interface_unicode_typestr():

Undocumented

def test_equal_override():

Undocumented

def test_flat_element_deletion():

Undocumented

def test_getfield():

Undocumented

def test_interface_no_shape():

Undocumented

def test_matmul_axes():

Undocumented

def test_matmul_inplace():

Undocumented

@pytest.mark.parametrize(['fun', 'npfun'], [(_multiarray_tests.npy_cabs, np.absolute), (_multiarray_tests.npy_carg, np.angle)])
@pytest.mark.parametrize('x', [1, np.inf, -np.inf, np.nan])
@pytest.mark.parametrize('y', [1, np.inf, -np.inf, np.nan])
@pytest.mark.parametrize('test_dtype', np.complexfloating.__subclasses__())
def test_npymath_complex(fun, npfun, x, y, test_dtype):

Undocumented

def test_npymath_real():

Undocumented

def test_orderconverter_with_nonASCII_unicode_ordering():

Undocumented

def test_scalar_element_deletion():

Undocumented

def test_uintalignment_and_alignment():

Undocumented