module documentation

Undocumented

Class MatmulCommon Common tests for '@' operator and numpy.matmul.
Class TestAlignment Undocumented
Class TestArange Undocumented
Class TestArgmax Undocumented
Class TestArgmaxArgminCommon Undocumented
Class TestArgmin Undocumented
Class TestArrayAttributeDeletion Undocumented
Class TestArrayConstruction Undocumented
Class TestArrayCreationCopyArgument Undocumented
Class TestArrayFinalize Tests __array_finalize__
Class TestArrayInterface Undocumented
Class TestArrayPriority Undocumented
Class TestAsCArray Undocumented
Class TestAssignment Undocumented
Class TestAttributes Undocumented
Class TestBinop Undocumented
Class TestBool Undocumented
Class TestBytestringArrayNonzero Undocumented
Class TestCAPI Undocumented
Class TestCequenceMethods Undocumented
Class TestChoose Undocumented
Class TestClip Undocumented
Class TestCompress Undocumented
Class TestConversion Undocumented
Class TestCreation Test the np.array constructor
Class TestCTypes Undocumented
Class TestDot Undocumented
Class TestDtypedescr Undocumented
Class TestFancyIndexing Undocumented
Class TestFlags Undocumented
Class TestFlat Undocumented
Class TestFormat Undocumented
Class TestFromBuffer Undocumented
Class TestHash Undocumented
Class TestHashing Undocumented
Class TestInner Undocumented
Class TestIO Test tofile, fromfile, tobytes, and fromstring
Class TestLexsort Undocumented
Class TestMapIter Undocumented
Class TestMatmul Undocumented
Class TestMatmulOperator Undocumented
Class TestMethods Undocumented
Class TestMinMax Undocumented
Class TestMinScalarType Undocumented
Class TestNeighborhoodIter Undocumented
Class TestNewaxis Undocumented
Class TestNewBufferProtocol Test PEP3118 buffers
Class TestPEP3118Dtype Undocumented
Class TestPickling Undocumented
Class TestPutmask Undocumented
Class TestRecord Undocumented
Class TestRepeat Undocumented
Class TestResize Undocumented
Class TestScalarIndexing Undocumented
Class TestSizeOf Undocumented
Class TestStackedNeighborhoodIter Undocumented
Class TestStats Undocumented
Class TestStringCompare Undocumented
Class TestStructured Undocumented
Class TestSubscripting Undocumented
Class TestTake Undocumented
Class TestTemporaryElide Undocumented
Class TestUnicodeArrayNonzero Undocumented
Class TestUnicodeEncoding Tests for encoding related bugs, such as UCS2 vs UCS4, round-tripping issues, etc
Class TestVdot Undocumented
Class TestView Undocumented
Class TestViewDtype Verify that making a view of a non-contiguous array works as expected.
Class TestWarnings Undocumented
Class TestWhere Undocumented
Class TestWritebackIfCopy Undocumented
Class TestZeroRank Undocumented
Class TestZeroSizeFlexible No class docstring; 1/12 method, 0/1 static method documented
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_nonASCII_unicode_ordering Undocumented
Function test_scalar_element_deletion Undocumented
Function test_sort_float Undocumented
Function test_sort_int Undocumented
Function test_sort_uint Undocumented
Function test_uintalignment_and_alignment Undocumented
Constant NEIGH_MODE Undocumented
Function _aligned_zeros Allocate a new ndarray with aligned memory.
Function _mean Undocumented
Function _std Undocumented
Function _var Undocumented
def test_array_interface_empty_shape(): (source)

Undocumented

def test_array_interface_itemsize(): (source)

Undocumented

def test_array_interface_offset(): (source)

Undocumented

def test_array_interface_unicode_typestr(): (source)

Undocumented

def test_equal_override(): (source)

Undocumented

def test_flat_element_deletion(): (source)

Undocumented

def test_getfield(): (source)

Undocumented

def test_interface_no_shape(): (source)

Undocumented

def test_matmul_axes(): (source)

Undocumented

def test_matmul_inplace(): (source)

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): (source)

Undocumented

def test_npymath_real(): (source)

Undocumented

def test_orderconverter_with_nonASCII_unicode_ordering(): (source)

Undocumented

def test_scalar_element_deletion(): (source)

Undocumented

@pytest.mark.parametrize('N', [8, 16, 24, 32, 48, 64, 96, 128, 151, 191, 256, 383, 512, 1023, 2047])
def test_sort_float(N): (source)

Undocumented

def test_sort_int(): (source)

Undocumented

def test_sort_uint(): (source)

Undocumented

def test_uintalignment_and_alignment(): (source)

Undocumented

NEIGH_MODE: dict[str, int] = (source)

Undocumented

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

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): (source)

Undocumented

def _std(a, **args): (source)

Undocumented

def _var(a, **args): (source)

Undocumented