Functions | Variables
test_eigen_matrix Namespace Reference

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_block_runtime_error_type_caster_eigen_ref_made_a_copy ()
 
def test_both_ref_mutators ()
 
def test_cpp_casting ()
 
def test_custom_operator_new ()
 
def test_defaults (doc)
 
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 ()
 
def test_zero_length (func, sizes)
 

Variables

 m
 
 np
 
 ref
 

Function Documentation

◆ array_copy_but_one()

def test_eigen_matrix.array_copy_but_one (   a,
  r,
  c,
  v 
)

Definition at line 256 of file test_eigen_matrix.py.

◆ assert_equal_ref()

def test_eigen_matrix.assert_equal_ref (   mat)

Definition at line 22 of file test_eigen_matrix.py.

◆ assert_keeps_alive()

def test_eigen_matrix.assert_keeps_alive (   cl,
  method,
args 
)

Definition at line 397 of file test_eigen_matrix.py.

◆ assert_sparse_equal_ref()

def test_eigen_matrix.assert_sparse_equal_ref (   sparse_mat)

Definition at line 26 of file test_eigen_matrix.py.

◆ assign_both()

def test_eigen_matrix.assign_both (   a1,
  a2,
  r,
  c,
  v 
)

Definition at line 251 of file test_eigen_matrix.py.

◆ test_block_runtime_error_type_caster_eigen_ref_made_a_copy()

def test_eigen_matrix.test_block_runtime_error_type_caster_eigen_ref_made_a_copy ( )

Definition at line 222 of file test_eigen_matrix.py.

◆ test_both_ref_mutators()

def test_eigen_matrix.test_both_ref_mutators ( )
Tests a complex chain of nested eigen/numpy references

Definition at line 566 of file test_eigen_matrix.py.

◆ test_cpp_casting()

def test_eigen_matrix.test_cpp_casting ( )

Definition at line 118 of file test_eigen_matrix.py.

◆ test_custom_operator_new()

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 810 of file test_eigen_matrix.py.

◆ test_defaults()

def test_eigen_matrix.test_defaults (   doc)

Definition at line 723 of file test_eigen_matrix.py.

◆ test_dense()

def test_eigen_matrix.test_dense ( )

Definition at line 39 of file test_eigen_matrix.py.

◆ test_dense_signature()

def test_eigen_matrix.test_dense_signature (   doc)

Definition at line 696 of file test_eigen_matrix.py.

◆ test_eigen_keepalive()

def test_eigen_matrix.test_eigen_keepalive ( )

Definition at line 412 of file test_eigen_matrix.py.

◆ test_eigen_ref_life_support()

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 667 of file test_eigen_matrix.py.

◆ test_eigen_ref_mutators()

def test_eigen_matrix.test_eigen_ref_mutators ( )
Tests Eigen's ability to mutate numpy values

Definition at line 445 of file test_eigen_matrix.py.

◆ test_eigen_ref_to_python()

def test_eigen_matrix.test_eigen_ref_to_python ( )

Definition at line 242 of file test_eigen_matrix.py.

◆ test_eigen_return_references()

def test_eigen_matrix.test_eigen_return_references ( )
Tests various ways of returning references and non-referencing copies

Definition at line 262 of file test_eigen_matrix.py.

◆ test_fixed()

def test_eigen_matrix.test_fixed ( )

Definition at line 30 of file test_eigen_matrix.py.

◆ test_issue1105()

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 795 of file test_eigen_matrix.py.

◆ test_issue738()

def test_eigen_matrix.test_issue738 ( )
Ignore strides on a length-1 dimension (even if they would be incompatible length > 1)

Definition at line 775 of file test_eigen_matrix.py.

◆ test_mutator_descriptors()

def test_eigen_matrix.test_mutator_descriptors ( )

Definition at line 86 of file test_eigen_matrix.py.

◆ test_named_arguments()

def test_eigen_matrix.test_named_arguments ( )

Definition at line 728 of file test_eigen_matrix.py.

◆ test_negative_stride_from_python()

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 173 of file test_eigen_matrix.py.

◆ test_nocopy_wrapper()

def test_eigen_matrix.test_nocopy_wrapper ( )

Definition at line 610 of file test_eigen_matrix.py.

◆ test_nonunit_stride_from_python()

def test_eigen_matrix.test_nonunit_stride_from_python ( )

Definition at line 150 of file test_eigen_matrix.py.

◆ test_nonunit_stride_to_python()

def test_eigen_matrix.test_nonunit_stride_to_python ( )

Definition at line 228 of file test_eigen_matrix.py.

◆ test_numpy_ref_mutators()

def test_eigen_matrix.test_numpy_ref_mutators ( )
Tests numpy mutating Eigen matrices (for returned Eigen::Ref<...>s)

Definition at line 514 of file test_eigen_matrix.py.

◆ test_partially_fixed()

def test_eigen_matrix.test_partially_fixed ( )

Definition at line 48 of file test_eigen_matrix.py.

◆ test_pass_readonly_array()

def test_eigen_matrix.test_pass_readonly_array ( )

Definition at line 141 of file test_eigen_matrix.py.

◆ test_sparse()

def test_eigen_matrix.test_sparse ( )

Definition at line 749 of file test_eigen_matrix.py.

◆ test_sparse_signature()

def test_eigen_matrix.test_sparse_signature (   doc)

Definition at line 759 of file test_eigen_matrix.py.

◆ test_special_matrix_objects()

def test_eigen_matrix.test_special_matrix_objects ( )

Definition at line 681 of file test_eigen_matrix.py.

◆ test_zero_length()

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 790 of file test_eigen_matrix.py.

Variable Documentation

◆ m

test_eigen_matrix.m

Definition at line 8 of file test_eigen_matrix.py.

◆ np

test_eigen_matrix.np

Definition at line 7 of file test_eigen_matrix.py.

◆ ref

test_eigen_matrix.ref

Definition at line 11 of file test_eigen_matrix.py.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:16:52