Eigen::TensorStorage< T, FixedDimensions, Options_ > Class Template Reference

Stores the data of a tensor. More...

#include <TensorStorage.h>

Public Member Functions

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorStorage ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tdata ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Tdata () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const FixedDimensions dimensions () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex size () const
 

Private Attributes

EIGEN_ALIGN_MAX T m_data [MinSize]
 

Static Private Attributes

static constexpr std::size_t Size = FixedDimensions::total_size
 
static constexpr std::size_t MinSize = max_n_1<Size>::size
 

Detailed Description

template<typename T, typename FixedDimensions, int Options_>
class Eigen::TensorStorage< T, FixedDimensions, Options_ >

Stores the data of a tensor.

This class stores the data of fixed-size, dynamic-size or mixed tensors in a way as compact as possible.

See also
Tensor

Constructor & Destructor Documentation

◆ TensorStorage()

template<typename T , typename FixedDimensions , int Options_>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::TensorStorage< T, FixedDimensions, Options_ >::TensorStorage ( )
inline
51 {}

Member Function Documentation

◆ data() [1/2]

◆ data() [2/2]

◆ dimensions()

◆ size()

Member Data Documentation

◆ m_data

◆ MinSize

template<typename T , typename FixedDimensions , int Options_>
constexpr std::size_t Eigen::TensorStorage< T, FixedDimensions, Options_ >::MinSize = max_n_1<Size>::size
staticconstexprprivate

◆ Size

template<typename T , typename FixedDimensions , int Options_>
constexpr std::size_t Eigen::TensorStorage< T, FixedDimensions, Options_ >::Size = FixedDimensions::total_size
staticconstexprprivate

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