Functions | |
def | array_copy_but_one (a, r, c, v) |
def | assert_equal_ref (mat) |
def | assert_keeps_alive (cl, method, args) |
def | assert_sparse_equal_ref (sparse_mat) |
def | assign_both (a1, a2, r, c, v) |
def | test_both_ref_mutators () |
def | test_cpp_casting () |
def | test_custom_operator_new () |
def | test_dense () |
def | test_dense_signature (doc) |
def | test_eigen_keepalive () |
def | test_eigen_ref_life_support () |
def | test_eigen_ref_mutators () |
def | test_eigen_ref_to_python () |
def | test_eigen_return_references () |
def | test_fixed () |
def | test_issue1105 () |
def | test_issue738 () |
def | test_mutator_descriptors () |
def | test_named_arguments () |
def | test_negative_stride_from_python (msg) |
def | test_nocopy_wrapper () |
def | test_nonunit_stride_from_python () |
def | test_nonunit_stride_to_python () |
def | test_numpy_ref_mutators () |
def | test_partially_fixed () |
def | test_pass_readonly_array () |
def | test_sparse () |
def | test_sparse_signature (doc) |
def | test_special_matrix_objects () |
Variables | |
m | |
np | |
ref | |
def test_eigen.array_copy_but_one | ( | a, | |
r, | |||
c, | |||
v | |||
) |
Definition at line 219 of file test_eigen.py.
def test_eigen.assert_equal_ref | ( | mat | ) |
Definition at line 16 of file test_eigen.py.
def test_eigen.assert_keeps_alive | ( | cl, | |
method, | |||
args | |||
) |
Definition at line 338 of file test_eigen.py.
def test_eigen.assert_sparse_equal_ref | ( | sparse_mat | ) |
Definition at line 20 of file test_eigen.py.
def test_eigen.assign_both | ( | a1, | |
a2, | |||
r, | |||
c, | |||
v | |||
) |
Definition at line 214 of file test_eigen.py.
def test_eigen.test_both_ref_mutators | ( | ) |
Tests a complex chain of nested eigen/numpy references
Definition at line 490 of file test_eigen.py.
def test_eigen.test_cpp_casting | ( | ) |
Definition at line 100 of file test_eigen.py.
def test_eigen.test_custom_operator_new | ( | ) |
Using Eigen types as member variables requires a class-specific operator new with proper alignment
Definition at line 691 of file test_eigen.py.
def test_eigen.test_dense | ( | ) |
Definition at line 33 of file test_eigen.py.
def test_eigen.test_dense_signature | ( | doc | ) |
Definition at line 609 of file test_eigen.py.
def test_eigen.test_eigen_keepalive | ( | ) |
Definition at line 353 of file test_eigen.py.
def test_eigen.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 577 of file test_eigen.py.
def test_eigen.test_eigen_ref_mutators | ( | ) |
Tests Eigen's ability to mutate numpy values
Definition at line 374 of file test_eigen.py.
def test_eigen.test_eigen_ref_to_python | ( | ) |
Definition at line 207 of file test_eigen.py.
def test_eigen.test_eigen_return_references | ( | ) |
Tests various ways of returning references and non-referencing copies
Definition at line 225 of file test_eigen.py.
def test_eigen.test_fixed | ( | ) |
Definition at line 24 of file test_eigen.py.
def test_eigen.test_issue1105 | ( | ) |
Issue 1105: 1xN or Nx1 input arrays weren't accepted for eigen compile-time row vectors or column vector
Definition at line 676 of file test_eigen.py.
def test_eigen.test_issue738 | ( | ) |
Ignore strides on a length-1 dimension (even if they would be incompatible length > 1)
Definition at line 667 of file test_eigen.py.
def test_eigen.test_mutator_descriptors | ( | ) |
Definition at line 71 of file test_eigen.py.
def test_eigen.test_named_arguments | ( | ) |
Definition at line 626 of file test_eigen.py.
def test_eigen.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 155 of file test_eigen.py.
def test_eigen.test_nocopy_wrapper | ( | ) |
Definition at line 532 of file test_eigen.py.
def test_eigen.test_nonunit_stride_from_python | ( | ) |
Definition at line 132 of file test_eigen.py.
def test_eigen.test_nonunit_stride_to_python | ( | ) |
Definition at line 196 of file test_eigen.py.
def test_eigen.test_numpy_ref_mutators | ( | ) |
Tests numpy mutating Eigen matrices (for returned Eigen::Ref<...>s)
Definition at line 443 of file test_eigen.py.
def test_eigen.test_partially_fixed | ( | ) |
Definition at line 42 of file test_eigen.py.
def test_eigen.test_pass_readonly_array | ( | ) |
Definition at line 123 of file test_eigen.py.
def test_eigen.test_sparse | ( | ) |
Definition at line 647 of file test_eigen.py.
def test_eigen.test_sparse_signature | ( | doc | ) |
Definition at line 657 of file test_eigen.py.
def test_eigen.test_special_matrix_objects | ( | ) |
Definition at line 591 of file test_eigen.py.
test_eigen.m |
Definition at line 6 of file test_eigen.py.
test_eigen.np |
Definition at line 5 of file test_eigen.py.
test_eigen.ref |
Definition at line 9 of file test_eigen.py.