cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Functions | Variables
test_numpy_array Namespace Reference

Functions

def test_dtypes ()
 
def arr ()
 
def test_array_attributes ()
 
def test_index_offset (arr, args, ret)
 
def test_dim_check_fail (arr)
 
def test_data (arr, args, ret)
 
def test_at_fail (arr, dim)
 
def test_at (arr)
 
def test_mutate_readonly (arr)
 
def test_mutate_data (arr)
 
def test_bounds_check (arr)
 
def test_make_c_f_array ()
 
def test_make_empty_shaped_array ()
 
def test_wrap ()
 
def test_numpy_view (capture)
 
def test_cast_numpy_int64_to_uint64 ()
 
def test_isinstance ()
 
def test_constructors ()
 
def test_overload_resolution (msg)
 
def test_greedy_string_overload ()
 
def test_array_unchecked_fixed_dims (msg)
 
def test_array_unchecked_dyn_dims (msg)
 
def test_array_failure ()
 
def test_initializer_list ()
 
def test_array_resize (msg)
 
def test_array_create_and_resize (msg)
 
def test_index_using_ellipsis ()
 
def test_argument_conversions (forcecast, contiguity, noconvert)
 
def test_dtype_refcount_leak ()
 

Variables

 np
 

Function Documentation

◆ arr()

def test_numpy_array.arr ( )

Definition at line 30 of file test_numpy_array.py.

◆ test_argument_conversions()

def test_numpy_array.test_argument_conversions (   forcecast,
  contiguity,
  noconvert 
)

Definition at line 491 of file test_numpy_array.py.

◆ test_array_attributes()

def test_numpy_array.test_array_attributes ( )

Definition at line 34 of file test_numpy_array.py.

◆ test_array_create_and_resize()

def test_numpy_array.test_array_create_and_resize (   msg)

Definition at line 474 of file test_numpy_array.py.

◆ test_array_failure()

def test_numpy_array.test_array_failure ( )

Definition at line 427 of file test_numpy_array.py.

◆ test_array_resize()

def test_numpy_array.test_array_resize (   msg)

Definition at line 448 of file test_numpy_array.py.

◆ test_array_unchecked_dyn_dims()

def test_numpy_array.test_array_unchecked_dyn_dims (   msg)

Definition at line 415 of file test_numpy_array.py.

◆ test_array_unchecked_fixed_dims()

def test_numpy_array.test_array_unchecked_fixed_dims (   msg)

Definition at line 389 of file test_numpy_array.py.

◆ test_at()

def test_numpy_array.test_at (   arr)

Definition at line 126 of file test_numpy_array.py.

◆ test_at_fail()

def test_numpy_array.test_at_fail (   arr,
  dim 
)

Definition at line 117 of file test_numpy_array.py.

◆ test_bounds_check()

def test_numpy_array.test_bounds_check (   arr)

Definition at line 160 of file test_numpy_array.py.

◆ test_cast_numpy_int64_to_uint64()

def test_numpy_array.test_cast_numpy_int64_to_uint64 ( )

Definition at line 285 of file test_numpy_array.py.

◆ test_constructors()

def test_numpy_array.test_constructors ( )

Definition at line 295 of file test_numpy_array.py.

◆ test_data()

def test_numpy_array.test_data (   arr,
  args,
  ret 
)

Definition at line 108 of file test_numpy_array.py.

◆ test_dim_check_fail()

def test_numpy_array.test_dim_check_fail (   arr)

Definition at line 83 of file test_numpy_array.py.

◆ test_dtype_refcount_leak()

def test_numpy_array.test_dtype_refcount_leak ( )

Definition at line 533 of file test_numpy_array.py.

◆ test_dtypes()

def test_numpy_array.test_dtypes ( )

Definition at line 11 of file test_numpy_array.py.

◆ test_greedy_string_overload()

def test_numpy_array.test_greedy_string_overload ( )
Tests fix for #685 - ndarray shouldn't go to std::string overload

Definition at line 381 of file test_numpy_array.py.

◆ test_index_offset()

def test_numpy_array.test_index_offset (   arr,
  args,
  ret 
)

Definition at line 76 of file test_numpy_array.py.

◆ test_index_using_ellipsis()

def test_numpy_array.test_index_using_ellipsis ( )

Definition at line 480 of file test_numpy_array.py.

◆ test_initializer_list()

def test_numpy_array.test_initializer_list ( )

Definition at line 441 of file test_numpy_array.py.

◆ test_isinstance()

def test_numpy_array.test_isinstance ( )

Definition at line 290 of file test_numpy_array.py.

◆ test_make_c_f_array()

def test_numpy_array.test_make_c_f_array ( )

Definition at line 179 of file test_numpy_array.py.

◆ test_make_empty_shaped_array()

def test_numpy_array.test_make_empty_shaped_array ( )

Definition at line 186 of file test_numpy_array.py.

◆ test_mutate_data()

def test_numpy_array.test_mutate_data (   arr)

Definition at line 146 of file test_numpy_array.py.

◆ test_mutate_readonly()

def test_numpy_array.test_mutate_readonly (   arr)

Definition at line 134 of file test_numpy_array.py.

◆ test_numpy_view()

def test_numpy_array.test_numpy_view (   capture)

Definition at line 252 of file test_numpy_array.py.

◆ test_overload_resolution()

def test_numpy_array.test_overload_resolution (   msg)

Definition at line 311 of file test_numpy_array.py.

◆ test_wrap()

def test_numpy_array.test_wrap ( )

Definition at line 195 of file test_numpy_array.py.

Variable Documentation

◆ np

test_numpy_array.np

Definition at line 8 of file test_numpy_array.py.