99 references to Create
System.Numerics.Tensors (29)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (6)
515
Vector512<T> vresult = Vector512.
Create
(TAggregationOperator.IdentityValue);
619
beg = Vector512.ConditionalSelect(CreateAlignmentMaskVector512<T>((int)misalignment), beg, Vector512.
Create
(TAggregationOperator.IdentityValue));
686
end = Vector512.ConditionalSelect(CreateRemainderMaskVector512<T>((int)trailing), end, Vector512.
Create
(TAggregationOperator.IdentityValue));
1686
Vector512<T> vresult = Vector512.
Create
(TAggregationOperator.IdentityValue);
1808
beg = Vector512.ConditionalSelect(CreateAlignmentMaskVector512<T>((int)misalignment), beg, Vector512.
Create
(TAggregationOperator.IdentityValue));
1882
end = Vector512.ConditionalSelect(CreateRemainderMaskVector512<T>((int)trailing), end, Vector512.
Create
(TAggregationOperator.IdentityValue));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (1)
1968
Vector512<T> yVec = Vector512.
Create
(y);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (3)
2161
Vector512<T> zVec = Vector512.
Create
(z);
3637
Vector512<T> yVec = Vector512.
Create
(y);
3638
Vector512<T> zVec = Vector512.
Create
(z);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (5)
230
Vector512.
Create
(TOperator.RemainderMaskValue),
234
Vector512.
Create
(TOperator.RemainderMaskValue),
392
Vector512<T> yVec = Vector512.
Create
(y);
413
Vector512.
Create
(TOperator.RemainderMaskValue),
417
Vector512.
Create
(TOperator.RemainderMaskValue),
System\Numerics\Tensors\netcore\TensorPrimitives.AcosPi.cs (1)
36
public static Vector512<T> Invoke(Vector512<T> x) => AcosOperator<T>.Invoke(x) / Vector512.
Create
(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.AsinPi.cs (1)
36
public static Vector512<T> Invoke(Vector512<T> x) => AsinOperator<T>.Invoke(x) / Vector512.
Create
(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.Atan2Pi.cs (1)
77
public static Vector512<T> Invoke(Vector512<T> y, Vector512<T> x) => Atan2Operator<T>.Invoke(y, x) / Vector512.
Create
(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.AtanPi.cs (1)
36
public static Vector512<T> Invoke(Vector512<T> x) => AtanOperator<T>.Invoke(x) / Vector512.
Create
(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
96
Vector512<T> xpi = x * Vector512.
Create
(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10.cs (1)
46
public static Vector512<T> Invoke(Vector512<T> x) => ExpOperator<T>.Invoke(x * Vector512.
Create
(T.CreateTruncating(NaturalLog10)));
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2.cs (1)
46
public static Vector512<T> Invoke(Vector512<T> x) => ExpOperator<T>.Invoke(x * Vector512.
Create
(T.CreateTruncating(NaturalLog2)));
System\Numerics\Tensors\netcore\TensorPrimitives.Log10.cs (1)
50
public static Vector512<T> Invoke(Vector512<T> x) => LogOperator<T>.Invoke(x) / Vector512.
Create
(T.CreateTruncating(NaturalLog10));
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (1)
350
Vector512<T> limit = Vector512.
Create
(typeof(T) == typeof(float) ? T.CreateTruncating(Single_RoundLimit) : T.CreateTruncating(Double_RoundLimit));
System\Numerics\Tensors\netcore\TensorPrimitives.ScaleB.cs (1)
36
public Vector512<T> Invoke(Vector512<T> x) => x * Vector512.
Create
(_pow2n);
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (2)
48
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.SinPi.cs (1)
96
Vector512<T> xpi = x * Vector512.
Create
(T.Pi);
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
63
Vector512<T> diff = x - Vector512.
Create
(_subtrahend);
System.Private.CoreLib (70)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (27)
105
public static bool All<T>(Vector512<T> vector, T value) => vector ==
Create
(value);
139
public static bool Any<T>(Vector512<T> vector, T value) => EqualsAny(vector,
Create
(value));
689
public static int Count<T>(Vector512<T> vector, T value) => BitOperations.PopCount(Equals(vector,
Create
(value)).ExtractMostSignificantBits());
727
public static Vector512<byte> Create(byte value) =>
Create
<byte>(value);
734
public static Vector512<double> Create(double value) =>
Create
<double>(value);
741
public static Vector512<short> Create(short value) =>
Create
<short>(value);
748
public static Vector512<int> Create(int value) =>
Create
<int>(value);
755
public static Vector512<long> Create(long value) =>
Create
<long>(value);
761
public static Vector512<nint> Create(nint value) =>
Create
<nint>(value);
768
public static Vector512<nuint> Create(nuint value) =>
Create
<nuint>(value);
776
public static Vector512<sbyte> Create(sbyte value) =>
Create
<sbyte>(value);
783
public static Vector512<float> Create(float value) =>
Create
<float>(value);
791
public static Vector512<ushort> Create(ushort value) =>
Create
<ushort>(value);
799
public static Vector512<uint> Create(uint value) =>
Create
<uint>(value);
807
public static Vector512<ulong> Create(ulong value) =>
Create
<ulong>(value);
1582
public static Vector512<T> CreateSequence<T>(T start, T step) => (Vector512<T>.Indices * step) +
Create
(start);
1971
int result = BitOperations.TrailingZeroCount(Equals(vector,
Create
(value)).ExtractMostSignificantBits());
2017
return ~IsZero(AndNot(
Create
<uint>(float.PositiveInfinityBits), vector.AsUInt32())).As<uint, T>();
2021
return ~IsZero(AndNot(
Create
<ulong>(double.PositiveInfinityBits), vector.AsUInt64())).As<ulong, T>();
2112
return LessThan(Abs(vector).AsUInt32() -
Create
<uint>(float.SmallestNormalBits),
Create
<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>();
2116
return LessThan(Abs(vector).AsUInt64() -
Create
<ulong>(double.SmallestNormalBits),
Create
<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>();
2187
return LessThan(Abs(vector).AsUInt32() - Vector512<uint>.One,
Create
<uint>(float.MaxTrailingSignificand)).As<uint, T>();
2191
return LessThan(Abs(vector).AsUInt64() - Vector512<ulong>.One,
Create
<ulong>(double.MaxTrailingSignificand)).As<ulong, T>();
2204
public static int LastIndexOf<T>(Vector512<T> vector, T value) => 63 - BitOperations.LeadingZeroCount(Equals(vector,
Create
(value)).ExtractMostSignificantBits());
2884
public static bool None<T>(Vector512<T> vector, T value) => !EqualsAny(vector,
Create
(value));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (3)
41
get => Vector512.
Create
(Scalar<T>.AllBitsSet);
104
get => Vector512.
Create
(Scalar<T>.One);
548
static Vector512<T> ISimdVector<Vector512<T>, T>.Create(T value) => Vector512.
Create
(value);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (37)
1370
Vector512<T> current, values = Vector512.
Create
(value);
1561
Vector512<TValue> current, values = Vector512.
Create
(value);
1786
Vector512<TValue> equals, current, values0 = Vector512.
Create
(value0), values1 = Vector512.
Create
(value1);
1993
Vector512<TValue> equals, current, values0 = Vector512.
Create
(value0), values1 = Vector512.
Create
(value1), values2 = Vector512.
Create
(value2);
2149
Vector512<TValue> equals, current, values0 = Vector512.
Create
(value0), values1 = Vector512.
Create
(value1), values2 = Vector512.
Create
(value2), values3 = Vector512.
Create
(value3);
2312
Vector512<TValue> equals, current, values0 = Vector512.
Create
(value0), values1 = Vector512.
Create
(value1),
2313
values2 = Vector512.
Create
(value2), values3 = Vector512.
Create
(value3), values4 = Vector512.
Create
(value4);
2633
Vector512<TValue> equals, current, values0 = Vector512.
Create
(value0), values1 = Vector512.
Create
(value1);
2818
Vector512<TValue> equals, current, values0 = Vector512.
Create
(value0), values1 = Vector512.
Create
(value1), values2 = Vector512.
Create
(value2);
2968
Vector512<TValue> equals, current, values0 = Vector512.
Create
(value0), values1 = Vector512.
Create
(value1), values2 = Vector512.
Create
(value2), values3 = Vector512.
Create
(value3);
3154
Vector512<T> oldValues = Vector512.
Create
(oldValue);
3155
Vector512<T> newValues = Vector512.
Create
(newValue);
3226
Vector512<TValue> equals, current, values0 = Vector512.
Create
(value0), values1 = Vector512.
Create
(value1),
3227
values2 = Vector512.
Create
(value2), values3 = Vector512.
Create
(value3), values4 = Vector512.
Create
(value4);
3573
Vector512<T> lowVector = Vector512.
Create
(lowInclusive);
3574
Vector512<T> rangeVector = Vector512.
Create
(highInclusive - lowInclusive);
3716
Vector512<T> lowVector = Vector512.
Create
(lowInclusive);
3717
Vector512<T> rangeVector = Vector512.
Create
(highInclusive - lowInclusive);
3787
Vector512<T> targetVector = Vector512.
Create
(value);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (3)
245
Vector512<TRight> loweringMask = Vector512.
Create
(TRight.CreateTruncating(0x20));
246
Vector512<TRight> vecA = Vector512.
Create
(TRight.CreateTruncating('a'));
247
Vector512<TRight> vecZMinusA = Vector512.
Create
(TRight.CreateTruncating(('z' - 'a')));