|
Stratax 0.4.0rc1
|
Logical array formatting for owning containers and views. More...
#include <ostream>#include <string>#include <stratax/containers/Matrix.hpp>#include <stratax/containers/Tensor.hpp>#include <stratax/containers/Vector.hpp>#include <stratax/core/ArrayView.hpp>

Go to the source code of this file.
Functions | |
| template<typename T > | |
| void | stratax::container::detail::print_value (std::ostream &os, const T &value) |
| Writes booleans as true/false and 8-bit integers as numbers; otherwise uses stream insertion. | |
| template<Array A> | |
| void | stratax::container::detail::print_recursive (std::ostream &os, const A &array, std::size_t dim, std::size_t offset, std::size_t depth, const char *sibling_separator) |
| Recursively prints a tensor using nested bracket notation. | |
| template<Array A> | |
| std::ostream & | stratax::container::detail::print_array (std::ostream &os, const A &array) |
Prints elements in logical row-major order with nested brackets. Empty arrays print as [], regardless of shape. Higher-rank nesting uses four-space indentation. Rank-two rows are separated by newlines; higher-rank siblings by commas and newlines. Stream formatting applies to scalar values. | |
| template<typename T > | |
| std::ostream & | stratax::container::operator<< (std::ostream &os, const Vector< T > &vector) |
| Writes a Vector using logical nested-bracket formatting. | |
| template<typename T > | |
| std::ostream & | stratax::container::operator<< (std::ostream &os, const Matrix< T > &matrix) |
| Writes a Matrix using logical nested-bracket formatting. | |
| template<typename T > | |
| std::ostream & | stratax::container::operator<< (std::ostream &os, const Tensor< T > &tensor) |
| Writes a Tensor using logical nested-bracket formatting. | |
| template<typename T > | |
| std::ostream & | stratax::core::operator<< (std::ostream &os, const ArrayView< T > &view) |
| Writes a ArrayView using logical nested-bracket formatting. | |
Logical array formatting for owning containers and views.
Definition in file Print.hpp.
| std::ostream & stratax::core::operator<< | ( | std::ostream & | os, |
| const ArrayView< T > & | view | ||
| ) |
Writes a ArrayView using logical nested-bracket formatting.
| std::ostream & stratax::container::operator<< | ( | std::ostream & | os, |
| const Matrix< T > & | matrix | ||
| ) |
Writes a Matrix using logical nested-bracket formatting.
| std::ostream & stratax::container::operator<< | ( | std::ostream & | os, |
| const Tensor< T > & | tensor | ||
| ) |
Writes a Tensor using logical nested-bracket formatting.
| std::ostream & stratax::container::operator<< | ( | std::ostream & | os, |
| const Vector< T > & | vector | ||
| ) |
Writes a Vector using logical nested-bracket formatting.
| std::ostream & stratax::container::detail::print_array | ( | std::ostream & | os, |
| const A & | array | ||
| ) |
Prints elements in logical row-major order with nested brackets. Empty arrays print as [], regardless of shape. Higher-rank nesting uses four-space indentation. Rank-two rows are separated by newlines; higher-rank siblings by commas and newlines. Stream formatting applies to scalar values.
| void stratax::container::detail::print_recursive | ( | std::ostream & | os, |
| const A & | array, | ||
| std::size_t | dim, | ||
| std::size_t | offset, | ||
| std::size_t | depth, | ||
| const char * | sibling_separator | ||
| ) |