10#include <initializer_list>
248 template <
typename U>
251 template <
typename U>
254 template <
typename U>
257 template <
typename U>
260 template <
typename U>
263 template <
typename U>
266 template <
typename U>
269 template <
typename U>
272 template <
typename U>
290 using std::runtime_error::runtime_error;
A container for managing training, evaluation, and test data splits.
Class that deals with the main tasks of prediction (inference)
A utility class for aggregation functions on tensors.
A utility class for common math functions on tensors.
Implements the mathematical concept of tensor, which is a magnitude of multiple order....
Tensor & operator=(const Tensor &tensor)
constexpr std::type_identity_t< T > type() const
Returns the data type of this tensor.
const txeo::TensorShape & shape() const
Returns the shape of this tensor.
size_t dim() const
Returns the dimension of this tensor.
A utility class for performing operations on tensors and vectors.
A utility class for partitioning tensors.
The shape of a tensor is an ordered collection of dimensions of mathematical vector spaces.
Exceptions concerning txeo::Vector.
A class representing a vector, derived from Tensor.
void reshape(const std::vector< size_t > &shape)
Vector(const std::initializer_list< T > &values)
Constructs a vector from an initializer list.
Vector(size_t dim, const std::initializer_list< T > &values)
Constructs a vector with the specified dimension and initializer list.
static Vector< T > to_vector(txeo::Tensor< T > &&tensor)
Converts a tensor to a vector by moving data.
static txeo::Tensor< T > to_tensor(Vector< T > &&vector)
Converts a vector to a tensor by moving data.
Vector(txeo::Tensor< T > &&tensor)
Constructs a vector by moving data from a Tensor.
static Vector< T > to_vector(const txeo::Tensor< T > &tensor)
Creates a vector from a tensor (performs copy).
void normalize(txeo::NormalizationType type)
Normalizes the vector in-place using specified normalization method.
friend txeo::Vector< U > operator-(const txeo::Vector< U > &left, const txeo::Vector< U > &right)
Vector(Vector &&Vector) noexcept
friend class txeo::detail::TensorHelper
void reshape(const std::initializer_list< size_t > &shape)
Vector(size_t dim, const std::vector< T > &values)
Constructs a vector with the specified dimension and values.
Vector(const Vector &Vector)
friend txeo::Vector< U > operator+(const txeo::Vector< U > &left, const txeo::Vector< U > &right)
friend txeo::Vector< U > operator*(const txeo::Vector< U > &vector, const U &scalar)
Vector(size_t dim, const T &fill_value)
Constructs a vector with the specified dimension and fill value.
Vector & operator=(const Vector &Vector)
static txeo::Tensor< T > to_tensor(const Vector< T > &vector)
Creates a tensor from a vector (performs copy).
friend txeo::Vector< U > operator/(const txeo::Vector< U > &left, const U &right)
friend txeo::Vector< U > operator-(const U &left, const txeo::Vector< U > &right)
size_t size() const
Returns the size of the vector.
friend txeo::Vector< U > operator/(const U &left, const txeo::Vector< U > &right)
Vector & operator=(Vector &&Vector) noexcept
friend txeo::Vector< U > operator-(const txeo::Vector< U > &left, const U &right)
Vector(size_t dim)
Constructs a vector with the specified dimension.
void reshape(const txeo::TensorShape &shape)
friend txeo::Vector< U > operator+(const txeo::Vector< U > &left, const U &right)
friend txeo::Vector< U > operator*(const U &scalar, const txeo::Vector< U > &vector)
NormalizationType
Normalization types to be used in normalization functions.