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