Macros
eigen-macros.hpp File Reference
#include "pinocchio/utils/eigen-fix.hpp"
Include dependency graph for eigen-macros.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PINOCCHIO_EIGEN_CONST_CAST(TYPE, OBJ)   const_cast<TYPE &>(OBJ.derived())
 Macro for an automatic const_cast. More...
 
#define PINOCCHIO_EIGEN_DOT_PRODUCT_RETURN_TYPE(D1, D2)
 Macro giving access to the return type of the dot product operation. More...
 
#define PINOCCHIO_EIGEN_MALLOC(allowed)
   More...
 
#define PINOCCHIO_EIGEN_MALLOC_ALLOWED()
 
#define PINOCCHIO_EIGEN_MALLOC_NOT_ALLOWED()
 
#define PINOCCHIO_EIGEN_MALLOC_RESTORE_STATUS()
 
#define PINOCCHIO_EIGEN_MALLOC_SAVE_STATUS()
 
#define PINOCCHIO_EIGEN_PLAIN_COLUMN_MAJOR_TYPE(D)
 Similar to macro PINOCCHIO_EIGEN_PLAIN_TYPE but with guaranty to provite a column major type. More...
 
#define PINOCCHIO_EIGEN_PLAIN_ROW_MAJOR_TYPE(D)
 Similar to macro PINOCCHIO_EIGEN_PLAIN_TYPE but with guaranty to provite a row major type. More...
 
#define PINOCCHIO_EIGEN_PLAIN_TYPE(D)   Eigen::internal::plain_matrix_type<typename pinocchio::helper::argument_type<void(D)>::type>::type
 Macro giving access to the equivalent plain type of D. More...
 
#define PINOCCHIO_EIGEN_PLAIN_TYPE_NO_PARENS(D)   Eigen::internal::plain_matrix_type<typename pinocchio::helper::argument_type<void D>::type>::type
 
#define PINOCCHIO_EIGEN_REF_CONST_TYPE(D)   Eigen::internal::ref_selector<D>::type
 Macro giving access to the reference type of D. More...
 
#define PINOCCHIO_EIGEN_REF_TYPE(D)
 

Macro Definition Documentation

◆ PINOCCHIO_EIGEN_CONST_CAST

#define PINOCCHIO_EIGEN_CONST_CAST (   TYPE,
  OBJ 
)    const_cast<TYPE &>(OBJ.derived())

Macro for an automatic const_cast.

Definition at line 51 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_DOT_PRODUCT_RETURN_TYPE

#define PINOCCHIO_EIGEN_DOT_PRODUCT_RETURN_TYPE (   D1,
  D2 
)
Value:
Eigen::internal::scalar_product_traits< \

Macro giving access to the return type of the dot product operation.

Definition at line 44 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_MALLOC

#define PINOCCHIO_EIGEN_MALLOC (   allowed)

 

Tell if Pinocchio should use the Eigen Tensor Module or not

Check memory allocation for Eigen.

Warning
These macros do not work well with multithreading for Eigen <= 3.4 and will create a race condition - special care is required.

Definition at line 70 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_MALLOC_ALLOWED

#define PINOCCHIO_EIGEN_MALLOC_ALLOWED ( )

Definition at line 71 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_MALLOC_NOT_ALLOWED

#define PINOCCHIO_EIGEN_MALLOC_NOT_ALLOWED ( )

Definition at line 72 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_MALLOC_RESTORE_STATUS

#define PINOCCHIO_EIGEN_MALLOC_RESTORE_STATUS ( )

Definition at line 74 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_MALLOC_SAVE_STATUS

#define PINOCCHIO_EIGEN_MALLOC_SAVE_STATUS ( )

Definition at line 73 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_PLAIN_COLUMN_MAJOR_TYPE

#define PINOCCHIO_EIGEN_PLAIN_COLUMN_MAJOR_TYPE (   D)
Value:
D, Eigen::internal::plain_matrix_type_column_major>::type

Similar to macro PINOCCHIO_EIGEN_PLAIN_TYPE but with guaranty to provite a column major type.

Definition at line 18 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_PLAIN_ROW_MAJOR_TYPE

#define PINOCCHIO_EIGEN_PLAIN_ROW_MAJOR_TYPE (   D)
Value:

Similar to macro PINOCCHIO_EIGEN_PLAIN_TYPE but with guaranty to provite a row major type.

Definition at line 23 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_PLAIN_TYPE

#define PINOCCHIO_EIGEN_PLAIN_TYPE (   D)    Eigen::internal::plain_matrix_type<typename pinocchio::helper::argument_type<void(D)>::type>::type

Macro giving access to the equivalent plain type of D.

Definition at line 11 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_PLAIN_TYPE_NO_PARENS

#define PINOCCHIO_EIGEN_PLAIN_TYPE_NO_PARENS (   D)    Eigen::internal::plain_matrix_type<typename pinocchio::helper::argument_type<void D>::type>::type

Definition at line 13 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_REF_CONST_TYPE

#define PINOCCHIO_EIGEN_REF_CONST_TYPE (   D)    Eigen::internal::ref_selector<D>::type

Macro giving access to the reference type of D.

Definition at line 28 of file eigen-macros.hpp.

◆ PINOCCHIO_EIGEN_REF_TYPE

#define PINOCCHIO_EIGEN_REF_TYPE (   D)
Value:
Eigen::internal::conditional< \
bool(Eigen::internal::traits<D>::Flags & Eigen::NestByRefBit), D &, D>::type

Definition at line 32 of file eigen-macros.hpp.

pinocchio::python::Scalar
context::Scalar Scalar
Definition: admm-solver.cpp:29
pinocchio::fix::Eigen::internal::plain_matrix_type_row_major
Definition: eigen-fix.hpp:41
simulation-pendulum.type
type
Definition: simulation-pendulum.py:19
D
D
pinocchio::helper::handle_return_type_without_typename
Definition: include/pinocchio/macros.hpp:96


pinocchio
Author(s):
autogenerated on Fri Nov 1 2024 02:41:49