141 references to Create
System.Numerics.Tensors (70)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (14)
333Vector256<T> vresult = Vector256.Create(TAggregationOperator.IdentityValue); 437beg = Vector256.ConditionalSelect(CreateAlignmentMaskVector256<T>((int)misalignment), beg, Vector256.Create(TAggregationOperator.IdentityValue)); 504end = Vector256.ConditionalSelect(CreateRemainderMaskVector256<T>((int)trailing), end, Vector256.Create(TAggregationOperator.IdentityValue)); 763end = Vector256.ConditionalSelect(CreateRemainderMaskVector256<T>((int)(remainder % (uint)Vector256<T>.Count)), end, Vector256.Create(TAggregationOperator.IdentityValue)); 918end = Vector256.ConditionalSelect(CreateRemainderMaskVector256<T>((int)(remainder % (uint)Vector256<T>.Count)), end, Vector256.Create(TAggregationOperator.IdentityValue)); 1024end = Vector256.ConditionalSelect(CreateRemainderMaskVector256<T>((int)(remainder % (uint)Vector256<T>.Count)), end, Vector256.Create(TAggregationOperator.IdentityValue)); 1109end = Vector256.ConditionalSelect(CreateRemainderMaskVector256<T>((int)(remainder % (uint)Vector256<T>.Count)), end, Vector256.Create(TAggregationOperator.IdentityValue)); 1479Vector256<T> vresult = Vector256.Create(TAggregationOperator.IdentityValue); 1601beg = Vector256.ConditionalSelect(CreateAlignmentMaskVector256<T>((int)misalignment), beg, Vector256.Create(TAggregationOperator.IdentityValue)); 1675end = Vector256.ConditionalSelect(CreateRemainderMaskVector256<T>((int)trailing), end, Vector256.Create(TAggregationOperator.IdentityValue)); 1961end = Vector256.ConditionalSelect(CreateRemainderMaskVector256<T>((int)(remainder % (uint)Vector256<T>.Count)), end, Vector256.Create(TAggregationOperator.IdentityValue)); 2122end = Vector256.ConditionalSelect(CreateRemainderMaskVector256<T>((int)(remainder % (uint)Vector256<T>.Count)), end, Vector256.Create(TAggregationOperator.IdentityValue)); 2234end = Vector256.ConditionalSelect(CreateRemainderMaskVector256<T>((int)(remainder % (uint)Vector256<T>.Count)), end, Vector256.Create(TAggregationOperator.IdentityValue)); 2327end = Vector256.ConditionalSelect(CreateRemainderMaskVector256<T>((int)(remainder % (uint)Vector256<T>.Count)), end, Vector256.Create(TAggregationOperator.IdentityValue));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (9)
1730Vector256<T> yVec = Vector256.Create(y); 2264Vector256<T> yVec = Vector256.Create(y); 2283Vector256.Create(y)); 2440Vector256<T> yVec = Vector256.Create(y); 2459Vector256.Create(y)); 2559Vector256<T> yVec = Vector256.Create(y); 2577Vector256.Create(y)); 2653Vector256<T> yVec = Vector256.Create(y); 2671Vector256.Create(y));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (27)
1892Vector256<T> zVec = Vector256.Create(z); 2488Vector256<T> zVec = Vector256.Create(z); 2510Vector256.Create(z)); 2684Vector256<T> zVec = Vector256.Create(z); 2706Vector256.Create(z)); 2815Vector256<T> zVec = Vector256.Create(z); 2836Vector256.Create(z)); 2917Vector256<T> zVec = Vector256.Create(z); 2938Vector256.Create(z)); 3373Vector256<T> yVec = Vector256.Create(y); 3374Vector256<T> zVec = Vector256.Create(z); 3959Vector256<T> yVec = Vector256.Create(y); 3960Vector256<T> zVec = Vector256.Create(z); 3981Vector256.Create(y), 3982Vector256.Create(z)); 4157Vector256<T> yVec = Vector256.Create(y); 4158Vector256<T> zVec = Vector256.Create(z); 4179Vector256.Create(y), 4180Vector256.Create(z)); 4290Vector256<T> yVec = Vector256.Create(y); 4291Vector256<T> zVec = Vector256.Create(z); 4311Vector256.Create(y), 4312Vector256.Create(z)); 4394Vector256<T> yVec = Vector256.Create(y); 4395Vector256<T> zVec = Vector256.Create(z); 4415Vector256.Create(y), 4416Vector256.Create(z));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (5)
278Vector256.Create(TOperator.RemainderMaskValue), 282Vector256.Create(TOperator.RemainderMaskValue), 442Vector256<T> yVec = Vector256.Create(y); 463Vector256.Create(TOperator.RemainderMaskValue), 467Vector256.Create(TOperator.RemainderMaskValue),
System\Numerics\Tensors\netcore\TensorPrimitives.AcosPi.cs (1)
35public static Vector256<T> Invoke(Vector256<T> x) => AcosOperator<T>.Invoke(x) / Vector256.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.AsinPi.cs (1)
35public static Vector256<T> Invoke(Vector256<T> x) => AsinOperator<T>.Invoke(x) / Vector256.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.Atan2Pi.cs (1)
76public static Vector256<T> Invoke(Vector256<T> y, Vector256<T> x) => Atan2Operator<T>.Invoke(y, x) / Vector256.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.AtanPi.cs (1)
35public static Vector256<T> Invoke(Vector256<T> x) => AtanOperator<T>.Invoke(x) / Vector256.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
73Vector256<T> xpi = x * Vector256.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10.cs (1)
45public static Vector256<T> Invoke(Vector256<T> x) => ExpOperator<T>.Invoke(x * Vector256.Create(T.CreateTruncating(NaturalLog10)));
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2.cs (1)
45public static Vector256<T> Invoke(Vector256<T> x) => ExpOperator<T>.Invoke(x * Vector256.Create(T.CreateTruncating(NaturalLog2)));
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (1)
98Vector256<byte> nibbleMask = Vector256.Create<byte>(0xF);
System\Numerics\Tensors\netcore\TensorPrimitives.Log10.cs (1)
49public static Vector256<T> Invoke(Vector256<T> x) => LogOperator<T>.Invoke(x) / Vector256.Create(T.CreateTruncating(NaturalLog10));
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
342Vector256<T> limit = Vector256.Create(typeof(T) == typeof(float) ? T.CreateTruncating(Single_RoundLimit) : T.CreateTruncating(Double_RoundLimit));
System\Numerics\Tensors\netcore\TensorPrimitives.ScaleB.cs (1)
35public Vector256<T> Invoke(Vector256<T> x) => x * Vector256.Create(_pow2n);
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (2)
47public static Vector256<T> Invoke(Vector256<T> x) => Vector256.Create(T.One) / (Vector256.Create(T.One) + ExpOperator<T>.Invoke(-x));
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
73Vector256<T> xpi = x * Vector256.Create(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
57Vector256<T> diff = x - Vector256.Create(_subtrahend);
System.Private.CoreLib (71)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (27)
106public static bool All<T>(Vector256<T> vector, T value) => vector == Create(value); 140public static bool Any<T>(Vector256<T> vector, T value) => EqualsAny(vector, Create(value)); 786public static int Count<T>(Vector256<T> vector, T value) => BitOperations.PopCount(Equals(vector, Create(value)).ExtractMostSignificantBits()); 824public static Vector256<byte> Create(byte value) => Create<byte>(value); 831public static Vector256<double> Create(double value) => Create<double>(value); 838public static Vector256<short> Create(short value) => Create<short>(value); 845public static Vector256<int> Create(int value) => Create<int>(value); 852public static Vector256<long> Create(long value) => Create<long>(value); 858public static Vector256<nint> Create(nint value) => Create<nint>(value); 865public static Vector256<nuint> Create(nuint value) => Create<nuint>(value); 873public static Vector256<sbyte> Create(sbyte value) => Create<sbyte>(value); 880public static Vector256<float> Create(float value) => Create<float>(value); 888public static Vector256<ushort> Create(ushort value) => Create<ushort>(value); 896public static Vector256<uint> Create(uint value) => Create<uint>(value); 904public static Vector256<ulong> Create(ulong value) => Create<ulong>(value); 1543public static Vector256<T> CreateSequence<T>(T start, T step) => (Vector256<T>.Indices * step) + Create(start); 1945int result = BitOperations.TrailingZeroCount(Equals(vector, Create(value)).ExtractMostSignificantBits()); 1991return ~IsZero(AndNot(Create<uint>(float.PositiveInfinityBits), vector.AsUInt32())).As<uint, T>(); 1995return ~IsZero(AndNot(Create<ulong>(double.PositiveInfinityBits), vector.AsUInt64())).As<ulong, T>(); 2086return LessThan(Abs(vector).AsUInt32() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>(); 2090return LessThan(Abs(vector).AsUInt64() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>(); 2161return LessThan(Abs(vector).AsUInt32() - Vector256<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>(); 2165return LessThan(Abs(vector).AsUInt64() - Vector256<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>(); 2178public static int LastIndexOf<T>(Vector256<T> vector, T value) => 31 - BitOperations.LeadingZeroCount(Equals(vector, Create(value)).ExtractMostSignificantBits()); 2859public static bool None<T>(Vector256<T> vector, T value) => !EqualsAny(vector, Create(value));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (3)
41get => Vector256.Create(Scalar<T>.AllBitsSet); 104get => Vector256.Create(Scalar<T>.One); 548static Vector256<T> ISimdVector<Vector256<T>, T>.Create(T value) => Vector256.Create(value);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
718Vector256<T> vector = Vector256.Create(value);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (37)
1401Vector256<T> equals, values = Vector256.Create(value); 1592Vector256<TValue> equals, values = Vector256.Create(value); 1818Vector256<TValue> equals, current, values0 = Vector256.Create(value0), values1 = Vector256.Create(value1); 2025Vector256<TValue> equals, current, values0 = Vector256.Create(value0), values1 = Vector256.Create(value1), values2 = Vector256.Create(value2); 2183Vector256<TValue> equals, current, values0 = Vector256.Create(value0), values1 = Vector256.Create(value1), values2 = Vector256.Create(value2), values3 = Vector256.Create(value3); 2347Vector256<TValue> equals, current, values0 = Vector256.Create(value0), values1 = Vector256.Create(value1), 2348values2 = Vector256.Create(value2), values3 = Vector256.Create(value3), values4 = Vector256.Create(value4); 2663Vector256<TValue> equals, current, values0 = Vector256.Create(value0), values1 = Vector256.Create(value1); 2848Vector256<TValue> equals, current, values0 = Vector256.Create(value0), values1 = Vector256.Create(value1), values2 = Vector256.Create(value2); 2998Vector256<TValue> equals, current, values0 = Vector256.Create(value0), values1 = Vector256.Create(value1), values2 = Vector256.Create(value2), values3 = Vector256.Create(value3); 3129Vector256<T> oldValues = Vector256.Create(oldValue); 3130Vector256<T> newValues = Vector256.Create(newValue); 3258Vector256<TValue> equals, current, values0 = Vector256.Create(value0), values1 = Vector256.Create(value1), 3259values2 = Vector256.Create(value2), values3 = Vector256.Create(value3), values4 = Vector256.Create(value4); 3544Vector256<T> lowVector = Vector256.Create(lowInclusive); 3545Vector256<T> rangeVector = Vector256.Create(highInclusive - lowInclusive); 3689Vector256<T> lowVector = Vector256.Create(lowInclusive); 3690Vector256<T> rangeVector = Vector256.Create(highInclusive - lowInclusive); 3802Vector256<T> targetVector = Vector256.Create(value);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (3)
316Vector256<TRight> loweringMask = Vector256.Create(TRight.CreateTruncating(0x20)); 317Vector256<TRight> vecA = Vector256.Create(TRight.CreateTruncating('a')); 318Vector256<TRight> vecZMinusA = Vector256.Create(TRight.CreateTruncating(('z' - 'a')));