50 references to ExpOperator_Single
System.Numerics.Tensors (50)
System\Numerics\Tensors\netcore\TensorPrimitives.Cbrt.cs (6)
37
return
ExpOperator
<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector128.Create(3f)).As<float, T>();
42
return
ExpOperator
<double>.Invoke(LogOperator<double>.Invoke(x.AsDouble()) / Vector128.Create(3d)).As<double, T>();
50
return
ExpOperator
<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector256.Create(3f)).As<float, T>();
55
return
ExpOperator
<double>.Invoke(LogOperator<double>.Invoke(x.AsDouble()) / Vector256.Create(3d)).As<double, T>();
63
return
ExpOperator
<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector512.Create(3f)).As<float, T>();
68
return
ExpOperator
<double>.Invoke(LogOperator<double>.Invoke(x.AsDouble()) / Vector512.Create(3d)).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (6)
87
Vector128<float> z =
ExpOperator
<float>.Invoke(y - Vector128.Create((float)Single_LOGV));
96
Vector128<double> z =
ExpOperator
<double>.Invoke(y - Vector128.Create(Double_LOGV));
108
Vector256<float> z =
ExpOperator
<float>.Invoke(y - Vector256.Create((float)Single_LOGV));
117
Vector256<double> z =
ExpOperator
<double>.Invoke(y - Vector256.Create(Double_LOGV));
129
Vector512<float> z =
ExpOperator
<float>.Invoke(y - Vector512.Create((float)Single_LOGV));
138
Vector512<double> z =
ExpOperator
<double>.Invoke(y - Vector512.Create(Double_LOGV));
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (2)
32
if (typeof(T) == typeof(Half) && TryUnaryInvokeHalfAsInt16<T,
ExpOperator
<float>>(x, destination))
37
InvokeSpanIntoSpan<T,
ExpOperator
<T>>(x, destination);
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10.cs (3)
44
public static Vector128<T> Invoke(Vector128<T> x) =>
ExpOperator
<T>.Invoke(x * Vector128.Create(T.CreateTruncating(NaturalLog10)));
45
public static Vector256<T> Invoke(Vector256<T> x) =>
ExpOperator
<T>.Invoke(x * Vector256.Create(T.CreateTruncating(NaturalLog10)));
46
public static Vector512<T> Invoke(Vector512<T> x) =>
ExpOperator
<T>.Invoke(x * Vector512.Create(T.CreateTruncating(NaturalLog10)));
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2.cs (3)
44
public static Vector128<T> Invoke(Vector128<T> x) =>
ExpOperator
<T>.Invoke(x * Vector128.Create(T.CreateTruncating(NaturalLog2)));
45
public static Vector256<T> Invoke(Vector256<T> x) =>
ExpOperator
<T>.Invoke(x * Vector256.Create(T.CreateTruncating(NaturalLog2)));
46
public static Vector512<T> Invoke(Vector512<T> x) =>
ExpOperator
<T>.Invoke(x * Vector512.Create(T.CreateTruncating(NaturalLog2)));
System\Numerics\Tensors\netcore\TensorPrimitives.ExpM1.cs (4)
39
public static bool Vectorizable =>
ExpOperator
<T>.Vectorizable;
42
public static Vector128<T> Invoke(Vector128<T> x) =>
ExpOperator
<T>.Invoke(x) - Vector128<T>.One;
43
public static Vector256<T> Invoke(Vector256<T> x) =>
ExpOperator
<T>.Invoke(x) - Vector256<T>.One;
44
public static Vector512<T> Invoke(Vector512<T> x) =>
ExpOperator
<T>.Invoke(x) - Vector512<T>.One;
System\Numerics\Tensors\netcore\TensorPrimitives.Pow.cs (6)
70
return
ExpOperator
<float>.Invoke(y.AsSingle() * LogOperator<float>.Invoke(x.AsSingle())).As<float, T>();
75
return
ExpOperator
<double>.Invoke(y.AsDouble() * LogOperator<double>.Invoke(x.AsDouble())).As<double, T>();
83
return
ExpOperator
<float>.Invoke(y.AsSingle() * LogOperator<float>.Invoke(x.AsSingle())).As<float, T>();
88
return
ExpOperator
<double>.Invoke(y.AsDouble() * LogOperator<double>.Invoke(x.AsDouble())).As<double, T>();
96
return
ExpOperator
<float>.Invoke(y.AsSingle() * LogOperator<float>.Invoke(x.AsSingle())).As<float, T>();
101
return
ExpOperator
<double>.Invoke(y.AsDouble() * LogOperator<double>.Invoke(x.AsDouble())).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.RootN.cs (6)
39
return
ExpOperator
<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector128.Create((float)_n)).As<float, T>();
44
return
ExpOperator
<double>.Invoke(LogOperator<double>.Invoke(x.AsDouble()) / Vector128.Create((double)_n)).As<double, T>();
52
return
ExpOperator
<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector256.Create((float)_n)).As<float, T>();
57
return
ExpOperator
<double>.Invoke(LogOperator<double>.Invoke(x.AsDouble()) / Vector256.Create((double)_n)).As<double, T>();
65
return
ExpOperator
<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector512.Create((float)_n)).As<float, T>();
70
return
ExpOperator
<double>.Invoke(LogOperator<double>.Invoke(x.AsDouble()) / Vector512.Create((double)_n)).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (4)
44
public static bool Vectorizable =>
ExpOperator
<T>.Vectorizable;
46
public static Vector128<T> Invoke(Vector128<T> x) => Vector128.Create(T.One) / (Vector128.Create(T.One) +
ExpOperator
<T>.Invoke(-x));
47
public static Vector256<T> Invoke(Vector256<T> x) => Vector256.Create(T.One) / (Vector256.Create(T.One) +
ExpOperator
<T>.Invoke(-x));
48
public static Vector512<T> Invoke(Vector512<T> x) => Vector512.Create(T.One) / (Vector512.Create(T.One) +
ExpOperator
<T>.Invoke(-x));
System\Numerics\Tensors\netcore\TensorPrimitives.Single.netcore.cs (1)
16
global using ExpOperator_Single = System.Numerics.Tensors.TensorPrimitives.
ExpOperator
<float>;
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (6)
69
Vector128<float> z =
ExpOperator
<float>.Invoke(y - Vector128.Create((float)Single_LOGV));
80
Vector128<double> z =
ExpOperator
<double>.Invoke(y - Vector128.Create(Double_LOGV));
94
Vector256<float> z =
ExpOperator
<float>.Invoke(y - Vector256.Create((float)Single_LOGV));
105
Vector256<double> z =
ExpOperator
<double>.Invoke(y - Vector256.Create(Double_LOGV));
119
Vector512<float> z =
ExpOperator
<float>.Invoke(y - Vector512.Create((float)Single_LOGV));
130
Vector512<double> z =
ExpOperator
<double>.Invoke(y - Vector512.Create(Double_LOGV));
System\Numerics\Tensors\netcore\TensorPrimitives.SoftMax.cs (1)
39
InvokeSpanIntoSpan<T,
ExpOperator
<T>>(x, destination);
System\Numerics\Tensors\TensorPrimitives.Single.cs (2)
290
InvokeSpanIntoSpan<
ExpOperator_Single
>(x, destination);
862
InvokeSpanIntoSpan<
ExpOperator_Single
>(x, destination);