Stratax
Scientific computing containers and operations
Loading...
Searching...
No Matches
Creation.hpp File Reference

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.