module documentation

Undocumented

Class ​Test​Iter​Nested Undocumented
Function ​_is​_buffered Undocumented
Function iter​_indices Undocumented
Function iter​_iterindices Undocumented
Function iter​_multi​_index Undocumented
Function test​_0d​_iter Undocumented
Function test​_buffered​_cast​_error​_paths Undocumented
Function test​_buffered​_cast​_error​_paths​_unraisable Undocumented
Function test​_close​_equivalent using a context amanger and using nditer.close are equivalent
Function test​_close​_parameters Undocumented
Function test​_close​_raises Undocumented
Function test​_debug​_print Matches the expected output of a debug print with the actual output. Note that the iterator dump should not be considered stable API, this test is mainly to ensure the print does not crash.
Function test​_iter​_allocate​_output​_buffered​_readwrite Undocumented
Function test​_iter​_allocate​_output​_errors Undocumented
Function test​_iter​_allocate​_output​_itorder Undocumented
Function test​_iter​_allocate​_output​_opaxes Undocumented
Function test​_iter​_allocate​_output​_simple Undocumented
Function test​_iter​_allocate​_output​_subtype Undocumented
Function test​_iter​_allocate​_output​_types​_byte​_order Undocumented
Function test​_iter​_allocate​_output​_types​_promotion Undocumented
Function test​_iter​_allocate​_output​_types​_scalar Undocumented
Function test​_iter​_allocated​_array​_dtypes Undocumented
Function test​_iter​_array​_cast Undocumented
Function test​_iter​_array​_cast​_errors Undocumented
Function test​_iter​_assign​_mapping Undocumented
Function test​_iter​_best​_order Undocumented
Function test​_iter​_best​_order​_c​_index​_1d Undocumented
Function test​_iter​_best​_order​_c​_index​_2d Undocumented
Function test​_iter​_best​_order​_c​_index​_3d Undocumented
Function test​_iter​_best​_order​_f​_index​_1d Undocumented
Function test​_iter​_best​_order​_f​_index​_2d Undocumented
Function test​_iter​_best​_order​_f​_index​_3d Undocumented
Function test​_iter​_best​_order​_multi​_index​_1d Undocumented
Function test​_iter​_best​_order​_multi​_index​_2d Undocumented
Function test​_iter​_best​_order​_multi​_index​_3d Undocumented
Function test​_iter​_broadcasting Undocumented
Function test​_iter​_broadcasting​_errors Undocumented
Function test​_iter​_buffered​_cast​_byteswapped Undocumented
Function test​_iter​_buffered​_cast​_byteswapped​_complex Undocumented
Function test​_iter​_buffered​_cast​_simple Undocumented
Function test​_iter​_buffered​_cast​_structured​_type Undocumented
Function test​_iter​_buffered​_cast​_structured​_type​_failure​_with​_cleanup Undocumented
Function test​_iter​_buffered​_cast​_subarray Undocumented
Function test​_iter​_buffered​_reduce​_reuse Undocumented
Function test​_iter​_buffering Undocumented
Function test​_iter​_buffering​_badwriteback Undocumented
Function test​_iter​_buffering​_delayed​_alloc Undocumented
Function test​_iter​_buffering​_growinner Undocumented
Function test​_iter​_buffering​_reduction Undocumented
Function test​_iter​_buffering​_reduction​_reuse​_reduce​_loops Undocumented
Function test​_iter​_buffering​_string Undocumented
Function test​_iter​_c​_or​_f​_order Undocumented
Function test​_iter​_c​_order Undocumented
Function test​_iter​_common​_dtype Undocumented
Function test​_iter​_copy Undocumented
Function test​_iter​_copy​_casts Undocumented
Function test​_iter​_copy​_casts​_structured Undocumented
Function test​_iter​_copy​_if​_overlap Undocumented
Function test​_iter​_dim​_coalescing Undocumented
Function test​_iter​_element​_deletion Undocumented
Function test​_iter​_f​_order Undocumented
Function test​_iter​_flags​_errors Undocumented
Function test​_iter​_iterindex Undocumented
Function test​_iter​_iterrange Undocumented
Function test​_iter​_itershape Undocumented
Function test​_iter​_nbo​_align​_contig Undocumented
Function test​_iter​_no​_broadcast Undocumented
Function test​_iter​_no​_inner​_dim​_coalescing Undocumented
Function test​_iter​_no​_inner​_full​_coalesce Undocumented
Function test​_iter​_non​_writable​_attribute​_deletion Undocumented
Function test​_iter​_object​_arrays​_basic Undocumented
Function test​_iter​_object​_arrays​_conversions Undocumented
Function test​_iter​_op​_axes Undocumented
Function test​_iter​_op​_axes​_errors Undocumented
Function test​_iter​_reduction Undocumented
Function test​_iter​_reduction​_error Undocumented
Function test​_iter​_refcount Undocumented
Function test​_iter​_remove​_axis Undocumented
Function test​_iter​_remove​_multi​_index​_inner​_loop Undocumented
Function test​_iter​_scalar​_cast Undocumented
Function test​_iter​_scalar​_cast​_errors Undocumented
Function test​_iter​_slice Undocumented
Function test​_iter​_too​_large Undocumented
Function test​_iter​_too​_large​_with​_multiindex Undocumented
Function test​_iter​_writable​_attribute​_deletion Undocumented
Function test​_iter​_write​_buffering Undocumented
Function test​_iter​_writemasked Undocumented
Function test​_iter​_writemasked​_badinput Undocumented
Function test​_iter​_writemasked​_decref Undocumented
Function test​_nditer​_multi​_index​_set Undocumented
Function test​_nditer​_multi​_index​_set​_refcount Undocumented
Function test​_object​_iter​_cleanup Undocumented
Function test​_object​_iter​_cleanup​_large​_reduce Undocumented
Function test​_object​_iter​_cleanup​_reduce Undocumented
Function test​_partial​_iteration​_cleanup Undocumented
Function test​_partial​_iteration​_error Undocumented
Function test​_warn​_noclose Undocumented
Function test​_writebacks Undocumented
def _is_buffered(iterator):

