|
Stratax
Scientific computing containers and operations
|
Namespaces | |
| namespace | detail |
Classes | |
| class | Matrix |
| class | Tensor |
| class | Vector |
Functions | |
| template<typename T> | |
| std::ostream & | operator<< (std::ostream &os, const Vector< T > &vector) |
| Writes a vector in compact bracketed list form. | |
| template<typename T> | |
| std::ostream & | operator<< (std::ostream &os, const Matrix< T > &matrix) |
| Writes a matrix in a human-readable row-major layout. | |
| template<typename T> | |
| std::ostream & | operator<< (std::ostream &os, const Tensor< T > &tensor) |
| Writes a tensor in nested bracket notation. | |
| std::ostream & stratax::container::operator<< | ( | std::ostream & | os, |
| const Matrix< T > & | matrix ) |
Writes a matrix in a human-readable row-major layout.
| os | Output stream. |
| matrix | Matrix to print. |
Definition at line 115 of file Print.hpp.
References stratax::container::Matrix< T >::cols(), and stratax::container::Matrix< T >::rows().
| std::ostream & stratax::container::operator<< | ( | std::ostream & | os, |
| const Tensor< T > & | tensor ) |
Writes a tensor in nested bracket notation.
Empty tensors are written as []. Non-empty tensors are printed recursively using the tensor shape and row-major strides.
| os | Output stream. |
| tensor | Tensor to print. |
Definition at line 154 of file Print.hpp.
References stratax::core::Shape::elements(), stratax::container::detail::print_tensor_recursive(), and stratax::container::Tensor< T >::shape().
| std::ostream & stratax::container::operator<< | ( | std::ostream & | os, |
| const Vector< T > & | vector ) |
Writes a vector in compact bracketed list form.
| os | Output stream. |
| vector | Vector to print. |
Definition at line 86 of file Print.hpp.
References stratax::container::Vector< T >::begin(), and stratax::container::Vector< T >::end().