122 references to Create
System.Numerics.Tensors (51)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (9)
1492Vector128<T> yVec = Vector128.Create(y); 2308Vector128<T> yVec = Vector128.Create(y); 2327Vector128.Create(y)); 2476Vector128<T> yVec = Vector128.Create(y); 2495Vector128.Create(y)); 2589Vector128<T> yVec = Vector128.Create(y); 2607Vector128.Create(y)); 2681Vector128<T> yVec = Vector128.Create(y); 2699Vector128.Create(y));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (27)
1621Vector128<T> zVec = Vector128.Create(z); 2533Vector128<T> zVec = Vector128.Create(z); 2555Vector128.Create(z)); 2721Vector128<T> zVec = Vector128.Create(z); 2743Vector128.Create(z)); 2846Vector128<T> zVec = Vector128.Create(z); 2867Vector128.Create(z)); 2946Vector128<T> zVec = Vector128.Create(z); 2967Vector128.Create(z)); 3107Vector128<T> yVec = Vector128.Create(y); 3108Vector128<T> zVec = Vector128.Create(z); 4005Vector128<T> yVec = Vector128.Create(y); 4006Vector128<T> zVec = Vector128.Create(z); 4027Vector128.Create(y), 4028Vector128.Create(z)); 4195Vector128<T> yVec = Vector128.Create(y); 4196Vector128<T> zVec = Vector128.Create(z); 4217Vector128.Create(y), 4218Vector128.Create(z)); 4322Vector128<T> yVec = Vector128.Create(y); 4323Vector128<T> zVec = Vector128.Create(z); 4343Vector128.Create(y), 4344Vector128.Create(z)); 4424Vector128<T> yVec = Vector128.Create(y); 4425Vector128<T> zVec = Vector128.Create(z); 4445Vector128.Create(y), 4446Vector128.Create(z));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (5)
326Vector128.Create(TOperator.RemainderMaskValue), 330Vector128.Create(TOperator.RemainderMaskValue), 492Vector128<T> yVec = Vector128.Create(y); 513Vector128.Create(TOperator.RemainderMaskValue), 517Vector128.Create(TOperator.RemainderMaskValue),
System\Numerics\Tensors\netcore\TensorPrimitives.AcosPi.cs (1)
34public static Vector128<T> Invoke(Vector128<T> x) => AcosOperator<T>.Invoke(x) / Vector128.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.AsinPi.cs (1)
34public static Vector128<T> Invoke(Vector128<T> x) => AsinOperator<T>.Invoke(x) / Vector128.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.Atan2Pi.cs (1)
75public static Vector128<T> Invoke(Vector128<T> y, Vector128<T> x) => Atan2Operator<T>.Invoke(y, x) / Vector128.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.AtanPi.cs (1)
34public static Vector128<T> Invoke(Vector128<T> x) => AtanOperator<T>.Invoke(x) / Vector128.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
43Vector128<T> xpi = x * Vector128.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (2)
45Vector128<byte> nibbleMask = Vector128.Create<byte>(0xF); 46Vector128<byte> permuteMask = Vector128.Create<byte>(0x80);
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (2)
41public static Vector128<T> Invoke(Vector128<T> x) => Vector128.Create(T.One) / (Vector128.Create(T.One) + ExpOperator<T>.Invoke(-x));
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
43Vector128<T> xpi = x * Vector128.Create(T.Pi);
System.Private.CoreLib (71)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (1)
893Vector128<byte> offset = Vector128.Create<byte>(63);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (26)
90public static bool All<T>(Vector128<T> vector, T value) => vector == Create(value); 123public static bool Any<T>(Vector128<T> vector, T value) => EqualsAny(vector, Create(value)); 747public static int Count<T>(Vector128<T> vector, T value) => BitOperations.PopCount(Equals(vector, Create(value)).ExtractMostSignificantBits()); 785public static unsafe Vector128<byte> Create(byte value) => Create<byte>(value); 792public static unsafe Vector128<double> Create(double value) => Create<double>(value); 799public static unsafe Vector128<short> Create(short value) => Create<short>(value); 806public static unsafe Vector128<int> Create(int value) => Create<int>(value); 813public static unsafe Vector128<long> Create(long value) => Create<long>(value); 819public static unsafe Vector128<nint> Create(nint value) => Create<nint>(value); 826public static unsafe Vector128<nuint> Create(nuint value) => Create<nuint>(value); 834public static unsafe Vector128<sbyte> Create(sbyte value) => Create<sbyte>(value); 841public static unsafe Vector128<float> Create(float value) => Create<float>(value); 849public static unsafe Vector128<ushort> Create(ushort value) => Create<ushort>(value); 857public static unsafe Vector128<uint> Create(uint value) => Create<uint>(value); 865public static unsafe Vector128<ulong> Create(ulong value) => Create<ulong>(value); 1425public static Vector128<T> CreateSequence<T>(T start, T step) => (Vector128<T>.Indices * step) + Create(start); 1829int result = BitOperations.TrailingZeroCount(Equals(vector, Create(value)).ExtractMostSignificantBits()); 1875return ~IsZero(AndNot(Create<uint>(float.PositiveInfinityBits), vector.AsUInt32())).As<uint, T>(); 1879return ~IsZero(AndNot(Create<ulong>(double.PositiveInfinityBits), vector.AsUInt64())).As<ulong, T>(); 1970return LessThan(Abs(vector).AsUInt32() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>(); 1974return LessThan(Abs(vector).AsUInt64() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>(); 2045return LessThan(Abs(vector).AsUInt32() - Vector128<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>(); 2049return LessThan(Abs(vector).AsUInt64() - Vector128<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>(); 2062public static int LastIndexOf<T>(Vector128<T> vector, T value) => 31 - BitOperations.LeadingZeroCount(Equals(vector, Create(value)).ExtractMostSignificantBits());
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (2)
42get => Vector128.Create(Scalar<T>.AllBitsSet); 105get => Vector128.Create(Scalar<T>.One);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (1)
803Vector128<T> vector = Vector128.Create(value);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (37)
1450Vector128<T> equals, values = Vector128.Create(value); 1641Vector128<TValue> equals, values = Vector128.Create(value); 1869Vector128<TValue> equals, current, values0 = Vector128.Create(value0), values1 = Vector128.Create(value1); 2076Vector128<TValue> equals, current, values0 = Vector128.Create(value0), values1 = Vector128.Create(value1), values2 = Vector128.Create(value2); 2236Vector128<TValue> equals, current, values0 = Vector128.Create(value0), values1 = Vector128.Create(value1), values2 = Vector128.Create(value2), values3 = Vector128.Create(value3); 2401Vector128<TValue> equals, current, values0 = Vector128.Create(value0), values1 = Vector128.Create(value1), 2402values2 = Vector128.Create(value2), values3 = Vector128.Create(value3), values4 = Vector128.Create(value4); 2712Vector128<TValue> equals, current, values0 = Vector128.Create(value0), values1 = Vector128.Create(value1); 2897Vector128<TValue> equals, current, values0 = Vector128.Create(value0), values1 = Vector128.Create(value1), values2 = Vector128.Create(value2); 3047Vector128<TValue> equals, current, values0 = Vector128.Create(value0), values1 = Vector128.Create(value1), values2 = Vector128.Create(value2), values3 = Vector128.Create(value3); 3120Vector128<T> oldValues = Vector128.Create(oldValue); 3121Vector128<T> newValues = Vector128.Create(newValue); 3309Vector128<TValue> equals, current, values0 = Vector128.Create(value0), values1 = Vector128.Create(value1), 3310values2 = Vector128.Create(value2), values3 = Vector128.Create(value3), values4 = Vector128.Create(value4); 3534Vector128<T> lowVector = Vector128.Create(lowInclusive); 3535Vector128<T> rangeVector = Vector128.Create(highInclusive - lowInclusive); 3681Vector128<T> lowVector = Vector128.Create(lowInclusive); 3682Vector128<T> rangeVector = Vector128.Create(highInclusive - lowInclusive); 3836Vector128<T> targetVector = Vector128.Create(value);
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf16Utility.Validation.cs (4)
265Vector128<ushort> vector0080 = Vector128.Create<ushort>(0x0080); 266Vector128<ushort> vector0400 = Vector128.Create<ushort>(0x0400); 267Vector128<ushort> vector0800 = Vector128.Create<ushort>(0x0800); 268Vector128<ushort> vectorD800 = Vector128.Create<ushort>(0xD800);