51 references to ExpOperator_Single
System.Numerics.Tensors (51)
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)
80
Vector128<float> z =
ExpOperator
<float>.Invoke(y - Vector128.Create((float)Single_LOGV));
89
Vector128<double> z =
ExpOperator
<double>.Invoke(y - Vector128.Create(Double_LOGV));
101
Vector256<float> z =
ExpOperator
<float>.Invoke(y - Vector256.Create((float)Single_LOGV));
110
Vector256<double> z =
ExpOperator
<double>.Invoke(y - Vector256.Create(Double_LOGV));
122
Vector512<float> z =
ExpOperator
<float>.Invoke(y - Vector512.Create((float)Single_LOGV));
131
Vector512<double> z =
ExpOperator
<double>.Invoke(y - Vector512.Create(Double_LOGV));
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (1)
31
InvokeSpanIntoSpan<T,
ExpOperator
<T>>(x, destination);
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10.cs (3)
37
public static Vector128<T> Invoke(Vector128<T> x) =>
ExpOperator
<T>.Invoke(x * Vector128.Create(T.CreateTruncating(NaturalLog10)));
38
public static Vector256<T> Invoke(Vector256<T> x) =>
ExpOperator
<T>.Invoke(x * Vector256.Create(T.CreateTruncating(NaturalLog10)));
39
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)
37
public static Vector128<T> Invoke(Vector128<T> x) =>
ExpOperator
<T>.Invoke(x * Vector128.Create(T.CreateTruncating(NaturalLog2)));
38
public static Vector256<T> Invoke(Vector256<T> x) =>
ExpOperator
<T>.Invoke(x * Vector256.Create(T.CreateTruncating(NaturalLog2)));
39
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)
32
public static bool Vectorizable =>
ExpOperator
<T>.Vectorizable;
35
public static Vector128<T> Invoke(Vector128<T> x) =>
ExpOperator
<T>.Invoke(x) - Vector128<T>.One;
36
public static Vector256<T> Invoke(Vector256<T> x) =>
ExpOperator
<T>.Invoke(x) - Vector256<T>.One;
37
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)
39
public static bool Vectorizable =>
ExpOperator
<T>.Vectorizable;
41
public static Vector128<T> Invoke(Vector128<T> x) => Vector128.Create(T.One) / (Vector128.Create(T.One) +
ExpOperator
<T>.Invoke(-x));
42
public static Vector256<T> Invoke(Vector256<T> x) => Vector256.Create(T.One) / (Vector256.Create(T.One) +
ExpOperator
<T>.Invoke(-x));
43
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)
62
Vector128<float> z =
ExpOperator
<float>.Invoke(y - Vector128.Create((float)Single_LOGV));
73
Vector128<double> z =
ExpOperator
<double>.Invoke(y - Vector128.Create(Double_LOGV));
87
Vector256<float> z =
ExpOperator
<float>.Invoke(y - Vector256.Create((float)Single_LOGV));
98
Vector256<double> z =
ExpOperator
<double>.Invoke(y - Vector256.Create(Double_LOGV));
112
Vector512<float> z =
ExpOperator
<float>.Invoke(y - Vector512.Create((float)Single_LOGV));
123
Vector512<double> z =
ExpOperator
<double>.Invoke(y - Vector512.Create(Double_LOGV));
System\Numerics\Tensors\netcore\TensorPrimitives.SoftMax.cs (2)
39
T expSum = Aggregate<T,
ExpOperator
<T>, AddOperator<T>>(x);
41
InvokeSpanScalarIntoSpan<T,
ExpOperator
<T>, DivideOperator<T>>(x, expSum, destination);
System\Numerics\Tensors\TensorPrimitives.Single.cs (3)
290
InvokeSpanIntoSpan<
ExpOperator_Single
>(x, destination);
862
float expSum = Aggregate<
ExpOperator_Single
, AddOperator_Single>(x);
864
InvokeSpanScalarIntoSpan<
ExpOperator_Single
, DivideOperator_Single>(x, expSum, destination);