51 references to Create
Microsoft.ML.CpuMath (22)
AvxIntrinsics.cs (17)
139
Vector256<float> signMask = Vector256.
Create
(-0.0f); // 0x8000 0000
285
Vector256<float> x2 = Vector256.
Create
(pSrcCurrent[col1]);
428
Vector256<float> scalarVector256 = Vector256.
Create
(scalar);
469
Vector256<float> scaleVector256 = Vector256.
Create
(scale);
580
Vector256<float> scaleVector256 = Vector256.
Create
(scale);
625
Vector256<float> a256 = Vector256.
Create
(a);
626
Vector256<float> b256 = Vector256.
Create
(b);
674
Vector256<float> scaleVector256 = Vector256.
Create
(scale);
731
Vector256<float> scaleVector256 = Vector256.
Create
(scale);
788
Vector256<float> scaleVector256 = Vector256.
Create
(scale);
1114
Vector256<float> meanVector256 = Vector256.
Create
(mean);
1206
Vector256<float> meanVector256 = Vector256.
Create
(mean);
1299
Vector256<float> meanVector256 = Vector256.
Create
(mean);
1516
Vector256<float> xPrimal256 = Vector256.
Create
(primalUpdate);
1517
Vector256<float> xThreshold256 = Vector256.
Create
(threshold);
1576
Vector256<float> xPrimal256 = Vector256.
Create
(primalUpdate);
1577
Vector256<float> xThreshold = Vector256.
Create
(threshold);
FactorizationMachine\AvxIntrinsics.cs (5)
15
private static readonly Vector256<float> _point5 = Vector256.
Create
(0.5f);
167
Vector256<float> wei = Vector256.
Create
(weight);
168
Vector256<float> s = Vector256.
Create
(slope);
169
Vector256<float> lr = Vector256.
Create
(learningRate);
170
Vector256<float> lambdav = Vector256.
Create
(lambdaLatent);
System.Numerics.Tensors (26)
System\Numerics\Tensors\netcore\TensorPrimitives.Cbrt.cs (1)
50
return ExpOperator<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector256.
Create
(3f)).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
657
value = Vector256.Min(Vector256.
Create
(MaxHalfValueBelowInfinity), value);
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (3)
108
Vector256<float> z = ExpOperator<float>.Invoke(y - Vector256.
Create
((float)Single_LOGV));
109
return (Vector256.
Create
((float)Single_HALFV) * (z + (Vector256.
Create
((float)Single_INVV2) / z))).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.RootN.cs (1)
52
return ExpOperator<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector256.
Create
((float)_n)).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
281
return TruncateOperator<float>.Invoke(x.AsSingle() + CopySignOperator<float>.Invoke(Vector256.
Create
(0.49999997f), x.AsSingle())).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (3)
94
Vector256<float> z = ExpOperator<float>.Invoke(y - Vector256.
Create
((float)Single_LOGV));
95
Vector256<float> result = Vector256.
Create
((float)Single_HALFV) * (z - (Vector256.
Create
((float)Single_INVV2) / z));
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (14)
171
Vector256<float> dn = MultiplyAddEstimateOperator<float>.Invoke(uxMasked, Vector256.
Create
(2 / float.Pi), Vector256.
Create
(AlmHuge));
173
dn -= Vector256.
Create
(AlmHuge);
176
f = MultiplyAddEstimateOperator<float>.Invoke(dn, Vector256.
Create
(-float.Pi / 2), f);
177
f = MultiplyAddEstimateOperator<float>.Invoke(dn, Vector256.
Create
(Pi_Tail2), f);
178
f = MultiplyAddEstimateOperator<float>.Invoke(dn, Vector256.
Create
(Pi_Tail3), f);
185
Vector256<float> a1 = MultiplyAddEstimateOperator<float>.Invoke(Vector256.
Create
(C2), f2, Vector256.
Create
(C1));
186
Vector256<float> a2 = MultiplyAddEstimateOperator<float>.Invoke(Vector256.
Create
(C4), f2, Vector256.
Create
(C3));
187
Vector256<float> a3 = MultiplyAddEstimateOperator<float>.Invoke(Vector256.
Create
(C6), f2, Vector256.
Create
(C5));
189
Vector256<float> b2 = MultiplyAddEstimateOperator<float>.Invoke(f8, a3, f12 * Vector256.
Create
(C7));
195
Vector256.
Create
(-1f) / result);
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
99
Vector256<float> z = ExpM1Operator<float>.Invoke(Vector256.
Create
(-2f) * y);
101
return (sign ^ (-z / (z + Vector256.
Create
(2f))).AsUInt32()).As<uint, T>();
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
653
return Fma.MultiplyAdd(upper,
Create
(65536.0f), lower);
657
Vector256<float> result = Avx.Multiply(upper,
Create
(65536.0f));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (1)
2568
result = (TVector)(object)Vector256.
Create
(value);