|
|
|
@ -16,17 +16,6 @@ struct TTypes {
|
|
|
|
|
Eigen::Tensor<const T, NDIMS, Eigen::RowMajor, IndexType>, Eigen::Aligned>
|
|
|
|
|
ConstTensor;
|
|
|
|
|
|
|
|
|
|
// Unaligned Rank-<NDIMS> tensor of scalar type T.
|
|
|
|
|
typedef Eigen::TensorMap<Eigen::Tensor<T, NDIMS, Eigen::RowMajor, IndexType>>
|
|
|
|
|
UnalignedTensor;
|
|
|
|
|
typedef Eigen::TensorMap<
|
|
|
|
|
Eigen::Tensor<const T, NDIMS, Eigen::RowMajor, IndexType>>
|
|
|
|
|
UnalignedConstTensor;
|
|
|
|
|
|
|
|
|
|
typedef Eigen::TensorMap<Eigen::Tensor<T, NDIMS, Eigen::RowMajor, int>,
|
|
|
|
|
Eigen::Aligned>
|
|
|
|
|
Tensor32Bit;
|
|
|
|
|
|
|
|
|
|
// Scalar tensor (implemented as a rank-0 tensor) of scalar type T.
|
|
|
|
|
typedef Eigen::TensorMap<
|
|
|
|
|
Eigen::TensorFixedSize<T, Eigen::Sizes<>, Eigen::RowMajor, IndexType>,
|
|
|
|
@ -37,14 +26,6 @@ struct TTypes {
|
|
|
|
|
Eigen::Aligned>
|
|
|
|
|
ConstScalar;
|
|
|
|
|
|
|
|
|
|
// Unaligned Scalar tensor of scalar type T.
|
|
|
|
|
typedef Eigen::TensorMap<
|
|
|
|
|
Eigen::TensorFixedSize<T, Eigen::Sizes<>, Eigen::RowMajor, IndexType>>
|
|
|
|
|
UnalignedScalar;
|
|
|
|
|
typedef Eigen::TensorMap<Eigen::TensorFixedSize<const T, Eigen::Sizes<>,
|
|
|
|
|
Eigen::RowMajor, IndexType>>
|
|
|
|
|
UnalignedConstScalar;
|
|
|
|
|
|
|
|
|
|
// Rank-1 tensor (vector) of scalar type T.
|
|
|
|
|
typedef Eigen::TensorMap<Eigen::Tensor<T, 1, Eigen::RowMajor, IndexType>,
|
|
|
|
|
Eigen::Aligned>
|
|
|
|
@ -59,18 +40,6 @@ struct TTypes {
|
|
|
|
|
Eigen::Tensor<const T, 1, Eigen::RowMajor, IndexType>, Eigen::Aligned>
|
|
|
|
|
ConstVec;
|
|
|
|
|
|
|
|
|
|
// Unaligned Rank-1 tensor (vector) of scalar type T.
|
|
|
|
|
typedef Eigen::TensorMap<Eigen::Tensor<T, 1, Eigen::RowMajor, IndexType>>
|
|
|
|
|
UnalignedFlat;
|
|
|
|
|
typedef Eigen::TensorMap<
|
|
|
|
|
Eigen::Tensor<const T, 1, Eigen::RowMajor, IndexType>>
|
|
|
|
|
UnalignedConstFlat;
|
|
|
|
|
typedef Eigen::TensorMap<Eigen::Tensor<T, 1, Eigen::RowMajor, IndexType>>
|
|
|
|
|
UnalignedVec;
|
|
|
|
|
typedef Eigen::TensorMap<
|
|
|
|
|
Eigen::Tensor<const T, 1, Eigen::RowMajor, IndexType>>
|
|
|
|
|
UnalignedConstVec;
|
|
|
|
|
|
|
|
|
|
// Rank-2 tensor (matrix) of scalar type T.
|
|
|
|
|
typedef Eigen::TensorMap<Eigen::Tensor<T, 2, Eigen::RowMajor, IndexType>,
|
|
|
|
|
Eigen::Aligned>
|
|
|
|
@ -78,13 +47,6 @@ struct TTypes {
|
|
|
|
|
typedef Eigen::TensorMap<
|
|
|
|
|
Eigen::Tensor<const T, 2, Eigen::RowMajor, IndexType>, Eigen::Aligned>
|
|
|
|
|
ConstMatrix;
|
|
|
|
|
|
|
|
|
|
// Unaligned Rank-2 tensor (matrix) of scalar type T.
|
|
|
|
|
typedef Eigen::TensorMap<Eigen::Tensor<T, 2, Eigen::RowMajor, IndexType>>
|
|
|
|
|
UnalignedMatrix;
|
|
|
|
|
typedef Eigen::TensorMap<
|
|
|
|
|
Eigen::Tensor<const T, 2, Eigen::RowMajor, IndexType>>
|
|
|
|
|
UnalignedConstMatrix;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace framework
|
|
|
|
|