Stratax
Scientific computing containers and operations
Loading...
Searching...
No Matches
stratax::container::detail Namespace Reference

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.

Function Documentation

◆ print_tensor_recursive()

template<typename T>
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.

Parameters
osOutput stream.
tensorTensor to print.
dimCurrent dimension being printed.
offsetFlat storage offset for the current sub-tensor.
depthNesting 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().