101 references to Create
Microsoft.ML.CpuMath (34)
AvxIntrinsics.cs (14)
439Vector128<float> scalarVector128 = Vector128.Create(scalar); 592Vector128<float> scaleVector128 = Vector128.Create(scale); 638Vector128<float> a128 = Vector128.Create(a); 639Vector128<float> b128 = Vector128.Create(b); 687Vector128<float> scaleVector128 = Vector128.Create(scale); 744Vector128<float> scaleVector128 = Vector128.Create(scale); 800Vector128<float> scaleVector128 = Vector128.Create(scale); 1128Vector128<float> meanVector128 = Vector128.Create(mean); 1221Vector128<float> meanVector128 = Vector128.Create(mean); 1314Vector128<float> meanVector128 = Vector128.Create(mean); 1533Vector128<float> xPrimal128 = Vector128.Create(primalUpdate); 1534Vector128<float> xThreshold128 = Vector128.Create(threshold); 1592Vector128<float> xPrimal128 = Vector128.Create(primalUpdate); 1593Vector128<float> xThreshold128 = Vector128.Create(threshold);
SseIntrinsics.cs (20)
68Vector128.Create(BitConverter.Int32BitsToSingle(0x7FFFFFFF)); 132Vector128<float> signMask = Vector128.Create(-0.0f); // 0x8000 0000 242Vector128<float> x2 = Vector128.Create(pSrcCurrent[col]); 363Vector128<float> scalarVector = Vector128.Create(scalar); 393Vector128<float> scaleVector128 = Vector128.Create(scale); 499Vector128<float> scaleVector = Vector128.Create(scale); 532Vector128<float> aVector = Vector128.Create(a); 533Vector128<float> bVector = Vector128.Create(b); 568Vector128<float> scaleVector = Vector128.Create(scale); 612Vector128<float> scaleVector = Vector128.Create(scale); 656Vector128<float> scaleVector = Vector128.Create(scale); 918Vector128<float> meanVector = Vector128.Create(mean); 983Vector128<float> meanVector = Vector128.Create(mean); 1048Vector128<float> meanVector = Vector128.Create(mean); 1210Vector128<float> xPrimal = Vector128.Create(primalUpdate); 1212Vector128<float> signMask = Vector128.Create(-0.0f); // 0x8000 0000 1213Vector128<float> xThreshold = Vector128.Create(threshold); 1255Vector128<float> xPrimal = Vector128.Create(primalUpdate); 1257Vector128<float> signMask = Vector128.Create(-0.0f); // 0x8000 0000 1258Vector128<float> xThreshold = Vector128.Create(threshold);
System.Numerics.Tensors (26)
System\Numerics\Tensors\netcore\TensorPrimitives.Cbrt.cs (1)
37return ExpOperator<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector128.Create(3f)).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
593value = Vector128.Min(Vector128.Create(MaxHalfValueBelowInfinity), value);
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (3)
87Vector128<float> z = ExpOperator<float>.Invoke(y - Vector128.Create((float)Single_LOGV)); 88return (Vector128.Create((float)Single_HALFV) * (z + (Vector128.Create((float)Single_INVV2) / z))).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.RootN.cs (1)
39return ExpOperator<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector128.Create((float)_n)).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
202return TruncateOperator<float>.Invoke(x.AsSingle() + CopySignOperator<float>.Invoke(Vector128.Create(0.49999997f), x.AsSingle())).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (3)
69Vector128<float> z = ExpOperator<float>.Invoke(y - Vector128.Create((float)Single_LOGV)); 70Vector128<float> result = Vector128.Create((float)Single_HALFV) * (z - (Vector128.Create((float)Single_INVV2) / z));
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (14)
136Vector128<float> dn = MultiplyAddEstimateOperator<float>.Invoke(uxMasked, Vector128.Create(2 / float.Pi), Vector128.Create(AlmHuge)); 138dn -= Vector128.Create(AlmHuge); 141f = MultiplyAddEstimateOperator<float>.Invoke(dn, Vector128.Create(-float.Pi / 2), f); 142f = MultiplyAddEstimateOperator<float>.Invoke(dn, Vector128.Create(Pi_Tail2), f); 143f = MultiplyAddEstimateOperator<float>.Invoke(dn, Vector128.Create(Pi_Tail3), f); 150Vector128<float> a1 = MultiplyAddEstimateOperator<float>.Invoke(Vector128.Create(C2), f2, Vector128.Create(C1)); 151Vector128<float> a2 = MultiplyAddEstimateOperator<float>.Invoke(Vector128.Create(C4), f2, Vector128.Create(C3)); 152Vector128<float> a3 = MultiplyAddEstimateOperator<float>.Invoke(Vector128.Create(C6), f2, Vector128.Create(C5)); 154Vector128<float> b2 = MultiplyAddEstimateOperator<float>.Invoke(f8, a3, f12 * Vector128.Create(C7)); 160Vector128.Create(-1f) / result);
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
77Vector128<float> z = ExpM1Operator<float>.Invoke(Vector128.Create(-2f) * y); 79return (sign ^ (-z / (z + Vector128.Create(2f))).AsUInt32()).As<uint, T>();
System.Private.CoreLib (41)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (1)
438return Vector128.MultiplyAddEstimate(matrix.Y.AsVector128Unsafe(), Vector128.Create(position.GetElement(1)), result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (10)
625Vector128<float> vector = Vector128.Create(value); 1406result.X = Vector128.MultiplyAddEstimate(s, Vector128.Create(p.GetElement(0)), Vector128.CreateScalar(1.0f)); 1407result.Y = Vector128.MultiplyAddEstimate(s, Vector128.Create(p.GetElement(1)), Vector128.Create(0.0f, 1.0f, 0.0f, 0.0f)); 1408result.Z = Vector128.MultiplyAddEstimate(s, Vector128.Create(p.GetElement(2)), Vector128.Create(0.0f, 0.0f, 1.0f, 0.0f)); 1409result.W = Vector128.MultiplyAddEstimate(s, Vector128.Create(p.GetElement(3)), Vector128.Create(0.0f, 0.0f, 0.0f, 1.0f)); 1682result.X = Vector128.MultiplyAddEstimate(l, Vector128.Create(p.GetElement(0)), Vector128.Create(dot, 0, 0, 0)); 1683result.Y = Vector128.MultiplyAddEstimate(l, Vector128.Create(p.GetElement(1)), Vector128.Create(0, dot, 0, 0)); 1684result.Z = Vector128.MultiplyAddEstimate(l, Vector128.Create(p.GetElement(2)), Vector128.Create(0, 0, dot, 0)); 1685result.W = Vector128.MultiplyAddEstimate(l, Vector128.Create(p.GetElement(3)), Vector128.Create(0, 0, 0, dot)); 2237Vector128<float> vAmount = Vector128.Create(amount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Plane.cs (1)
143Vector128<float> lengthSquared = Vector128.Create(Vector128.LengthSquared(value.WithElement(3, 0.0f)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.cs (6)
243return (axis * Vector128.Create(s)).WithElement(3, c); 357Vector128<float> lengthSquared = Vector128.Create(Vector128.LengthSquared(value)); 360Vector128.LessThanOrEqual(lengthSquared, Vector128.Create(Epsilon)) 370public static Quaternion Lerp(Quaternion quaternion1, Quaternion quaternion2, float amount) => Lerp(quaternion1.AsVector128(), quaternion2.AsVector128(), Vector128.Create(amount)).AsQuaternion(); 376Vector128.IsPositive(Vector128.Create(Vector128.Dot(quaternion1, quaternion2))), 398public static Quaternion Multiply(Quaternion value1, float value2) => (value1.AsVector128() * Vector128.Create(value2)).AsQuaternion();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (7)
415public static Vector2 Create(float value) => Vector128.Create(value).AsVector2(); 665public static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount) => Vector128.Lerp(value1.AsVector128Unsafe(), value2.AsVector128Unsafe(), Vector128.Create(amount)).AsVector2(); 872Vector128<float> tmp = Vector128.Create(Vector128.Dot(vVector, vNormal)); 942result = Vector128.MultiplyAddEstimate(matrix.Y.AsVector128Unsafe(), Vector128.Create(position.GetElement(1)), result); 960result = Vector128.MultiplyAddEstimate(matrix.Y, Vector128.Create(position.GetElement(1)), result); 982result = Vector128.MultiplyAddEstimate(matrix.Y.AsVector128(), Vector128.Create(normal.GetElement(1)), result); 997result = Vector128.MultiplyAddEstimate(matrix.Y, Vector128.Create(normal.GetElement(1)), result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (7)
438public static Vector3 Create(float value) => Vector128.Create(value).AsVector3(); 702public static Vector3 Lerp(Vector3 value1, Vector3 value2, float amount) => Vector128.Lerp(value1.AsVector128Unsafe(), value2.AsVector128Unsafe(), Vector128.Create(amount)).AsVector3(); 909Vector128<float> tmp = Vector128.Create(Vector128.Dot(vVector, vNormal)); 983result = Vector128.MultiplyAddEstimate(matrix.Y, Vector128.Create(position.GetElement(1)), result); 984result = Vector128.MultiplyAddEstimate(matrix.Z, Vector128.Create(position.GetElement(2)), result); 1006result = Vector128.MultiplyAddEstimate(matrix.Y, Vector128.Create(normal.GetElement(1)), result); 1007result = Vector128.MultiplyAddEstimate(matrix.Z, Vector128.Create(normal.GetElement(2)), result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (5)
473public static Vector4 Create(float value) => Vector128.Create(value).AsVector4(); 775public static Vector4 Lerp(Vector4 value1, Vector4 value2, float amount) => Vector128.Lerp(value1.AsVector128(), value2.AsVector128(), Vector128.Create(amount)).AsVector4(); 1059result = Vector128.MultiplyAddEstimate(matrix.Y, Vector128.Create(vector.GetElement(1)), result); 1060result = Vector128.MultiplyAddEstimate(matrix.Z, Vector128.Create(vector.GetElement(2)), result); 1061result = Vector128.MultiplyAddEstimate(matrix.W, Vector128.Create(vector.GetElement(3)), result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
634return Fma.MultiplyAdd(upper, Create(65536.0f), lower); 638Vector128<float> result = Sse.Multiply(upper, Create(65536.0f));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.Numerics.cs (1)
296return vector / Create(float.Sqrt(Dot(vector, vector)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (1)
2761result = (TVector)(object)Vector128.Create(value);