|
Stratax
Scientific computing containers and operations
|
Functions | |
| template<typename T> requires Numeric<T> | |
| stratax::container::Tensor< T > | zeros (const stratax::core::Shape &shape) |
| Creates a tensor filled with zeros. | |
| template<typename T> requires Numeric<T> | |
| stratax::container::Tensor< T > | ones (const stratax::core::Shape &shape) |
| Creates a tensor filled with ones. | |
| template<typename T> requires Numeric<T> | |
| stratax::container::Tensor< T > | 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 > | identity (const std::size_t size) |
| Creates a square identity tensor. | |
| stratax::container::Tensor< T > creation::full | ( | const stratax::core::Shape & | shape, |
| const T & | value ) |
Creates a tensor filled with a constant value.
| T | Numeric value type. |
| shape | Target shape. |
| value | Value to copy into every element. |
Definition at line 54 of file Creation.hpp.
| stratax::container::Tensor< T > creation::identity | ( | const std::size_t | size | ) |
Creates a square identity tensor.
| T | Numeric value type. |
| size | Side length of the identity matrix. |
Definition at line 69 of file Creation.hpp.
References zeros().
| stratax::container::Tensor< T > creation::ones | ( | const stratax::core::Shape & | shape | ) |
Creates a tensor filled with ones.
| T | Numeric value type. |
| shape | Target shape. |
Definition at line 38 of file Creation.hpp.
| stratax::container::Tensor< T > creation::zeros | ( | const stratax::core::Shape & | shape | ) |
Creates a tensor filled with zeros.
| T | Numeric value type. |
| shape | Target shape. |
Definition at line 23 of file Creation.hpp.
Referenced by identity().