FloatOperations
Models & Types · AiDotNet.Tensors.NumericOperations
No summary documentation available yet.
Implements: INumericOperations<float>
Constructors
| Constructor | Summary |
|---|---|
FloatOperations() |
Properties
| Property | Summary |
|---|---|
bool SupportsCpuAcceleration { get; } |
|
bool SupportsGpuAcceleration { get; } |
|
float MaxValue { get; } |
|
float MinValue { get; } |
|
float One { get; } |
|
float Zero { get; } |
|
int PrecisionBits { get; } |
Methods
| Method | Summary |
|---|---|
Half ToHalf(float value) |
|
bool Equals(float a, float b) |
|
bool GreaterThan(float a, float b) |
|
bool GreaterThanOrEquals(float a, float b) |
|
bool IsInfinity(float value) |
|
bool IsNaN(float value) |
|
bool LessThan(float a, float b) |
|
bool LessThanOrEquals(float a, float b) |
|
double ToDouble(float value) |
|
float Abs(float value) |
|
float Add(float a, float b) |
|
float Ceiling(float value) |
|
float Cos(float value) |
|
float CosineSimilarity(ReadOnlySpan<float> x, ReadOnlySpan<float> y) |
|
float Divide(float a, float b) |
|
float Dot(ReadOnlySpan<float> x, ReadOnlySpan<float> y) |
|
float Exp(float value) |
|
float Floor(float value) |
|
float Frac(float value) |
|
float FromDouble(double value) |
|
float FromFloat(float value) |
|
float FromHalf(Half value) |
|
float Log(float value) |
|
float Max(ReadOnlySpan<float> x) |
|
float Min(ReadOnlySpan<float> x) |
|
float Multiply(float a, float b) |
|
float Negate(float a) |
|
float Power(float baseValue, float exponent) |
|
float Round(float value) |
|
float SignOrZero(float value) |
|
float Sin(float value) |
|
float Sqrt(float value) |
|
float Square(float value) |
|
float Subtract(float a, float b) |
|
float Sum(ReadOnlySpan<float> x) |
|
float ToFloat(float value) |
|
int Compare(float a, float b) |
|
int ToInt32(float value) |
|
void Abs(ReadOnlySpan<float> x, Span<float> destination) |
|
void Add(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) |
|
void AddScalar(ReadOnlySpan<float> x, float scalar, Span<float> destination) |
|
void Ceiling(ReadOnlySpan<float> x, Span<float> destination) |
|
void Clip(ReadOnlySpan<float> x, float min, float max, Span<float> destination) |
|
void Copy(ReadOnlySpan<float> source, Span<float> destination) |
|
void Cos(ReadOnlySpan<float> x, Span<float> destination) |
|
void Divide(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) |
|
void DivideScalar(ReadOnlySpan<float> x, float scalar, Span<float> destination) |
|
void ELU(ReadOnlySpan<float> x, float alpha, Span<float> destination) |
|
void Exp(ReadOnlySpan<float> x, Span<float> destination) |
|
void Fill(Span<float> destination, float value) |
|
void Floor(ReadOnlySpan<float> x, Span<float> destination) |
|
void Frac(ReadOnlySpan<float> x, Span<float> destination) |
|
void FromFloatSpan(ReadOnlySpan<float> source, Span<float> destination) |
|
void FromHalfSpan(ReadOnlySpan<Half> source, Span<float> destination) |
|
void GELU(ReadOnlySpan<float> x, Span<float> destination) |
|
void LeakyReLU(ReadOnlySpan<float> x, float alpha, Span<float> destination) |
|
void Log(ReadOnlySpan<float> x, Span<float> destination) |
|
void Log2(ReadOnlySpan<float> x, Span<float> destination) |
|
void Mish(ReadOnlySpan<float> x, Span<float> destination) |
|
void Multiply(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) |
|
void MultiplyAdd(ReadOnlySpan<float> x, ReadOnlySpan<float> y, float scalar, Span<float> destination) |
|
void MultiplyScalar(ReadOnlySpan<float> x, float scalar, Span<float> destination) |
|
void Negate(ReadOnlySpan<float> x, Span<float> destination) |
|
void Pow(ReadOnlySpan<float> x, float power, Span<float> destination) |
|
void ReLU(ReadOnlySpan<float> x, Span<float> destination) |
|
void Sigmoid(ReadOnlySpan<float> x, Span<float> destination) |
|
void Sin(ReadOnlySpan<float> x, Span<float> destination) |
|
void SoftMax(ReadOnlySpan<float> x, Span<float> destination) |
|
void Sqrt(ReadOnlySpan<float> x, Span<float> destination) |
|
void Subtract(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) |
|
void SubtractScalar(ReadOnlySpan<float> x, float scalar, Span<float> destination) |
|
void Swish(ReadOnlySpan<float> x, Span<float> destination) |
|
void Tanh(ReadOnlySpan<float> x, Span<float> destination) |
|
void ToFloatSpan(ReadOnlySpan<float> source, Span<float> destination) |
|
void ToHalfSpan(ReadOnlySpan<float> source, Span<Half> destination) |