TR-mbed 1.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ > Class Template Reference

The tensor class. More...

#include <Tensor.h>

Inheritance diagram for Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >:
Eigen::TensorBase< Tensor< Scalar_, NumIndices_, Options_, IndexType_ > >

Public Types

enum  { IsAligned = bool(EIGEN_MAX_ALIGN_BYTES>0) & !(Options_&DontAlign) , Layout = Options_ & RowMajor ? RowMajor : ColMajor , CoordAccess = true , RawAccess = true }
 
typedef Tensor< Scalar_, NumIndices_, Options_, IndexType_ > Self
 
typedef TensorBase< Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > Base
 
typedef Eigen::internal::nested< Self >::type Nested
 
typedef internal::traits< Self >::StorageKind StorageKind
 
typedef internal::traits< Self >::Index Index
 
typedef Scalar_ Scalar
 
typedef NumTraits< Scalar >::Real RealScalar
 
typedef Base::CoeffReturnType CoeffReturnType
 
typedef DSizes< Index, NumIndices_ > Dimensions
 
- Public Types inherited from Eigen::TensorBase< Tensor< Scalar_, NumIndices_, Options_, IndexType_ > >
typedef TensorBase< Tensor< Scalar_, NumIndices_, Options_, IndexType_ >, ReadOnlyAccessors > Base
 
typedef internal::traits< Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > DerivedTraits
 
typedef DerivedTraits::Scalar Scalar
 
typedef DerivedTraits::Index Index
 
typedef Scalar CoeffReturnType
 

Public Member Functions

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rank () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index dimension (std::size_t n) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensionsdimensions () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index size () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalardata ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalardata () const
 
Selfbase ()
 
