|
Stratax
Scientific computing containers and operations
|
Functions | |
| template<typename T> | |
| void | print_tensor_recursive (std::ostream &os, const Tensor< T > &tensor, std::size_t dim, std::size_t offset, std::size_t depth) |
| Recursively prints a tensor using nested bracket notation. | |
| void stratax::container::detail::print_tensor_recursive | ( | std::ostream & | os, |
| const Tensor< T > & | tensor, | ||
| std::size_t | dim, | ||
| std::size_t | offset, | ||
| std::size_t | depth ) |
Recursively prints a tensor using nested bracket notation.
| os | Output stream. |
| tensor | Tensor to print. |
| dim | Current dimension being printed. |
| offset | Flat storage offset for the current sub-tensor. |
| depth | Nesting depth used for indentation. |
Definition at line 26 of file Print.hpp.
References offset(), print_tensor_recursive(), stratax::container::Tensor< T >::shape(), and stratax::container::Tensor< T >::strides().
Referenced by stratax::container::operator<<(), and print_tensor_recursive().