Undocumented

def iter_indices(i):

Undocumented

def iter_iterindices(i):

Undocumented

def iter_multi_index(i):

Undocumented

def test_0d_iter():

Undocumented

def test_buffered_cast_error_paths():

Undocumented

@pytest.mark.skipif(not HAS_REFCOUNT, reason='PyPy seems to not hit this.')
def test_buffered_cast_error_paths_unraisable():

Undocumented

def test_close_equivalent():
using a context amanger and using nditer.close are equivalent
def test_close_parameters():

Undocumented

def test_close_raises():

Undocumented

def test_debug_print(capfd):

Matches the expected output of a debug print with the actual output. Note that the iterator dump should not be considered stable API, this test is mainly to ensure the print does not crash.

Currently uses a subprocess to avoid dealing with the C level `printf`s.

def test_iter_allocate_output_buffered_readwrite():

Undocumented

def test_iter_allocate_output_errors():

Undocumented

def test_iter_allocate_output_itorder():

Undocumented

def test_iter_allocate_output_opaxes():

Undocumented

def test_iter_allocate_output_simple():

Undocumented

def test_iter_allocate_output_subtype():

Undocumented

def test_iter_allocate_output_types_byte_order():

Undocumented

def test_iter_allocate_output_types_promotion():

Undocumented

def test_iter_allocate_output_types_scalar():

Undocumented

def test_iter_allocated_array_dtypes():

Undocumented

def test_iter_array_cast():

Undocumented

def test_iter_array_cast_errors():

Undocumented

def test_iter_assign_mapping():

Undocumented

def test_iter_best_order():

Undocumented

def test_iter_best_order_c_index_1d():

Undocumented

def test_iter_best_order_c_index_2d():

Undocumented

def test_iter_best_order_c_index_3d():

Undocumented

def test_iter_best_order_f_index_1d():

Undocumented

def test_iter_best_order_f_index_2d():

Undocumented

def test_iter_best_order_f_index_3d():

Undocumented

def test_iter_best_order_multi_index_1d():

Undocumented

def test_iter_best_order_multi_index_2d():

Undocumented

def test_iter_best_order_multi_index_3d():

Undocumented

def test_iter_broadcasting():

Undocumented

def test_iter_broadcasting_errors():

Undocumented

def test_iter_buffered_cast_byteswapped():

Undocumented

def test_iter_buffered_cast_byteswapped_complex():

Undocumented

def test_iter_buffered_cast_simple():

Undocumented

def test_iter_buffered_cast_structured_type():

Undocumented

def test_iter_buffered_cast_structured_type_failure_with_cleanup():

Undocumented

def test_iter_buffered_cast_subarray():

Undocumented

@pytest.mark.slow
def test_iter_buffered_reduce_reuse():

Undocumented

def test_iter_buffering():

Undocumented

def test_iter_buffering_badwriteback():

Undocumented

def test_iter_buffering_delayed_alloc():

Undocumented

def test_iter_buffering_growinner():

Undocumented

def test_iter_buffering_reduction():

Undocumented

def test_iter_buffering_reduction_reuse_reduce_loops():

