![]() |
|
The tensor class. More...
#include <Tensor.h>
Classes | |
struct | isOfNormalIndex |
Public Types | |
enum | { IsAligned = (EIGEN_MAX_ALIGN_BYTES > 0) && !(Options_ & DontAlign) , 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 |
![]() | |
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 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, Index secondIndex, IndexTypes... otherIndices) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeff (const array< Index, NumIndices > &indices) const |
template<typename CustomIndices , EIGEN_SFINAE_ENABLE_IF(!(isOfNormalIndex< CustomIndices >::value)) > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeff (CustomIndices &indices) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeff () const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | coeff (Index index) const |
template<typename... IndexTypes> | |
Scalar & | coeffRef (Index firstIndex, Index secondIndex, IndexTypes... otherIndices) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef (const array< Index, NumIndices > &indices) |
template<typename CustomIndices , EIGEN_SFINAE_ENABLE_IF(!(isOfNormalIndex< CustomIndices >::value)) > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef (CustomIndices &indices) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | coeffRef (Index index) |
template<typename... IndexTypes> | |
const Scalar & | operator() (Index firstIndex, Index secondIndex, IndexTypes... otherIndices) const |
template<typename CustomIndices , EIGEN_SFINAE_ENABLE_IF(!(isOfNormalIndex< CustomIndices >::value)) > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & | operator() (CustomIndices &indices) 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> | |
Scalar & | operator() (Index firstIndex, Index secondIndex, IndexTypes... otherIndices) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | operator() (const array< Index, NumIndices > &indices) |
template<typename CustomIndices , EIGEN_SFINAE_ENABLE_IF(!(isOfNormalIndex< CustomIndices >::value)) > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & | operator() (CustomIndices &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 | Tensor () |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | Tensor (const Self &other) |
template<typename... IndexTypes> | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | Tensor (Index firstDimension, IndexTypes... otherDimensions) |
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 | Tensor (Self &&other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor & | operator= (Self &&other) |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor & | operator= (const Tensor &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor & | operator= (const OtherDerived &other) |
template<typename... IndexTypes> | |
EIGEN_DEVICE_FUNC void | resize (Index firstDimension, IndexTypes... otherDimensions) |
EIGEN_DEVICE_FUNC void | resize (const array< Index, NumIndices > &dimensions) |
EIGEN_DEVICE_FUNC void | resize () |
template<typename FirstType , typename... OtherTypes> | |
EIGEN_DEVICE_FUNC void | resize (const Eigen::IndexList< FirstType, OtherTypes... > &dimensions) |
template<typename CustomDimension , EIGEN_SFINAE_ENABLE_IF(!(isOfNormalIndex< CustomDimension >::value)) > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | resize (CustomDimension &dimensions) |
template<typename std::ptrdiff_t... Indices> | |
EIGEN_DEVICE_FUNC void | resize (const Sizes< Indices... > &dimensions) |
![]() | |
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_ > & | setValues (const typename internal::Initializer< Tensor< Scalar_, NumIndices_, Options_, IndexType_ >, NumDimensions >::InitList &vals) |
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 TensorRollOp< const Rolls, const Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > | roll (const Rolls &roll) const |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorRollOp< const Rolls, Tensor< Scalar_, NumIndices_, Options_, IndexType_ > > | roll (const Rolls &roll) |
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) |
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 |
Static Public Attributes | |
static constexpr int | Layout = Options_ & RowMajor ? RowMajor : ColMajor |
static constexpr int | Options = Options_ |
static constexpr int | NumIndices = NumIndices_ |
![]() | |
static constexpr 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 |
![]() | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & | operator= (const OtherDerived &other) |
Protected Attributes | |
TensorStorage< Scalar, Dimensions, Options > | m_storage |
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:
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.
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:
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
, EIGEN_TENSORBASE_PLUGIN
, and EIGEN_READONLY_TENSORBASE_PLUGIN
.
Some notes:
typedef TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexType_> > Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Base |
typedef Base::CoeffReturnType Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::CoeffReturnType |
typedef DSizes<Index, NumIndices_> Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Dimensions |
typedef internal::traits<Self>::Index Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Index |
typedef Eigen::internal::nested<Self>::type Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Nested |
typedef NumTraits<Scalar>::Real Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::RealScalar |
typedef Scalar_ Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Scalar |
typedef Tensor<Scalar_, NumIndices_, Options_, IndexType_> Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Self |
typedef internal::traits<Self>::StorageKind Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::StorageKind |
anonymous enum |
Enumerator | |
---|---|
IsAligned | |
CoordAccess | |
RawAccess |
|
inline |
|
inline |
|
inline |
References EIGEN_STATIC_ASSERT, and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices.
|
inlineexplicit |
Normal Dimension
References EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED.
|
inline |
References Eigen::TensorBase< Derived, AccessLevel >::derived(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), EIGEN_STATIC_ASSERT, Eigen::TensorBase< Tensor< Scalar_, NumIndices_, Options_, IndexType_ > >::NumDimensions, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize(), and Eigen::internal::TensorExecutor< Expression, Device, Vectorizable, Tiling >::run().
|
inline |
References Eigen::TensorBase< Derived, AccessLevel >::derived(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), EIGEN_STATIC_ASSERT, Eigen::TensorBase< Tensor< Scalar_, NumIndices_, Options_, IndexType_ > >::NumDimensions, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize(), and Eigen::internal::TensorExecutor< Expression, Device, Vectorizable, Tiling >::run().
|
inline |
|
inline |
|
inline |
|
inlineprotected |
References Eigen::internal::array_apply_and_reduce(), Eigen::internal::array_zip_and_reduce(), Eigen::TensorStorage< T, FixedDimensions, Options_ >::dimensions(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage.
Referenced by Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef().
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), EIGEN_STATIC_ASSERT, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage, and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices.
Referenced by Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator()(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator[]().
|
inline |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::checkIndexRange(), Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), eigen_internal_assert, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::linearizedIndex(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage.
|
inline |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff().
|
inline |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), EIGEN_STATIC_ASSERT, and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices.
Referenced by Eigen::internal::CoeffLoader< Tensor, HasRawAccess, MakePointer_ >::coeff(), Eigen::internal::TensorPrinter< Tensor, 0, Format >::run(), test_async_execute_binary_expr(), test_async_execute_unary_expr(), test_execute_binary_expr(), test_execute_broadcasting(), test_execute_broadcasting_of_forced_eval(), test_execute_generator_op(), test_execute_reshape(), test_execute_reverse_rvalue(), test_execute_shuffle_lvalue(), test_execute_shuffle_rvalue(), test_execute_slice_lvalue(), test_execute_slice_rvalue(), test_execute_unary_expr(), test_map_as_index(), test_matrix_as_index(), test_patch_padding_same_negative_padding_clip_to_zero(), test_simple_index_pairs(), test_sizes_as_index(), test_varlist_as_index(), VerifyBlockAssignment(), and VerifyBlockEvaluator().
|
inline |
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), EIGEN_STATIC_ASSERT, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage, and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices.
Referenced by Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator()(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator[]().
|
inline |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::checkIndexRange(), Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), eigen_internal_assert, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::linearizedIndex(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage.
|
inline |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef().
|
inline |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef(), EIGEN_STATIC_ASSERT, and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices.
Referenced by test_map_as_index(), test_matrix_as_index(), test_sizes_as_index(), and test_varlist_as_index().
|
inline |
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage.
Referenced by gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenQuaternionPrinter::children(), contraction_both_transposed(), contraction_lhs_transposed(), contraction_rhs_transposed(), main(), Eigen::internal::TensorPrinter< Tensor, rank, TensorIOFormatLegacy, std::enable_if_t< rank !=0 > >::run(), Eigen::internal::TensorPrinter< Tensor, rank, Format, EnableIf >::run(), test_0d(), test_0d_const_tensor_map(), test_1d(), test_1D_sycl(), test_2d(), test_2D_sycl(), test_3d(), test_argmax_dim(), test_argmin_dim(), test_assign_of_const_tensor(), test_assign_to_tensor(), test_assign_to_tensor_chipping(), test_assign_to_tensor_reshape(), test_assign_to_tensor_shuffle(), test_assign_to_tensor_slice(), test_async_multithread_contraction_agrees_with_singlethread(), test_async_multithread_volume_patch(), test_async_sharded_by_inner_dim_contraction(), test_async_sharded_by_inner_dim_contraction_with_output_kernel(), test_binary_builtins_fixed_arg2(), test_binary_builtins_func(), test_block_io_copy_data_from_source_to_target(), test_block_io_copy_using_reordered_dimensions(), test_block_io_copy_using_reordered_dimensions_do_not_squeeze(), test_block_io_copy_using_reordered_dimensions_squeeze(), test_block_io_squeeze_ones(), test_block_io_zero_stride(), test_boolean(), test_broadcast_sycl(), test_broadcast_sycl_fixed(), test_chip_as_lvalue_sycl(), test_chip_in_expr(), test_concatenation_as_lvalue(), test_consistency(), test_const_inputs(), test_contraction_corner_cases(), test_contraction_of_contraction(), test_contractions(), test_custom_binary_op_sycl(), test_custom_unary_op_sycl(), test_device_memory(), test_dynamic_chip_sycl(), test_entire_volume_patch_sycl(), test_evals(), test_expr(), test_expr_reverse(), test_first_dim_reductions_max_sycl(), test_first_dim_reductions_mean_sycl(), test_first_dim_reductions_sum_sycl(), test_forced_eval_sycl(), test_full_reductions_max_sycl(), test_full_reductions_mean_sycl(), test_full_reductions_min_sycl(), test_full_reductions_sum_sycl(), test_gaussian_sycl(), test_gpu_contractions(), test_gpu_elementwise(), test_gpu_forced_evals(), test_gpu_full_reductions(), test_gpu_numext(), test_gpu_reductions(), test_gpu_trancendental(), test_gpu_unary(), test_image_op_sycl(), test_imagenet_patches_sycl(), test_larg_expr1D(), test_larg_expr2D(), test_larg_expr3D(), test_large_contraction(), test_large_contraction_with_output_kernel(), test_last_dim_reductions_mean_sycl(), test_last_dim_reductions_sum_sycl(), test_matrix_vector(), test_memcpy(), test_modes(), test_multidims(), test_multiple_dims(), test_multithread_contraction(), test_multithread_contraction_agrees_with_singlethread(), test_multithread_contraction_with_output_kernel(), test_multithread_volume_patch(), test_no_out_of_bounds(), test_padded_expr(), test_patch_no_extra_dim(), test_patch_no_extra_dim_sycl(), test_patch_padding_same(), test_patch_padding_same_negative_padding_clip_to_zero(), test_patch_padding_same_sycl(), test_patch_padding_valid(), test_patch_padding_valid_same_value_sycl(), test_patch_padding_valid_sycl(), test_ref_of_ref(), test_reshape_as_lvalue(), test_reshape_in_expr(), test_same_type(), test_scalar(), test_sharded_by_inner_dim_contraction(), test_sharded_by_inner_dim_contraction_with_output_kernel(), test_sigmoid_sycl(), test_simple_assign(), test_simple_concatenation(), test_simple_image_patch_sycl(), test_simple_inflation_sycl(), test_simple_lvalue_ref(), test_simple_padding(), test_simple_patch(), test_simple_patch_sycl(), test_simple_reductions(), test_simple_reshape(), test_simple_reverse(), test_simple_rvalue_ref(), test_simple_shuffling_sycl(), test_simple_slice(), test_simple_striding(), test_simple_swap_sycl(), test_single_voxel_patch(), test_single_voxel_patch_sycl(), test_slice(), test_slice_in_expr(), test_slice_raw_data(), test_small_blocking_factors(), test_static_chip_sycl(), test_strided_slice_as_rhs_sycl(), test_strided_slice_write_sycl(), test_strides(), test_striding_as_lvalue(), test_swap_as_lvalue_sycl(), test_sycl_argmax_dim(), test_sycl_argmin_dim(), test_sycl_cast(), test_sycl_computations(), test_sycl_contraction(), test_sycl_cumsum(), test_sycl_mem_sync(), test_sycl_mem_transfers(), test_sycl_simple_argmax(), test_tanh_sycl(), test_tensor_vector(), test_unary_builtins_for_scalar(), test_unary_builtins_return_bool(), gdb.printers.EigenMatrixPrinter::to_string(), gdb.printers.EigenSparseMatrixPrinter::to_string(), gdb.printers.EigenQuaternionPrinter::to_string(), and VerifyBlockEvaluator().
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::data(), and Eigen::Tensor< Scalar_, NumIndices_, 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::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage, and n.
Referenced by InsertZeros< TensorType >::dimensions(), BatchMatMul< TensorType >::dimensions(), test_1D_fft_ifft_invariant(), test_1d_scan(), test_2D_fft_ifft_invariant(), test_3D_fft_ifft_invariant(), test_argmax_dim(), test_argmin_dim(), test_auto_resize(), test_composition(), test_concat(), test_contraction_of_contraction(), test_custom_unary_op(), test_dynamic_chip(), test_dynamic_chip_sycl(), test_empty_shuffling(), test_entire_volume_patch(), test_entire_volume_patch_sycl(), test_expr_reverse(), test_expr_roll(), test_expr_shuffling(), test_fft_complex_input_golden(), test_fft_real_input_energy(), test_fft_real_input_golden(), test_full_redux(), test_holes(), test_imagenet_patches(), test_imagenet_patches_sycl(), test_modes(), test_nested_ops_with_ref(), test_patch_no_extra_dim(), test_patch_no_extra_dim_sycl(), test_patch_padding_same(), test_patch_padding_same_negative_padding_clip_to_zero(), test_patch_padding_same_sycl(), test_patch_padding_valid(), test_patch_padding_valid_same_value(), test_patch_padding_valid_same_value_sycl(), test_patch_padding_valid_sycl(), test_reductions_in_expr(), test_simple_broadcasting(), test_simple_broadcasting_n_by_one(), test_simple_broadcasting_one_by_n(), test_simple_broadcasting_one_by_n_by_one_1d(), test_simple_broadcasting_one_by_n_by_one_2d(), test_simple_chip(), test_simple_concatenation(), test_simple_image_patch_sycl(), test_simple_inflation(), test_simple_inflation_sycl(), test_simple_padding(), test_simple_patch(), test_simple_patch_sycl(), test_simple_reductions(), test_simple_reverse(), test_simple_roll(), test_simple_shuffling(), test_simple_shuffling_sycl(), test_simple_striding(), test_simple_swap(), test_simple_swap_sycl(), test_simple_trace(), test_single_voxel_patch(), test_single_voxel_patch_sycl(), test_size_one_broadcasting(), test_static_broadcasting(), test_static_chip_sycl(), test_strides(), test_sub_fft_ifft_invariant(), test_swap_as_lvalue(), test_swap_as_lvalue_sycl(), test_sycl_argmax_dim(), test_sycl_argmin_dim(), test_tensor_product(), test_trace_in_expr(), test_trivial_reductions(), test_user_defined_reductions(), and test_vectorized_broadcasting().
|
inline |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::dimensions(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage.
Referenced by Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator=(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize(), Eigen::internal::TensorPrinter< Tensor, rank, TensorIOFormatLegacy, std::enable_if_t< rank !=0 > >::run(), Eigen::internal::TensorPrinter< Tensor, rank, Format, EnableIf >::run(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor(), test_2d(), test_3d(), test_async_execute_binary_expr(), test_async_execute_unary_expr(), test_async_multithread_contraction_agrees_with_singlethread(), test_async_sharded_by_inner_dim_contraction(), test_async_sharded_by_inner_dim_contraction_with_output_kernel(), test_broadcast_sycl(), test_broadcast_sycl_fixed(), test_composition(), test_concatenation_as_lvalue(), test_contractions(), test_custom_binary_op_sycl(), test_custom_unary_op_sycl(), test_execute_binary_expr(), test_execute_broadcasting(), test_execute_broadcasting_of_forced_eval(), test_execute_generator_op(), test_execute_reshape(), test_execute_reverse_rvalue(), test_execute_shuffle_lvalue(), test_execute_shuffle_rvalue(), test_execute_slice_lvalue(), test_execute_slice_rvalue(), test_execute_unary_expr(), test_expr_reverse(), test_expr_roll(), test_first_dim_reductions_max_sycl(), test_first_dim_reductions_mean_sycl(), test_first_dim_reductions_sum_sycl(), test_forced_eval_sycl(), test_full_contraction(), test_full_reductions_max_sycl(), test_full_reductions_mean_sycl(), test_full_reductions_min_sycl(), test_full_reductions_sum_sycl(), test_large_contraction(), test_large_contraction_with_output_kernel(), test_last_dim_reductions_mean_sycl(), test_last_dim_reductions_sum_sycl(), test_matrix_vector(), test_modes(), test_multithread_contraction_agrees_with_singlethread(), test_multithread_contraction_with_output_kernel(), test_sharded_by_inner_dim_contraction(), test_sharded_by_inner_dim_contraction_with_output_kernel(), test_simple_concatenation(), test_simple_reverse(), test_small_blocking_factors(), test_strides(), test_tensor_vector(), VerifyBlockAssignment(), and VerifyBlockEvaluator().
|
inlineprotected |
References Eigen::TensorStorage< T, FixedDimensions, Options_ >::dimensions(), Eigen::DSizes< DenseIndex, NumDims >::IndexOfColMajor(), Eigen::DSizes< DenseIndex, NumDims >::IndexOfRowMajor(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Options, and Eigen::RowMajor.
Referenced by Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References EIGEN_STATIC_ASSERT, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices, and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator()().
|
inline |
References EIGEN_STATIC_ASSERT, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices, and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator()().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References EIGEN_STATIC_ASSERT, and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices.
Referenced by Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator=(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor().
|
inline |
Normal Dimension
References Eigen::internal::array_prod(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED, i, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices, run(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::size().
|
inline |
|
inline |
|
inline |
|
inline |
References EIGEN_STATIC_ASSERT, Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::NumIndices, and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize().
Referenced by test_0d(), test_1d(), test_contraction_corner_cases(), test_fft_non_power_of_2_round_trip(), test_fft_real_input_energy(), test_imagenet_patches(), test_imagenet_patches_sycl(), test_static_broadcasting(), and test_vectorized_broadcasting().
|
inline |
References Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::m_storage, and Eigen::TensorStorage< T, FixedDimensions, Options_ >::size().
Referenced by Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef(), contraction_both_transposed(), contraction_lhs_transposed(), contraction_rhs_transposed(), main(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator()(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize(), test_0d(), test_0d_const_tensor(), test_1D_sycl(), test_2d(), test_3d(), test_argmax_dim(), test_argmin_dim(), test_async_multithread_contraction_agrees_with_singlethread(), test_async_multithread_volume_patch(), test_binary_builtins_fixed_arg2(), test_binary_builtins_func(), test_broadcast_sycl(), test_broadcast_sycl_fixed(), test_chip_as_lvalue_sycl(), test_chip_in_expr(), test_contraction_corner_cases(), test_device_memory(), test_dynamic_chip_sycl(), test_dynamic_index_list(), test_entire_volume_patch_sycl(), test_evals(), test_expr(), test_first_dim_reductions_sum_sycl(), test_image_op_sycl(), test_imagenet_patches_sycl(), test_index_pairs_dim(), test_larg_expr1D(), test_larg_expr2D(), test_larg_expr3D(), test_modes(), test_move(), test_multithread_contraction(), test_multithread_contraction_agrees_with_singlethread(), test_multithread_volume_patch(), test_no_out_of_bounds(), test_padded_expr(), test_patch_no_extra_dim(), test_patch_no_extra_dim_sycl(), test_patch_padding_same(), test_patch_padding_same_negative_padding_clip_to_zero(), test_patch_padding_same_sycl(), test_patch_padding_valid(), test_patch_padding_valid_same_value_sycl(), test_patch_padding_valid_sycl(), test_reshape_as_lvalue(), test_scalar(), test_sigmoid_sycl(), test_simple_image_patch_sycl(), test_simple_inflation_sycl(), test_simple_padding(), test_simple_patch(), test_simple_patch_sycl(), test_simple_reshape(), test_simple_shuffling_sycl(), test_simple_slice(), test_simple_striding(), test_simple_swap_sycl(), test_single_voxel_patch(), test_single_voxel_patch_sycl(), test_static_chip_sycl(), test_static_index_list(), test_strided_slice_as_rhs_sycl(), test_strided_slice_write_sycl(), test_strides(), test_striding_as_lvalue(), test_swap_as_lvalue_sycl(), test_sycl_argmax_dim(), test_sycl_argmin_dim(), test_sycl_cast(), test_sycl_computations(), test_sycl_contraction(), test_sycl_cumsum(), test_sycl_mem_sync(), test_sycl_mem_transfers(), test_sycl_simple_argmax(), test_tanh_sycl(), test_unary_builtins_for_scalar(), and test_unary_builtins_return_bool().
|
staticconstexpr |
|
protected |
Referenced by Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::checkIndexRange(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::data(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimension(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::dimensions(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::linearizedIndex(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator=(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::size().
|
staticconstexpr |
Referenced by Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeff(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::coeffRef(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator()(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::operator[](), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::rank(), Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::resize(), and Eigen::Tensor< Scalar_, NumIndices_, Options_, IndexType_ >::Tensor().
|
staticconstexpr |