Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ > Class Template Reference

Detailed Description

template<typename Scalar_, int NumIndices_, int Options_, typename IndexType_>
class Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >

The tensor class.

The Tensor class is the work-horse for all dense tensors within Eigen.

The Tensor class encompasses only dynamic-size objects so far.

The first two template parameters are required:

Template Parameters
Scalar_
+ Inheritance diagram for Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >:

Public Member Functions

void resize (const array< Index, NumIndices > &dimensions)
 
template<typename std::ptrdiff_t... Indices>
void resize (const Sizes< Indices... > &dimensions)
 
 Tensor (const array< Index, NumIndices > &dimensions)
 

Constructor & Destructor Documentation

◆ Tensor()

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor ( const array< Index, NumIndices > &  dimensions)
inlineexplicit

Normal Dimension

Member Function Documentation

◆ resize() [1/2]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
void Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize ( const array< Index, NumIndices > &  dimensions)
inline

Normal Dimension

◆ resize() [2/2]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
template<typename std::ptrdiff_t... Indices>
void Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize ( const Sizes< Indices... > &  dimensions)
inline

Custom Dimension


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