![]() |
|
The fixed sized version of the tensor class. More...
#include <TensorFixedSize.h>
Public Types | |
enum | { IsAligned = bool(EIGEN_MAX_ALIGN_BYTES > 0) , PacketAccess = (internal::packet_traits<Scalar>::size > 1) , BlockAccess = false , PreferBlockAccess = false , CoordAccess = true , RawAccess = true } |
typedef TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > | Self |
typedef TensorBase< TensorFixedSize< Scalar_, Dimensions_, 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 internal::TensorBlockNotImplemented | TensorBlock |
typedef Dimensions_ | Dimensions |
![]() | |
typedef TensorBase< TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >, ReadOnlyAccessors > | Base |
typedef internal::traits< TensorFixedSize< Scalar_, Dimensions_, 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 Dimensions | dimensions () const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index | size () const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * | data () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * | data () const |
Self & | base () |
const Self & | base () const |
template<typename... IndexTypes> | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeff (Index firstIndex, IndexTypes... otherIndices) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeff (const array< Index, NumIndices > &indices) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeff (Index index) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeff () const |
template<typename... IndexTypes> | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef (Index firstIndex, IndexTypes... otherIndices) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef (const array< Index, NumIndices > &indices) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef (Index index) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef () |
template<typename... IndexTypes> | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | operator() (Index firstIndex, IndexTypes... otherIndices) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | operator() (const array< Index, NumIndices > &indices) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | operator() (Index index) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | operator() () const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | operator[] (Index index) const |
template<typename... IndexTypes> | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | operator() (Index firstIndex, IndexTypes... otherIndices) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | operator() (const array< Index, NumIndices > &indices) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | operator() (Index index) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | operator() () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | operator[] (Index index) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | TensorFixedSize () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | TensorFixedSize (const Self &other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | TensorFixedSize (Self &&other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | TensorFixedSize (const TensorBase< OtherDerived, ReadOnlyAccessors > &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | TensorFixedSize (const TensorBase< OtherDerived, WriteAccessors > &other) |
![]() | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | setZero () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | setConstant (const Scalar &val) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | setRandom () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | setRandom () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | setValues (const typename internal::Initializer< TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >, NumDimensions >::InitList &vals) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | operator+= (const OtherDerived &other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | operator-= (const OtherDerived &other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | operator*= (const OtherDerived &other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | operator/= (const OtherDerived &other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorLayoutSwapOp< const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | swap_layout () const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorLayoutSwapOp< TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | swap_layout () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorConcatenationOp< const Axis, const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >, const OtherDerived > | concatenate (const OtherDerived &other, const Axis &axis) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorConcatenationOp< const Axis, TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >, OtherDerived > | concatenate (const OtherDerived &other, const Axis &axis) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorReshapingOp< const NewDimensions, const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | reshape (const NewDimensions &newDimensions) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorReshapingOp< const NewDimensions, TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | reshape (const NewDimensions &newDimensions) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorSlicingOp< const StartIndices, const Sizes, const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | slice (const StartIndices &startIndices, const Sizes &sizes) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorSlicingOp< const StartIndices, const Sizes, TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | slice (const StartIndices &startIndices, const Sizes &sizes) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorStridingSlicingOp< const StartIndices, const StopIndices, const Strides, const TensorFixedSize< Scalar_, Dimensions_, 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, TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | stridedSlice (const StartIndices &startIndices, const StopIndices &stopIndices, const Strides &strides) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorChippingOp< DimId, const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | chip (const Index offset) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorChippingOp< DimId, TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | chip (const Index offset) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorChippingOp< Dynamic, const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | chip (const Index offset, const Index dim) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorChippingOp< Dynamic, TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | chip (const Index offset, const Index dim) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorReverseOp< const ReverseDimensions, const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | reverse (const ReverseDimensions &rev) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorReverseOp< const ReverseDimensions, TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | reverse (const ReverseDimensions &rev) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorRollOp< const Rolls, const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | roll (const Rolls &roll) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorRollOp< const Rolls, TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | roll (const Rolls &roll) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorShufflingOp< const Shuffle, const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | shuffle (const Shuffle &shfl) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorShufflingOp< const Shuffle, TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | shuffle (const Shuffle &shfl) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorStridingOp< const Strides, const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | stride (const Strides &strides) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorStridingOp< const Strides, TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > > | stride (const Strides &strides) |
TensorDevice< TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >, DeviceType > | device (const DeviceType &dev) |
TensorAsyncDevice< TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >, DeviceType, DoneCallback > | device (const DeviceType &dev, DoneCallback done) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | derived () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | derived () const |
Static Public Attributes | |
static constexpr int | Options = Options_ |
static constexpr int | Layout = Options_ & RowMajor ? RowMajor : ColMajor |
static constexpr std::size_t | NumIndices = Dimensions::count |
![]() | |
static constexpr int | NumDimensions |
Protected Member Functions | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE bool | checkIndexRange (const array< Index, NumIndices > &) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index | linearizedIndex (const array< Index, NumIndices > &indices) const |
![]() | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType > & | operator= (const OtherDerived &other) |
Protected Attributes | |
TensorStorage< Scalar, Dimensions, Options > | m_storage |
The fixed sized version of the tensor class.
The fixed sized equivalent of Eigen::Tensor<float, 3> t(3, 5, 7); is Eigen::TensorFixedSize<float, Sizes<3,5,7>> t;
typedef TensorBase<TensorFixedSize<Scalar_, Dimensions_, Options_, IndexType> > Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::Base |
typedef Base::CoeffReturnType Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::CoeffReturnType |
typedef Dimensions_ Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::Dimensions |
typedef internal::traits<Self>::Index Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::Index |
typedef Eigen::internal::nested<Self>::type Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::Nested |
typedef NumTraits<Scalar>::Real Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::RealScalar |
typedef Scalar_ Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::Scalar |
typedef TensorFixedSize<Scalar_, Dimensions_, Options_, IndexType> Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::Self |
typedef internal::traits<Self>::StorageKind Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::StorageKind |
typedef internal::TensorBlockNotImplemented Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::TensorBlock |
anonymous enum |
|
inline |
|
inline |
|
inline |
|
inline |
References Eigen::TensorBase< Derived, AccessLevel >::derived(), and Eigen::internal::TensorExecutor< Expression, Device, Vectorizable, Tiling >::run().
|
inline |
|
inline |
|
inline |
|
inlineprotected |
References Eigen::internal::array_apply_and_reduce(), and Eigen::internal::array_zip_and_reduce().
Referenced by Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeff(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeffRef(), and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::operator()().
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), EIGEN_STATIC_ASSERT, Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::m_storage, and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::NumIndices.
Referenced by Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeff(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::operator()(), and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::operator[]().
|
inline |
References Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::checkIndexRange(), Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), eigen_internal_assert, Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::linearizedIndex(), and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::m_storage.
|
inline |
References Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeff(), EIGEN_STATIC_ASSERT, and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::NumIndices.
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), eigen_internal_assert, Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::m_storage, and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::size().
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), EIGEN_STATIC_ASSERT, Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::m_storage, and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::NumIndices.
Referenced by Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeffRef(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::operator()(), and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::operator[]().
|
inline |
References Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::checkIndexRange(), Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), eigen_internal_assert, Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::linearizedIndex(), and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::m_storage.
|
inline |
References Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeffRef(), EIGEN_STATIC_ASSERT, and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::NumIndices.
|
inline |
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::m_storage.
Referenced by gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenQuaternionPrinter::children(), test_0d(), test_fixed_size_broadcasting(), test_full_reductions_custom_sycl(), test_last_reductions_mean_sycl(), test_last_reductions_sum_sycl(), test_same_type(), gdb.printers.EigenMatrixPrinter::to_string(), gdb.printers.EigenSparseMatrixPrinter::to_string(), and gdb.printers.EigenQuaternionPrinter::to_string().
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::m_storage.
Referenced by gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenQuaternionPrinter::children(), gdb.printers.EigenMatrixPrinter::to_string(), gdb.printers.EigenSparseMatrixPrinter::to_string(), and gdb.printers.EigenQuaternionPrinter::to_string().
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::dimensions(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::m_storage, and n.
|
inline |
|
inlineprotected |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::dimensions(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::m_storage, Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::Options, and Eigen::RowMajor.
Referenced by Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeff(), and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeffRef().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References EIGEN_STATIC_ASSERT, Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::NumIndices, and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::operator()().
|
inline |
References EIGEN_STATIC_ASSERT, Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::NumIndices, and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::operator()().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::m_storage, and Eigen::TensorStorage< T, FixedDimensions, Options_ >::size().
Referenced by Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeff(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeffRef(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::operator()(), test_0d(), test_1d(), test_2d(), and test_3d().
|
staticconstexpr |
|
protected |
Referenced by Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeff(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeffRef(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::data(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::dimension(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::dimensions(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::linearizedIndex(), and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::size().
|
staticconstexpr |
Referenced by Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeff(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::coeffRef(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::operator()(), Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::operator[](), and Eigen::TensorFixedSize< Scalar_, Dimensions_, Options_, IndexType >::rank().
|
staticconstexpr |