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) {
22 typedef typename Tensor::Index
Index;
23 const Index total_size = internal::array_prod(tensor.dimensions());
25 const Index first_dim = Eigen::internal::array_get<0>(tensor.dimensions());
26 static const int layout = Tensor::Layout;
35 template <
typename Tensor>
37 static void run (std::ostream& os,
const Tensor& tensor) {
39 typedef typename Tensor::Index
Index;
40 const Index total_size = internal::array_prod(tensor.dimensions());
50 template <
typename Tensor>
52 static void run (std::ostream& os,
const Tensor& tensor) {
53 os << tensor.coeff(0);
59 std::ostream& operator << (std::ostream& os, const TensorBase<T, ReadOnlyAccessors>& expr) {
61 typedef typename Evaluator::Dimensions Dimensions;
66 tensor.evalSubExprsIfNeeded(NULL);
79 #endif // EIGEN_CXX11_TENSOR_TENSOR_IO_H A matrix or vector expression mapping an existing array of data.
Definition: Map.h:88
Definition: TensorForcedEval.h:69
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
A cost model used to limit the number of threads used for evaluating tensor expression.
Definition: TensorEvaluator.h:28
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
Definition: TensorDeviceDefault.h:17
Definition: EmulateArray.h:21
Definition: BandTriangularSolver.h:13
Definition: TensorIO.h:19
Definition: XprHelper.h:312
Definition: EmulateArray.h:203
The tensor class.
Definition: Tensor.h:63