10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_IO_H 11 #define EIGEN_CXX11_TENSOR_TENSOR_IO_H 18 template <
typename Tensor,
int Rank>
25 const Index first_dim = Eigen::internal::array_get<0>(tensor.
dimensions());
35 template <
typename Tensor>
50 template <
typename 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 const Scalar & coeff(const array< Index, NumIndices > &indices) const
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.
Namespace containing all symbols from the Eigen library.
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)
ofstream os("timeSchurFactors.csv")
internal::nested_eval< T, 1 >::type eval(const T &xpr)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions & dimensions() const
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)