pinocchio  2.4.4
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Tensor< Scalar_, NumIndices_, Options_, IndexType > Struct Template Reference
Collaboration diagram for Tensor< Scalar_, NumIndices_, Options_, IndexType >:

Public Types

enum  { Options = Options_, NumIndices = NumIndices_ }
 
typedef Eigen::array< Index, NumIndices_ > Dimensions
 
typedef IndexType Index
 
typedef Scalar_ Scalar
 

Public Member Functions

EIGEN_DEVICE_FUNC Tensor (const Tensor &other)
 
EIGEN_DEVICE_FUNC Tensor (Index dim1)
 
EIGEN_DEVICE_FUNC Tensor (Index dim1, Index dim2)
 
EIGEN_DEVICE_FUNC Tensor (Index dim1, Index dim2, Index dim3)
 
EIGEN_DEVICE_FUNC Tensor (Index dim1, Index dim2, Index dim3, Index dim4)
 
EIGEN_DEVICE_FUNC Tensor (Index dim1, Index dim2, Index dim3, Index dim4, Index dim5)
 
Tensorbase ()
 
const Tensorbase () const
 
EIGEN_DEVICE_FUNC Scalar * data ()
 
EIGEN_DEVICE_FUNC const Scalar * data () const
 
EIGEN_DEVICE_FUNC Index dimension (std::size_t n) const
 
EIGEN_DEVICE_FUNC Dimensionsdimensions ()
 
EIGEN_DEVICE_FUNC const Dimensionsdimensions () const
 
EIGEN_DEVICE_FUNC bool operator!= (const Tensor &other) const
 
EIGEN_DEVICE_FUNC const Scalar & operator() (Index i0) const
 
EIGEN_DEVICE_FUNC const Scalar & operator() (Index i0, Index i1) const
 
EIGEN_DEVICE_FUNC const Scalar & operator() (Index i0, Index i1, Index i2) const
 
EIGEN_DEVICE_FUNC const Scalar & operator() (Index i0, Index i1, Index i2, Index i3) const
 
EIGEN_DEVICE_FUNC const Scalar & operator() (Index i0, Index i1, Index i2, Index i3, Index i4) const
 
EIGEN_DEVICE_FUNC bool operator== (const Tensor &other) const
 
EIGEN_DEVICE_FUNC Index rank () const
 
EIGEN_DEVICE_FUNC void resize (const Eigen::array< Index, NumIndices > &dimensions)
 
EIGEN_DEVICE_FUNC TensorsetConstant (const Scalar &val)
 
EIGEN_DEVICE_FUNC TensorsetRandom ()
 
EIGEN_DEVICE_FUNC TensorsetZero ()
 
EIGEN_DEVICE_FUNC Index size () const
 

Protected Types

typedef Eigen::Matrix< Scalar, Eigen::Dynamic, 1, Options > StorageType
 

Protected Attributes

Dimensions m_dimensions
 
StorageType m_storage
 

Detailed Description

template<typename Scalar_, int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
struct pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >

Definition at line 77 of file tensor.hpp.


The documentation for this struct was generated from the following file: