232 using std::runtime_error::runtime_error;
A class representing a matrix, derived from Tensor.
Exceptions concerning txeo::TensorOp.
A utility class for common math functions on tensors.
static txeo::Tensor< T > & square_by(txeo::Tensor< T > &tensor)
Computes the element-wise square of a tensor in-place.
static txeo::Tensor< T > power_elem(const txeo::Tensor< T > &tensor, const T &exponent)
Returns the element-wise potentiation of a tensor.
TensorFunc & operator=(TensorFunc &&)=delete
static txeo::Tensor< T > sqrt(const txeo::Tensor< T > &tensor)
Computes the element-wise square root of a tensor.
static txeo::Tensor< T > permute(const txeo::Tensor< T > &tensor, const std::vector< size_t > &axes)
Permutes the axes of a tensor.
static txeo::Matrix< T > & transpose_by(txeo::Matrix< T > &matrix)
Transposes a matrix in-place.
TensorFunc(const TensorFunc &)=delete
static txeo::Tensor< T > & sqrt_by(txeo::Tensor< T > &tensor)
Computes the element-wise square root of a tensor in-place.
static txeo::Tensor< T > & abs_by(txeo::Tensor< T > &tensor)
Computes the element-wise absolute value of a tensor in-place.
static txeo::Matrix< T > transpose(const txeo::Matrix< T > &matrix)
Transposes a matrix.
TensorFunc & operator=(const TensorFunc &)=default
static txeo::Tensor< T > square(const txeo::Tensor< T > &tensor)
Computes the element-wise square of a tensor.
static txeo::Tensor< T > abs(const txeo::Tensor< T > &tensor)
Computes the element-wise absolute value of a tensor.
TensorFunc(TensorFunc &&)=delete
static txeo::Tensor< T > & permute_by(txeo::Tensor< T > &tensor, const std::vector< size_t > &axes)
Permutes the axes of a tensor in-place.
static txeo::Tensor< T > power_elem_by(txeo::Tensor< T > &tensor, const T &exponent)
Performs element-wise potentiation of the tensor (in-place)
Implements the mathematical concept of tensor, which is a magnitude of multiple order....