const Selfbase () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalarcoeff (const array< Index, NumIndices > &indices) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalarcoeff () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalarcoeff (Index index) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ScalarcoeffRef (const array< Index, NumIndices > &indices)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ScalarcoeffRef ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ScalarcoeffRef (Index index)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalaroperator() (Index i0, Index i1) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalaroperator() (Index i0, Index i1, Index i2) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalaroperator() (Index i0, Index i1, Index i2, Index i3) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalaroperator() (Index i0, Index i1, Index i2, Index i3, Index i4) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalaroperator() (const array< Index, NumIndices > &indices) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalaroperator() (Index index) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalaroperator() () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalaroperator[] (Index index) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalaroperator() (Index i0, Index i1)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalaroperator() (Index i0, Index i1, Index i2)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalaroperator() (Index i0, Index i1, Index i2, Index i3)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalaroperator() (Index i0, Index i1, Index i2, Index i3, Index i4)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalaroperator() (const array< Index, NumIndices > &indices)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalaroperator() (Index index)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalaroperator() ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalaroperator[] (Index index)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor (const Self &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)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor (const array< Index, NumIndices > &dimensions)
 
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor (const TensorBase< OtherDerived, ReadOnlyAccessors > &other)
 
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor (const TensorBase< OtherDerived, WriteAccessors > &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensoroperator= (const Tensor &other)
 
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensoroperator= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC void resize (const array< Index, NumIndices > &dimensions)
 
EIGEN_DEVICE_FUNC void resize (const DSizes< Index, NumIndices > &dimensions)
 
EIGEN_DEVICE_FUNC void resize ()
 
template<typename std::ptrdiff_t... Indices>
EIGEN_DEVICE_FUNC void resize (const Sizes< Indices... > &dimensions)
 
- Public Member Functions inherited from Eigen::TensorBase< Tensor< Scalar_, NumIndices_, Options_, IndexType_ > >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & setZero ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & setConstant (const Scalar &val)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & setRandom ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & setRandom ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & operator+= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & operator-= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & operator*= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & operator/= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorLayoutSwapOp< const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > swap_layout () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorLayoutSwapOp< Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > swap_layout ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorConcatenationOp< const Axis, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ >, const OtherDerived > concatenate (const OtherDerived &other, const Axis &axis) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConcatenationOp< const Axis, Tensor< Scalar_, NumIndices_, Options_, IndexType_ >, OtherDerived > concatenate (const OtherDerived &other, const Axis &axis)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorReshapingOp< const NewDimensions, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > reshape (const NewDimensions &newDimensions) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorReshapingOp< const NewDimensions, Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > reshape (const NewDimensions &newDimensions)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorSlicingOp< const StartIndices, const Sizes, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > slice (const StartIndices &startIndices, const Sizes &sizes) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorSlicingOp< const StartIndices, const Sizes, Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > slice (const StartIndices &startIndices, const Sizes &sizes)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorStridingSlicingOp< const StartIndices, const StopIndices, const Strides, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > stridedSlice (const StartIndices &startIndices, const StopIndices &stopIndices, const Strides &strides) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorStridingSlicingOp< const StartIndices, const StopIndices, const Strides, Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > stridedSlice (const StartIndices &startIndices, const StopIndices &stopIndices, const Strides &strides)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorChippingOp< DimId, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > chip (const Index offset) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorChippingOp< DimId, Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > chip (const Index offset)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorChippingOp< Dynamic, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > chip (const Index offset, const Index dim) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorChippingOp< Dynamic, Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > chip (const Index offset, const Index dim)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorReverseOp< const ReverseDimensions, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > reverse (const ReverseDimensions &rev) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorReverseOp< const ReverseDimensions, Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > reverse (const ReverseDimensions &rev)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorShufflingOp< const Shuffle, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > shuffle (const Shuffle &shfl) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorShufflingOp< const Shuffle, Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > shuffle (const Shuffle &shfl)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorStridingOp< const Strides, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > stride (const Strides &strides) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorStridingOp< const Strides, Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > stride (const Strides &strides)
 
TensorDevice< Tensor< Scalar_, NumIndices_, Options_, IndexType_ >, DeviceType > device (const DeviceType &dev)
 
TensorAsyncDevice< Tensor< Scalar_, NumIndices_, Options_, IndexType_ >, DeviceType, DoneCallback > device (const DeviceType &dev, DoneCallback done)
 

Static Public Attributes

static const int Options = Options_
 
static const int NumIndices = NumIndices_
 
- Static Public Attributes inherited from Eigen::TensorBase< Tensor< Scalar_, NumIndices_, Options_, IndexType_ > >
static const int NumDimensions
 

Protected Member Functions

bool checkIndexRange (const array< Index, NumIndices > &indices) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index linearizedIndex (const array< Index, NumIndices > &indices) const
 
- Protected Member Functions inherited from Eigen::TensorBase< Tensor< Scalar_, NumIndices_, Options_, IndexType_ > >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & operator= (const OtherDerived &other)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & derived ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & derived () const
 

Protected Attributes

TensorStorage< Scalar, Dimensions, Optionsm_storage
 

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_Numeric type, e.g. float, double, int or std::complex<float>. User defined scalar types are supported as well (see here).
NumIndices_Number of indices (i.e. rank of the tensor)

The remaining template parameters are optional – in most cases you don't have to worry about them.

Template Parameters
Options_A combination of either RowMajor or ColMajor, and of either AutoAlign or DontAlign. The former controls storage order, and defaults to column-major. The latter controls alignment, which is required for vectorization. It defaults to aligning tensors. Note that tensors currently do not support any operations that profit from vectorization. Support for such operations (i.e. adding two tensors etc.) is planned.

You can access elements of tensors using normal subscripting:

Eigen::Tensor<double, 4> t(10, 10, 10, 10);
t(0, 1, 2, 3) = 42.0;
The tensor class.
Definition Tensor.h:64

This class can be extended with the help of the plugin mechanism described on the page Extending MatrixBase (and other classes) by defining the preprocessor symbol EIGEN_TENSOR_PLUGIN.

Some notes:

Relation to other parts of Eigen:
The midterm development goal for this class is to have a similar hierarchy as Eigen uses for matrices, so that taking blocks or using tensors in expressions is easily possible, including an interface with the vector/matrix code by providing .asMatrix() and .asVector() (or similar) methods for rank 2 and 1 tensors. However, currently, the Tensor class does not provide any of these features and is only available as a stand-alone class that just allows for coefficient access. Also, when fixed-size tensors are implemented, the number of template arguments is likely to change dramatically.

TopicStorageOrders

Member Typedef Documentation

◆ Base

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
typedef TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexType_> > Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Base

◆ CoeffReturnType

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
typedef Base::CoeffReturnType Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::CoeffReturnType

◆ Dimensions

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
typedef DSizes<Index, NumIndices_> Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Dimensions

◆ Index

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
typedef internal::traits<Self>::Index Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Index

◆ Nested

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
typedef Eigen::internal::nested<Self>::type Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Nested

◆ RealScalar

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
typedef NumTraits<Scalar>::Real Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::RealScalar

◆ Scalar

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

◆ Self

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

◆ StorageKind

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
typedef internal::traits<Self>::StorageKind Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::StorageKind

Member Enumeration Documentation

◆ anonymous enum

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
anonymous enum
Enumerator
IsAligned 
Layout 
CoordAccess 
RawAccess 

Constructor & Destructor Documentation

◆ Tensor() [1/10]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor ( )
inline

◆ Tensor() [2/10]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor ( const Self other)
inline

◆ Tensor() [3/10]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor ( Index  dim1)
inlineexplicit

◆ Tensor() [4/10]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor ( Index  dim1,
Index  dim2 
)
inline

◆ Tensor() [5/10]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor ( Index  dim1,
Index  dim2,
Index  dim3 
)
inline

◆ Tensor() [6/10]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor ( Index  dim1,
Index  dim2,
Index  dim3,
Index  dim4 
)
inline

◆ Tensor() [7/10]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor ( Index  dim1,
Index  dim2,
Index  dim3,
Index  dim4,
Index  dim5 
)
inline

◆ Tensor() [8/10]

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

Normal Dimension

◆ Tensor() [9/10]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor ( const TensorBase< OtherDerived, ReadOnlyAccessors > &  other)
inline

◆ Tensor() [10/10]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor ( const TensorBase< OtherDerived, WriteAccessors > &  other)
inline

Member Function Documentation

◆ base() [1/2]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
Self & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::base ( )
inline

◆ base() [2/2]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
const Self & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::base ( ) const
inline

◆ checkIndexRange()

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
bool Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::checkIndexRange ( const array< Index, NumIndices > &  indices) const
inlineprotected

◆ coeff() [1/3]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff ( ) const
inline

◆ coeff() [2/3]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff ( const array< Index, NumIndices > &  indices) const
inline

◆ coeff() [3/3]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff ( Index  index) const
inline

◆ coeffRef() [1/3]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef ( )
inline

◆ coeffRef() [2/3]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef ( const array< Index, NumIndices > &  indices)
inline

◆ coeffRef() [3/3]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef ( Index  index)
inline

◆ data() [1/2]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::data ( )
inline

◆ data() [2/2]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::data ( ) const
inline

◆ dimension()

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimension ( std::size_t  n) const
inline

◆ dimensions()

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions ( ) const
inline

◆ linearizedIndex()

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::linearizedIndex ( const array< Index, NumIndices > &  indices) const
inlineprotected

◆ operator()() [1/14]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator() ( )
inline

◆ operator()() [2/14]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator() ( ) const
inline

◆ operator()() [3/14]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator() ( const array< Index, NumIndices > &  indices)
inline

◆ operator()() [4/14]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator() ( const array< Index, NumIndices > &  indices) const
inline

◆ operator()() [5/14]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator() ( Index  i0,
Index  i1 
)
inline

◆ operator()() [6/14]

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

◆ operator()() [7/14]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator() ( Index  i0,
Index  i1,
Index  i2 
)
inline

◆ operator()() [8/14]

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

◆ operator()() [9/14]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator() ( Index  i0,
Index  i1,
Index  i2,
Index  i3 
)
inline

◆ operator()() [10/14]

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

◆ operator()() [11/14]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator() ( Index  i0,
Index  i1,
Index  i2,
Index  i3,
Index  i4 
)
inline

◆ operator()() [12/14]

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

◆ operator()() [13/14]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator() ( Index  index)
inline

◆ operator()() [14/14]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator() ( Index  index) const
inline

◆ operator=() [1/2]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
template<typename OtherDerived >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator= ( const OtherDerived &  other)
inline

◆ operator=() [2/2]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator= ( const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > &  other)
inline

◆ operator[]() [1/2]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator[] ( Index  index)
inline

◆ operator[]() [2/2]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator[] ( Index  index) const
inline

◆ rank()

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::rank ( ) const
inline

◆ resize() [1/4]

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC void Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize ( )
inline

◆ resize() [2/4]

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

Normal Dimension

◆ resize() [3/4]

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

◆ resize() [4/4]

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

Custom Dimension

◆ size()

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::size ( ) const
inline

Member Data Documentation

◆ m_storage

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
TensorStorage<Scalar, Dimensions, Options> Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage
protected

◆ NumIndices

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
const int Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices = NumIndices_
static

◆ Options

template<typename Scalar_ , int NumIndices_, int Options_, typename IndexType_ >
const int Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Options = Options_
static

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