23 #ifndef NDARRAY_formatting_h_INCLUDED
24 #define NDARRAY_formatting_h_INCLUDED
38 template <
typename Derived,
int N = Derived::ND::value>
class Formatter;
59 std::ios_base::fmtflags flags = std::ios_base::fmtflags(0),
60 std::string
const & delimiter =
", ",
61 std::string
const & open =
"[",
62 std::string
const & close =
"]"
73 template <
typename Derived>
82 template <
typename Derived>
83 std::ostream & operator<<(std::ostream & os, ExpressionBase<Derived>
const & expr) {
85 options.
apply(os,expr);
95 template <
typename Derived,
int N>
109 for (++iter; iter != end; ++
iter) {
111 os << std::endl << std::string(level,
' ');
123 template <
typename Derived>
136 int precision = os.precision(options.
_precision);
138 std::ios_base::fmtflags flags = os.setf(options.
_flags,std::ios_base::floatfield);
140 for (++iter; iter != end; ++
iter) {
143 os.precision(precision);
154 #endif // !NDARRAY_formatting_h_INCLUDED
void ImageT ImageT int float saturatedPixelValue int const width
Definitions for ExpressionBase.
Iterator begin() const
Return an Iterator to the beginning of the expression.
bool empty() const
Return true if the first dimension has no elements.
Iterator end() const
Return an Iterator to one past the end of the expression.
ExpressionTraits< Derived >::Iterator Iterator
Nested expression or element iterator.
CRTP base class for all multidimensional expressions.