Module math

Module math 

Source
Expand description

Mathematically oriented operators and functions useful in machine learning contexts.

Traitsยง

Abs
Affine
apply an affine transformation to a tensor; affine transformation is defined as mul * self + add
Conjugate
Cos
Cosh
Cubed
Exp
Inverse
The Inverse trait generically establishes an interface for computing the inverse of a type, regardless of if its a tensor, scalar, or some other compatible type.
MatMul
The MatMul trait defines an interface for matrix multiplication.
MatPow
The MatPow trait defines an interface for computing the power of some matrix
PercentChange
The PercentChange trait establishes a binary operator for computing the percent change between two values where the caller is considered the original value.
PercentDiff
Compute the percentage difference between two values. The percentage difference is defined as:
Root
The Root trait provides methods for computing the nth root of a number.
Sine
Sinh
SquareRoot
Squared
SummaryStatistics
This trait describes the fundamental methods of summary statistics. These include the mean, standard deviation, variance, and more.
Tan
Tanh
Transpose
The Transpose trait generically establishes an interface for transposing a type