Variables | |
np = pytest.importorskip("numpy") | |
m = pytest.importorskip("pybind11_tests.eigen_matrix") | |
ref | |
def test_eigen_matrix.array_copy_but_one | ( | a, | |
r, | |||
c, | |||
v | |||
) |
Definition at line 254 of file test_eigen_matrix.py.
Referenced by test_eigen_return_references().
def test_eigen_matrix.assert_equal_ref | ( | mat | ) |
Definition at line 20 of file test_eigen_matrix.py.
Referenced by assert_sparse_equal_ref(), test_dense(), and test_fixed().
def test_eigen_matrix.assert_keeps_alive | ( | cl, | |
method, | |||
* | args | ||
) |
Definition at line 377 of file test_eigen_matrix.py.
References ConstructorStats.get().
Referenced by test_eigen_keepalive().
def test_eigen_matrix.assert_sparse_equal_ref | ( | sparse_mat | ) |
Definition at line 24 of file test_eigen_matrix.py.
References assert_equal_ref().
Referenced by test_sparse().
def test_eigen_matrix.assign_both | ( | a1, | |
a2, | |||
r, | |||
c, | |||
v | |||
) |
Definition at line 249 of file test_eigen_matrix.py.
Referenced by test_eigen_return_references().
def test_eigen_matrix.test_block_runtime_error_type_caster_eigen_ref_made_a_copy | ( | ) |
Definition at line 220 of file test_eigen_matrix.py.
def test_eigen_matrix.test_both_ref_mutators | ( | ) |
Tests a complex chain of nested eigen/numpy references
Definition at line 541 of file test_eigen_matrix.py.
def test_eigen_matrix.test_cpp_casting | ( | ) |
Definition at line 116 of file test_eigen_matrix.py.
def test_eigen_matrix.test_custom_operator_new | ( | ) |
Using Eigen types as member variables requires a class-specific operator new with proper alignment
Definition at line 778 of file test_eigen_matrix.py.
def test_eigen_matrix.test_dense | ( | ) |
Definition at line 37 of file test_eigen_matrix.py.
References assert_equal_ref().
def test_eigen_matrix.test_dense_signature | ( | doc | ) |
Definition at line 669 of file test_eigen_matrix.py.
def test_eigen_matrix.test_eigen_keepalive | ( | ) |
Definition at line 392 of file test_eigen_matrix.py.
References assert_keeps_alive(), and ConstructorStats.get().
def test_eigen_matrix.test_eigen_ref_life_support | ( | ) |
Ensure the lifetime of temporary arrays created by the `Ref` caster The `Ref` caster sometimes creates a copy which needs to stay alive. This needs to happen both for directs casts (just the array) or indirectly (e.g. list of arrays).
Definition at line 640 of file test_eigen_matrix.py.
def test_eigen_matrix.test_eigen_ref_mutators | ( | ) |
Tests Eigen's ability to mutate numpy values
Definition at line 425 of file test_eigen_matrix.py.
def test_eigen_matrix.test_eigen_ref_to_python | ( | ) |
Definition at line 240 of file test_eigen_matrix.py.
def test_eigen_matrix.test_eigen_return_references | ( | ) |
Tests various ways of returning references and non-referencing copies
Definition at line 260 of file test_eigen_matrix.py.
References array_copy_but_one(), and assign_both().
def test_eigen_matrix.test_fixed | ( | ) |
Definition at line 28 of file test_eigen_matrix.py.
References assert_equal_ref().
def test_eigen_matrix.test_issue1105 | ( | ) |
Issue 1105: 1xN or Nx1 input arrays weren't accepted for eigen compile-time row vectors or column vector
Definition at line 763 of file test_eigen_matrix.py.
def test_eigen_matrix.test_issue738 | ( | ) |
Ignore strides on a length-1 dimension (even if they would be incompatible length > 1)
Definition at line 743 of file test_eigen_matrix.py.
def test_eigen_matrix.test_mutator_descriptors | ( | ) |
Definition at line 84 of file test_eigen_matrix.py.
def test_eigen_matrix.test_named_arguments | ( | ) |
Definition at line 696 of file test_eigen_matrix.py.
def test_eigen_matrix.test_negative_stride_from_python | ( | msg | ) |
Eigen doesn't support (as of yet) negative strides. When a function takes an Eigen matrix by copy or const reference, we can pass a numpy array that has negative strides. Otherwise, an exception will be thrown as Eigen will not be able to map the numpy array.
Definition at line 171 of file test_eigen_matrix.py.
References repr().
def test_eigen_matrix.test_nocopy_wrapper | ( | ) |
Definition at line 585 of file test_eigen_matrix.py.
def test_eigen_matrix.test_nonunit_stride_from_python | ( | ) |
Definition at line 148 of file test_eigen_matrix.py.
def test_eigen_matrix.test_nonunit_stride_to_python | ( | ) |
Definition at line 226 of file test_eigen_matrix.py.
def test_eigen_matrix.test_numpy_ref_mutators | ( | ) |
Tests numpy mutating Eigen matrices (for returned Eigen::Ref<...>s)
Definition at line 494 of file test_eigen_matrix.py.
def test_eigen_matrix.test_partially_fixed | ( | ) |
Definition at line 46 of file test_eigen_matrix.py.
def test_eigen_matrix.test_pass_readonly_array | ( | ) |
Definition at line 139 of file test_eigen_matrix.py.
def test_eigen_matrix.test_sparse | ( | ) |
Definition at line 717 of file test_eigen_matrix.py.
References assert_sparse_equal_ref().
def test_eigen_matrix.test_sparse_signature | ( | doc | ) |
Definition at line 727 of file test_eigen_matrix.py.
def test_eigen_matrix.test_special_matrix_objects | ( | ) |
Definition at line 654 of file test_eigen_matrix.py.
def test_eigen_matrix.test_zero_length | ( | func, | |
sizes | |||
) |
Ignore strides on a length-0 dimension (even if they would be incompatible length > 1)
Definition at line 758 of file test_eigen_matrix.py.
test_eigen_matrix.m = pytest.importorskip("pybind11_tests.eigen_matrix") |
Definition at line 6 of file test_eigen_matrix.py.
test_eigen_matrix.np = pytest.importorskip("numpy") |
Definition at line 5 of file test_eigen_matrix.py.
test_eigen_matrix.ref |
Definition at line 9 of file test_eigen_matrix.py.