module documentation

Undocumented

Function test___array__ Undocumented
Function test_allow_newaxis Undocumented
Function test_array_keys_use_private_array Indexing operations convert array keys before indexing the internal array
Function test_array_properties Undocumented
Function test_device_property Undocumented
Function test_disallow_flat_indexing_with_newaxis Undocumented
Function test_disallow_mask_with_newaxis Undocumented
Function test_error_on_invalid_index Undocumented
Function test_error_on_invalid_index_with_ellipsis Undocumented
Function test_mask_0d_array_without_errors Undocumented
Function test_operators Undocumented
Function test_python_scalar_construtors Undocumented
Function test_validate_index Undocumented
def test___array__(): (source)

Undocumented

def test_allow_newaxis(): (source)

Undocumented

def test_array_keys_use_private_array(): (source)

Indexing operations convert array keys before indexing the internal array

Fails when array_api array keys are not converted into NumPy-proper arrays in __getitem__(). This is achieved by passing array_api arrays with 0-sized dimensions, which NumPy-proper treats erroneously - not sure why!

TODO: Find and use appropriate __setitem__() case.

def test_array_properties(): (source)

Undocumented

def test_device_property(): (source)

Undocumented

def test_disallow_flat_indexing_with_newaxis(): (source)

Undocumented

def test_disallow_mask_with_newaxis(): (source)

Undocumented

@pytest.mark.parametrize('shape', [(), (5), (3, 3, 3)])
@pytest.mark.parametrize('index', ['string', False, True])
def test_error_on_invalid_index(shape, index): (source)

Undocumented

@pytest.mark.parametrize('i', [slice(5), slice(5, 0), asarray(True), asarray([0, 1])])
def test_error_on_invalid_index_with_ellipsis(i): (source)

Undocumented

def test_mask_0d_array_without_errors(): (source)

Undocumented

def test_operators(): (source)

Undocumented

def test_python_scalar_construtors(): (source)

Undocumented

def test_validate_index(): (source)

Undocumented