mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Reimplemented the Tensor stream output.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
2b9297196c
commit
f73c95c032
@@ -962,6 +962,11 @@ class TensorBase<Derived, ReadOnlyAccessors>
|
||||
return TensorForcedEvalOp<const Derived>(derived());
|
||||
}
|
||||
|
||||
// Returns a formatted tensor ready for printing to a stream
|
||||
inline const TensorWithFormat<Derived,DerivedTraits::Layout,DerivedTraits::NumDimensions> format(const TensorIOFormat& fmt) const {
|
||||
return TensorWithFormat<Derived,DerivedTraits::Layout,DerivedTraits::NumDimensions>(derived(), fmt);
|
||||
}
|
||||
|
||||
#ifdef EIGEN_READONLY_TENSORBASE_PLUGIN
|
||||
#include EIGEN_READONLY_TENSORBASE_PLUGIN
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user