Go to the documentation of this file.
10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_IO_H
11 #define EIGEN_CXX11_TENSOR_TENSOR_IO_H
18 template <
typename Tensor,
int Rank>
20 static void run (std::ostream& os,
const Tensor& tensor) {
25 const Index first_dim = Eigen::internal::array_get<0>(tensor.
dimensions());
35 template <
typename Tensor>
37 static void run (std::ostream& os,
const Tensor& tensor) {
50 template <
typename Tensor>
52 static void run (std::ostream& os,
const Tensor& tensor) {
53 os << tensor.
coeff(0);
61 typedef typename Evaluator::Dimensions Dimensions;
66 tensor.evalSubExprsIfNeeded(NULL);
79 #endif // EIGEN_CXX11_TENSOR_TENSOR_IO_H
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Scalar & coeff(const array< Index, NumIndices > &indices) const
static void run(std::ostream &os, const Tensor &tensor)
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
static void run(std::ostream &os, const Tensor &tensor)
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Dimensions & dimensions() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::ptrdiff_t array_prod(const Sizes< Indices... > &)
static void run(std::ostream &os, const Tensor &tensor)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * data()
std::ostream & operator<<(std::ostream &os, const TensorBase< T, ReadOnlyAccessors > &expr)
A cost model used to limit the number of threads used for evaluating tensor expression.
internal::traits< Self >::Index Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:06:46