Stratax 0.2.0
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, const char *sibling_separator)
 Recursively prints a tensor using nested bracket notation.
template<typename T>
std::ostream & print_tensor_like (std::ostream &os, const Tensor< T > &tensor)
template<typename T>
std::ostream & print_matrix_like (std::ostream &os, const Tensor< T > &tensor)

Function Documentation

◆ print_matrix_like()

template<typename T>
std::ostream & stratax::container::detail::print_matrix_like ( std::ostream & os,
const Tensor< T > & tensor )

Definition at line 93 of file Print.hpp.

◆ print_tensor_like()

template<typename T>
std::ostream & stratax::container::detail::print_tensor_like ( std::ostream & os,
const Tensor< T > & tensor )

Definition at line 80 of file Print.hpp.

◆ 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,
const char * sibling_separator )

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.
sibling_separatorSeparator string inserted between sibling elements.

Definition at line 28 of file Print.hpp.