|
Stratax
Scientific computing containers and operations
|
#include <cstddef>#include <stratax/containers/Matrix.hpp>#include <stratax/containers/Tensor.hpp>#include <stratax/containers/Vector.hpp>#include <stratax/core/Concepts.hpp>#include <stratax/core/Shape.hpp>Go to the source code of this file.
Namespaces | |
| namespace | creation |
Functions | |
| template<typename T> requires Numeric<T> | |
| stratax::container::Tensor< T > | creation::zeros (const stratax::core::Shape &shape) |
| Creates a tensor filled with zeros. | |
| template<typename T> requires Numeric<T> | |
| stratax::container::Tensor< T > | creation::ones (const stratax::core::Shape &shape) |
| Creates a tensor filled with ones. | |
| template<typename T> requires Numeric<T> | |
| stratax::container::Tensor< T > | creation::full (const stratax::core::Shape &shape, const T &value) |
| Creates a tensor filled with a constant value. | |
| template<typename T> requires Numeric<T> | |
| stratax::container::Tensor< T > | creation::identity (const std::size_t size) |
| Creates a square identity tensor. | |