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);
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 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::ptrdiff_t array_prod(const Sizes< Indices... > &)
static void run(std::ostream &os, const Tensor &tensor)
A matrix or vector expression mapping an existing array of data.
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.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * data()
static void run(std::ostream &os, const Tensor &tensor)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & coeff(const array< Index, NumIndices > &indices) const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions & dimensions() const
static void run(std::ostream &os, const Tensor &tensor)