Undocumented

def test_iter_buffering_string():

Undocumented

def test_iter_c_or_f_order():

Undocumented

def test_iter_c_order():

Undocumented

def test_iter_common_dtype():

Undocumented

def test_iter_copy():

Undocumented

@pytest.mark.parametrize('dtype', np.typecodes['All'])
@pytest.mark.parametrize('loop_dtype', np.typecodes['All'])
@pytest.mark.filterwarnings('ignore::numpy.ComplexWarning')
def test_iter_copy_casts(dtype, loop_dtype):

Undocumented

def test_iter_copy_casts_structured():

Undocumented

def test_iter_copy_if_overlap():

Undocumented

def test_iter_dim_coalescing():

Undocumented

def test_iter_element_deletion():

Undocumented

def test_iter_f_order():

Undocumented

def test_iter_flags_errors():

Undocumented

def test_iter_iterindex():

Undocumented

def test_iter_iterrange():

Undocumented

def test_iter_itershape():

Undocumented

def test_iter_nbo_align_contig():

Undocumented

def test_iter_no_broadcast():

Undocumented

def test_iter_no_inner_dim_coalescing():

Undocumented

def test_iter_no_inner_full_coalesce():

Undocumented

def test_iter_non_writable_attribute_deletion():

Undocumented

def test_iter_object_arrays_basic():

Undocumented

def test_iter_object_arrays_conversions():

Undocumented

def test_iter_op_axes():

Undocumented

def test_iter_op_axes_errors():

Undocumented

def test_iter_reduction():

Undocumented

def test_iter_reduction_error():

Undocumented

@pytest.mark.skipif(not HAS_REFCOUNT, reason='Python lacks refcounts')
def test_iter_refcount():

Undocumented

def test_iter_remove_axis():

Undocumented

def test_iter_remove_multi_index_inner_loop():

Undocumented

def test_iter_scalar_cast():

Undocumented

def test_iter_scalar_cast_errors():

Undocumented

def test_iter_slice():

Undocumented

def test_iter_too_large():

Undocumented

def test_iter_too_large_with_multiindex():

Undocumented

def test_iter_writable_attribute_deletion():

Undocumented

def test_iter_write_buffering():

Undocumented

@pytest.mark.parametrize('a', [np.zeros((3), dtype='f8'), np.zeros((9876, 3*5), dtype='f8')[::2, :], np.zeros((4, 312, 124, 3), dtype='f8')[::2, :, ::2, :], np.zeros((9), dtype='f8')[::3], np.zeros((9876, 3*10), dtype='f8')[::2, ::5], np.zeros((4, 312, 124, 3), dtype='f8')[::2, :, ::2, ::-1]])
def test_iter_writemasked(a):

Undocumented

def test_iter_writemasked_badinput():

Undocumented

def test_iter_writemasked_decref():

Undocumented

def test_nditer_multi_index_set():

Undocumented

@pytest.mark.skipif(not HAS_REFCOUNT, reason='Python lacks refcounts')
def test_nditer_multi_index_set_refcount():

Undocumented

def test_object_iter_cleanup():

Undocumented

@pytest.mark.parametrize('arr', [np.ones((8000, 4, 2), dtype=object)[:, ::2, :], np.ones((8000, 4, 2), dtype=object, order='F')[:, ::2, :], np.ones((8000, 4, 2), dtype=object)[:, ::2, :].copy('F')])
def test_object_iter_cleanup_large_reduce(arr):

Undocumented

def test_object_iter_cleanup_reduce():

Undocumented

@pytest.mark.skipif((sys.version_info[:2] == (3, 9)) and (sys.platform == 'win32'), reason='Errors with Python 3.9 on Windows')
@pytest.mark.skipif(not HAS_REFCOUNT, reason='Python lacks refcounts')
@pytest.mark.parametrize(['in_dtype', 'buf_dtype'], [('i', 'O'), ('O', 'i'), ('i,O', 'O,O'), ('O,i', 'i,O')])
@pytest.mark.parametrize('steps', [1, 2, 3])
def test_partial_iteration_cleanup(in_dtype, buf_dtype, steps):

Undocumented

@pytest.mark.skipif(not HAS_REFCOUNT, reason='Python lacks refcounts')
@pytest.mark.parametrize(['in_dtype', 'buf_dtype'], [('O', 'i'), ('O,i', 'i,O')])
def test_partial_iteration_error(in_dtype, buf_dtype):

Undocumented

@pytest.mark.skipif(not HAS_REFCOUNT, reason='Python lacks refcounts')
def test_warn_noclose():

Undocumented

def test_writebacks():

Undocumented