Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Attributes | List of all members
pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType > Struct Template Reference

#include <tensor.hpp>

Public Types

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

Public Member Functions

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

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef Scalar_ Scalar
 

Protected Types

typedef Eigen::Matrix< Scalar, Eigen::Dynamic, 1, OptionsStorageType
 

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 103 of file tensor.hpp.

Member Typedef Documentation

◆ Dimensions

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
typedef Eigen::array<Index, NumIndices_> pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::Dimensions

Definition at line 114 of file tensor.hpp.

◆ Index

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

Definition at line 113 of file tensor.hpp.

◆ StorageType

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1, Options> pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::StorageType
protected

Definition at line 319 of file tensor.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
anonymous enum
Enumerator
Options 
NumIndices 

Definition at line 108 of file tensor.hpp.

Constructor & Destructor Documentation

◆ Tensor() [1/7]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::Tensor ( )
inline

Definition at line 180 of file tensor.hpp.

◆ Tensor() [2/7]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::Tensor ( const Tensor< Scalar_, NumIndices_, Options_, IndexType > &  other)
inline

Definition at line 185 of file tensor.hpp.

◆ Tensor() [3/7]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::Tensor ( Index  dim1)
inlineexplicit

Definition at line 191 of file tensor.hpp.

◆ Tensor() [4/7]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::Tensor ( Index  dim1,
Index  dim2 
)
inline

Definition at line 198 of file tensor.hpp.

◆ Tensor() [5/7]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::Tensor ( Index  dim1,
Index  dim2,
Index  dim3 
)
inline

Definition at line 206 of file tensor.hpp.

◆ Tensor() [6/7]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::Tensor ( Index  dim1,
Index  dim2,
Index  dim3,
Index  dim4 
)
inline

Definition at line 215 of file tensor.hpp.

◆ Tensor() [7/7]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::Tensor ( Index  dim1,
Index  dim2,
Index  dim3,
Index  dim4,
Index  dim5 
)
inline

Definition at line 226 of file tensor.hpp.

Member Function Documentation

◆ base() [1/2]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
Tensor& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::base ( )
inline

Definition at line 116 of file tensor.hpp.

◆ base() [2/2]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
const Tensor& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::base ( ) const
inline

Definition at line 120 of file tensor.hpp.

◆ data() [1/2]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar* pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::data ( )
inline

Definition at line 150 of file tensor.hpp.

◆ data() [2/2]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Scalar* pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::data ( ) const
inline

Definition at line 155 of file tensor.hpp.

◆ dimension()

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::dimension ( std::size_t  n) const
inline

Definition at line 139 of file tensor.hpp.

◆ dimensions() [1/2]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Dimensions& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::dimensions ( )
inline

Definition at line 125 of file tensor.hpp.

◆ dimensions() [2/2]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Dimensions& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::dimensions ( ) const
inline

Definition at line 129 of file tensor.hpp.

◆ operator!=()

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC bool pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::operator!= ( const Tensor< Scalar_, NumIndices_, Options_, IndexType > &  other) const
inline

Definition at line 313 of file tensor.hpp.

◆ operator()() [1/5]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Scalar& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::operator() ( Index  i0) const
inline

Definition at line 238 of file tensor.hpp.

◆ operator()() [2/5]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Scalar& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::operator() ( Index  i0,
Index  i1 
) const
inline

Definition at line 245 of file tensor.hpp.

◆ operator()() [3/5]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Scalar& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::operator() ( Index  i0,
Index  i1,
Index  i2 
) const
inline

Definition at line 252 of file tensor.hpp.

◆ operator()() [4/5]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Scalar& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::operator() ( Index  i0,
Index  i1,
Index  i2,
Index  i3 
) const
inline

Definition at line 259 of file tensor.hpp.

◆ operator()() [5/5]

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Scalar& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::operator() ( Index  i0,
Index  i1,
Index  i2,
Index  i3,
Index  i4 
) const
inline

Definition at line 269 of file tensor.hpp.

◆ operator==()

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC bool pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::operator== ( const Tensor< Scalar_, NumIndices_, Options_, IndexType > &  other) const
inline

Definition at line 308 of file tensor.hpp.

◆ rank()

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::rank ( ) const
inline

Definition at line 134 of file tensor.hpp.

◆ resize()

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC void pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::resize ( const Eigen::array< Index, NumIndices > &  dimensions)
inline

Definition at line 279 of file tensor.hpp.

◆ setConstant()

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::setConstant ( const Scalar val)
inline

Definition at line 167 of file tensor.hpp.

◆ setRandom()

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::setRandom ( )
inline

Definition at line 174 of file tensor.hpp.

◆ setZero()

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor& pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::setZero ( )
inline

Definition at line 161 of file tensor.hpp.

◆ size()

template<typename Scalar_ , int NumIndices_, int Options_ = 0, typename IndexType = Eigen::DenseIndex>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index pinocchio::Tensor< Scalar_, NumIndices_, Options_, IndexType >::size ( ) const
inline

Definition at line 145 of file tensor.hpp.

Member Data Documentation

◆ m_dimensions

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

Definition at line 322 of file tensor.hpp.

◆ m_storage

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

Definition at line 320 of file tensor.hpp.

◆ Scalar

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

Definition at line 107 of file tensor.hpp.


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


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:15