DecimalOperations

Models & Types · AiDotNet.Tensors.NumericOperations

No summary documentation available yet.

Implements: INumericOperations<decimal>

Constructors

Constructor Summary
DecimalOperations()

Properties

Property Summary
bool SupportsCpuAcceleration { get; }
bool SupportsGpuAcceleration { get; }
decimal MaxValue { get; }
decimal MinValue { get; }
decimal One { get; }
decimal Zero { get; }
int PrecisionBits { get; }

Methods

Method Summary
Half ToHalf(decimal value)
bool Equals(decimal a, decimal b)
bool GreaterThan(decimal a, decimal b)
bool GreaterThanOrEquals(decimal a, decimal b)
bool IsInfinity(decimal value)
bool IsNaN(decimal value)
bool LessThan(decimal a, decimal b)
bool LessThanOrEquals(decimal a, decimal b)
decimal Abs(decimal value)
decimal Add(decimal a, decimal b)
decimal Ceiling(decimal value)
decimal Cos(decimal value)
decimal CosineSimilarity(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y)
decimal Divide(decimal a, decimal b)
decimal Dot(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y)
decimal Exp(decimal value)
decimal Floor(decimal value)
decimal Frac(decimal value)
decimal FromDouble(double value)
decimal FromFloat(float value)
decimal FromHalf(Half value)
decimal Log(decimal value)
decimal Max(ReadOnlySpan<decimal> x)
decimal Min(ReadOnlySpan<decimal> x)
decimal Multiply(decimal a, decimal b)
decimal Negate(decimal a)
decimal Power(decimal baseValue, decimal exponent)
decimal Round(decimal value)
decimal SignOrZero(decimal value)
decimal Sin(decimal value)
decimal Sqrt(decimal value)
decimal Square(decimal value)
decimal Subtract(decimal a, decimal b)
decimal Sum(ReadOnlySpan<decimal> x)
double ToDouble(decimal value)
float ToFloat(decimal value)
int Compare(decimal a, decimal b)
int ToInt32(decimal value)
void Abs(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Add(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<decimal> destination)
void AddScalar(ReadOnlySpan<decimal> x, decimal scalar, Span<decimal> destination)
void Ceiling(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Clip(ReadOnlySpan<decimal> x, decimal min, decimal max, Span<decimal> destination)
void Copy(ReadOnlySpan<decimal> source, Span<decimal> destination)
void Cos(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Divide(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<decimal> destination)
void DivideScalar(ReadOnlySpan<decimal> x, decimal scalar, Span<decimal> destination)
void ELU(ReadOnlySpan<decimal> x, decimal alpha, Span<decimal> destination)
void Exp(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Fill(Span<decimal> destination, decimal value)
void Floor(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Frac(ReadOnlySpan<decimal> x, Span<decimal> destination)
void FromFloatSpan(ReadOnlySpan<float> source, Span<decimal> destination)
void FromHalfSpan(ReadOnlySpan<Half> source, Span<decimal> destination)
void GELU(ReadOnlySpan<decimal> x, Span<decimal> destination)
void LeakyReLU(ReadOnlySpan<decimal> x, decimal alpha, Span<decimal> destination)
void Log(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Log2(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Mish(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Multiply(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<decimal> destination)
void MultiplyAdd(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, decimal scalar, Span<decimal> destination)
void MultiplyScalar(ReadOnlySpan<decimal> x, decimal scalar, Span<decimal> destination)
void Negate(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Pow(ReadOnlySpan<decimal> x, decimal power, Span<decimal> destination)
void ReLU(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Sigmoid(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Sin(ReadOnlySpan<decimal> x, Span<decimal> destination)
void SoftMax(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Sqrt(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Subtract(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<decimal> destination)
void SubtractScalar(ReadOnlySpan<decimal> x, decimal scalar, Span<decimal> destination)
void Swish(ReadOnlySpan<decimal> x, Span<decimal> destination)
void Tanh(ReadOnlySpan<decimal> x, Span<decimal> destination)
void ToFloatSpan(ReadOnlySpan<decimal> source, Span<float> destination)
void ToHalfSpan(ReadOnlySpan<decimal> source, Span<Half> destination)