Functions | Variables
test_eigen 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_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 ()
 
def test_zero_length (func, sizes)
 

Variables

 m
 
 np
 
 ref
 

Function Documentation

◆ array_copy_but_one()

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

Definition at line 245 of file test_eigen.py.

◆ assert_equal_ref()

def test_eigen.assert_equal_ref (   mat)

Definition at line 20 of file test_eigen.py.

◆ assert_keeps_alive()

def test_eigen.assert_keeps_alive (   cl,
  method,
  args 
)

Definition at line 368 of file test_eigen.py.

◆ assert_sparse_equal_ref()

def test_eigen.assert_sparse_equal_ref (   sparse_mat)

Definition at line 24 of file test_eigen.py.

◆ assign_both()

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

Definition at line 240 of file test_eigen.py.

◆ test_both_ref_mutators()

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

Definition at line 532 of file test_eigen.py.

◆ test_cpp_casting()

def test_eigen.test_cpp_casting ( )

Definition at line 116 of file test_eigen.py.

◆ test_custom_operator_new()

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 769 of file test_eigen.py.

◆ test_dense()

def test_eigen.test_dense ( )

Definition at line 37 of file test_eigen.py.

◆ test_dense_signature()

def test_eigen.test_dense_signature (   doc)

Definition at line 660 of file test_eigen.py.

◆ test_eigen_keepalive()

def test_eigen.test_eigen_keepalive ( )

Definition at line 383 of file test_eigen.py.

◆ test_eigen_ref_life_support()

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 631 of file test_eigen.py.

◆ test_eigen_ref_mutators()

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

Definition at line 416 of file test_eigen.py.

◆ test_eigen_ref_to_python()

def test_eigen.test_eigen_ref_to_python ( )

Definition at line 231 of file test_eigen.py.

◆ test_eigen_return_references()

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

Definition at line 251 of file test_eigen.py.

◆ test_fixed()

def test_eigen.test_fixed ( )

Definition at line 28 of file test_eigen.py.

◆ test_issue1105()

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 754 of file test_eigen.py.

◆ test_issue738()

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

Definition at line 734 of file test_eigen.py.

◆ test_mutator_descriptors()

def test_eigen.test_mutator_descriptors ( )

Definition at line 84 of file test_eigen.py.

◆ test_named_arguments()

def test_eigen.test_named_arguments ( )

Definition at line 687 of file test_eigen.py.

◆ test_negative_stride_from_python()

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 171 of file test_eigen.py.

◆ test_nocopy_wrapper()

def test_eigen.test_nocopy_wrapper ( )

Definition at line 576 of file test_eigen.py.

◆ test_nonunit_stride_from_python()

def test_eigen.test_nonunit_stride_from_python ( )

Definition at line 148 of file test_eigen.py.

◆ test_nonunit_stride_to_python()

def test_eigen.test_nonunit_stride_to_python ( )

Definition at line 220 of file test_eigen.py.

◆ test_numpy_ref_mutators()

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

Definition at line 485 of file test_eigen.py.

◆ test_partially_fixed()

def test_eigen.test_partially_fixed ( )

Definition at line 46 of file test_eigen.py.

◆ test_pass_readonly_array()

def test_eigen.test_pass_readonly_array ( )

Definition at line 139 of file test_eigen.py.

◆ test_sparse()

def test_eigen.test_sparse ( )

Definition at line 708 of file test_eigen.py.

◆ test_sparse_signature()

def test_eigen.test_sparse_signature (   doc)

Definition at line 718 of file test_eigen.py.

◆ test_special_matrix_objects()

def test_eigen.test_special_matrix_objects ( )

Definition at line 645 of file test_eigen.py.

◆ test_zero_length()

def test_eigen.test_zero_length (   func,
  sizes 
)
Ignore strides on a length-0 dimension (even if they would be incompatible length > 1)

Definition at line 749 of file test_eigen.py.

Variable Documentation

◆ m

test_eigen.m

Definition at line 6 of file test_eigen.py.

◆ np

test_eigen.np

Definition at line 5 of file test_eigen.py.

◆ ref

test_eigen.ref

Definition at line 9 of file test_eigen.py.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:47:31