126 references to Vector
Microsoft.CodeAnalysis.UnitTests (2)
Analyzers\AnalyzerFileReferenceAppDomainTests.cs (2)
47
dir.CopyFile(typeof(
Vector
).Assembly.Location);
90
dir.CopyFile(typeof(
Vector
).Assembly.Location);
mscorlib (1)
mscorlib.cs (1)
81
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.
Vector
))]
netstandard (1)
netstandard.cs (1)
1337
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.
Vector
))]
System.Linq (11)
System\Linq\Average.cs (3)
32
if (
Vector
.IsHardwareAccelerated && span.Length >= Vector<int>.Count)
37
Vector
.Widen(new Vector<int>(span.Slice(i)), out Vector<long> low, out Vector<long> high);
43
sum +=
Vector
.Sum(sums);
System\Linq\Range.cs (1)
85
if (
Vector
.IsHardwareAccelerated &&
System\Linq\Sum.cs (7)
53
&&
Vector
.IsHardwareAccelerated
85
Debug.Assert(
Vector
.IsHardwareAccelerated);
128
Vector<T> data =
Vector
.LoadUnsafe(ref ptr, index);
132
data =
Vector
.LoadUnsafe(ref ptr, index + (nuint)Vector<T>.Count);
136
data =
Vector
.LoadUnsafe(ref ptr, index + (nuint)Vector<T>.Count * 2);
140
data =
Vector
.LoadUnsafe(ref ptr, index + (nuint)Vector<T>.Count * 3);
160
Vector<T> data =
Vector
.LoadUnsafe(ref ptr, index);
System.Numerics.Vectors (1)
artifacts\obj\System.Numerics.Vectors\Debug\net10.0\System.Numerics.Vectors.Forwards.cs (1)
7
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.
Vector
))]
System.Private.CoreLib (109)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (84)
43
this =
Vector
.Create(value);
132
get =>
Vector
.Create(Scalar<T>.AllBitsSet);
192
get =>
Vector
.Create(Scalar<T>.One);
503
public static Vector<T> operator *(Vector<T> value, T factor) => value *
Vector
.Create(factor);
580
return value ^
Vector
.Create(-0.0f).As<float, T>();
584
return value ^
Vector
.Create(-0.0).As<double, T>();
707
if (
Vector
.IsHardwareAccelerated)
711
Vector<T> result =
Vector
.Equals(this, other) | ~(
Vector
.Equals(this, this) |
Vector
.Equals(other, other));
821
static int ISimdVector<Vector<T>, T>.Alignment =>
Vector
.Alignment;
830
get =>
Vector
.IsHardwareAccelerated;
835
static Vector<T> ISimdVector<Vector<T>, T>.Abs(Vector<T> vector) =>
Vector
.Abs(vector);
843
static bool ISimdVector<Vector<T>, T>.All(Vector<T> vector, T value) =>
Vector
.All(vector, value);
847
static bool ISimdVector<Vector<T>, T>.AllWhereAllBitsSet(Vector<T> vector) =>
Vector
.AllWhereAllBitsSet(vector);
851
static Vector<T> ISimdVector<Vector<T>, T>.AndNot(Vector<T> left, Vector<T> right) =>
Vector
.AndNot(left, right);
855
static bool ISimdVector<Vector<T>, T>.Any(Vector<T> vector, T value) =>
Vector
.Any(vector, value);
859
static bool ISimdVector<Vector<T>, T>.AnyWhereAllBitsSet(Vector<T> vector) =>
Vector
.AnyWhereAllBitsSet(vector);
871
static Vector<T> ISimdVector<Vector<T>, T>.Ceiling(Vector<T> vector) =>
Vector
.Ceiling(vector);
875
static Vector<T> ISimdVector<Vector<T>, T>.Clamp(Vector<T> value, Vector<T> min, Vector<T> max) =>
Vector
.Clamp(value, min, max);
879
static Vector<T> ISimdVector<Vector<T>, T>.ClampNative(Vector<T> value, Vector<T> min, Vector<T> max) =>
Vector
.ClampNative(value, min, max);
883
static Vector<T> ISimdVector<Vector<T>, T>.ConditionalSelect(Vector<T> condition, Vector<T> left, Vector<T> right) =>
Vector
.ConditionalSelect(condition, left, right);
887
static Vector<T> ISimdVector<Vector<T>, T>.CopySign(Vector<T> value, Vector<T> sign) =>
Vector
.CopySign(value, sign);
900
static int ISimdVector<Vector<T>, T>.Count(Vector<T> vector, T value) =>
Vector
.Count(vector, value);
904
static int ISimdVector<Vector<T>, T>.CountWhereAllBitsSet(Vector<T> vector) =>
Vector
.CountWhereAllBitsSet(vector);
908
static Vector<T> ISimdVector<Vector<T>, T>.Create(T value) =>
Vector
.Create(value);
917
static Vector<T> ISimdVector<Vector<T>, T>.Create(ReadOnlySpan<T> values) =>
Vector
.Create(values);
921
static Vector<T> ISimdVector<Vector<T>, T>.CreateScalar(T value) =>
Vector
.CreateScalar(value);
925
static Vector<T> ISimdVector<Vector<T>, T>.CreateScalarUnsafe(T value) =>
Vector
.CreateScalarUnsafe(value);
937
static T ISimdVector<Vector<T>, T>.Dot(Vector<T> left, Vector<T> right) =>
Vector
.Dot(left, right);
941
static Vector<T> ISimdVector<Vector<T>, T>.Equals(Vector<T> left, Vector<T> right) =>
Vector
.Equals(left, right);
949
static bool ISimdVector<Vector<T>, T>.EqualsAny(Vector<T> left, Vector<T> right) =>
Vector
.EqualsAny(left, right);
953
static Vector<T> ISimdVector<Vector<T>, T>.Floor(Vector<T> vector) =>
Vector
.Floor(vector);
961
static Vector<T> ISimdVector<Vector<T>, T>.GreaterThan(Vector<T> left, Vector<T> right) =>
Vector
.GreaterThan(left, right);
965
static bool ISimdVector<Vector<T>, T>.GreaterThanAll(Vector<T> left, Vector<T> right) =>
Vector
.GreaterThanAll(left, right);
969
static bool ISimdVector<Vector<T>, T>.GreaterThanAny(Vector<T> left, Vector<T> right) =>
Vector
.GreaterThanAny(left, right);
973
static Vector<T> ISimdVector<Vector<T>, T>.GreaterThanOrEqual(Vector<T> left, Vector<T> right) =>
Vector
.GreaterThanOrEqual(left, right);
977
static bool ISimdVector<Vector<T>, T>.GreaterThanOrEqualAll(Vector<T> left, Vector<T> right) =>
Vector
.GreaterThanOrEqualAll(left, right);
981
static bool ISimdVector<Vector<T>, T>.GreaterThanOrEqualAny(Vector<T> left, Vector<T> right) =>
Vector
.GreaterThanOrEqualAny(left, right);
985
static int ISimdVector<Vector<T>, T>.IndexOf(Vector<T> vector, T value) =>
Vector
.IndexOf(vector, value);
989
static int ISimdVector<Vector<T>, T>.IndexOfWhereAllBitsSet(Vector<T> vector) =>
Vector
.IndexOfWhereAllBitsSet(vector);
993
static Vector<T> ISimdVector<Vector<T>, T>.IsEvenInteger(Vector<T> vector) =>
Vector
.IsEvenInteger(vector);
997
static Vector<T> ISimdVector<Vector<T>, T>.IsFinite(Vector<T> vector) =>
Vector
.IsFinite(vector);
1001
static Vector<T> ISimdVector<Vector<T>, T>.IsInfinity(Vector<T> vector) =>
Vector
.IsInfinity(vector);
1005
static Vector<T> ISimdVector<Vector<T>, T>.IsInteger(Vector<T> vector) =>
Vector
.IsInteger(vector);
1009
static Vector<T> ISimdVector<Vector<T>, T>.IsNaN(Vector<T> vector) =>
Vector
.IsNaN(vector);
1013
static Vector<T> ISimdVector<Vector<T>, T>.IsNegative(Vector<T> vector) =>
Vector
.IsNegative(vector);
1017
static Vector<T> ISimdVector<Vector<T>, T>.IsNegativeInfinity(Vector<T> vector) =>
Vector
.IsNegativeInfinity(vector);
1021
static Vector<T> ISimdVector<Vector<T>, T>.IsNormal(Vector<T> vector) =>
Vector
.IsNormal(vector);
1025
static Vector<T> ISimdVector<Vector<T>, T>.IsOddInteger(Vector<T> vector) =>
Vector
.IsOddInteger(vector);
1029
static Vector<T> ISimdVector<Vector<T>, T>.IsPositive(Vector<T> vector) =>
Vector
.IsPositive(vector);
1033
static Vector<T> ISimdVector<Vector<T>, T>.IsPositiveInfinity(Vector<T> vector) =>
Vector
.IsPositiveInfinity(vector);
1037
static Vector<T> ISimdVector<Vector<T>, T>.IsSubnormal(Vector<T> vector) =>
Vector
.IsSubnormal(vector);
1040
static Vector<T> ISimdVector<Vector<T>, T>.IsZero(Vector<T> vector) =>
Vector
.IsZero(vector);
1044
static int ISimdVector<Vector<T>, T>.LastIndexOf(Vector<T> vector, T value) =>
Vector
.LastIndexOf(vector, value);
1048
static int ISimdVector<Vector<T>, T>.LastIndexOfWhereAllBitsSet(Vector<T> vector) =>
Vector
.LastIndexOfWhereAllBitsSet(vector);
1052
static Vector<T> ISimdVector<Vector<T>, T>.LessThan(Vector<T> left, Vector<T> right) =>
Vector
.LessThan(left, right);
1056
static bool ISimdVector<Vector<T>, T>.LessThanAll(Vector<T> left, Vector<T> right) =>
Vector
.LessThanAll(left, right);
1060
static bool ISimdVector<Vector<T>, T>.LessThanAny(Vector<T> left, Vector<T> right) =>
Vector
.LessThanAny(left, right);
1064
static Vector<T> ISimdVector<Vector<T>, T>.LessThanOrEqual(Vector<T> left, Vector<T> right) =>
Vector
.LessThanOrEqual(left, right);
1068
static bool ISimdVector<Vector<T>, T>.LessThanOrEqualAll(Vector<T> left, Vector<T> right) =>
Vector
.LessThanOrEqualAll(left, right);
1072
static bool ISimdVector<Vector<T>, T>.LessThanOrEqualAny(Vector<T> left, Vector<T> right) =>
Vector
.LessThanOrEqualAny(left, right);
1076
static Vector<T> ISimdVector<Vector<T>, T>.Load(T* source) =>
Vector
.Load(source);
1080
static Vector<T> ISimdVector<Vector<T>, T>.LoadAligned(T* source) =>
Vector
.LoadAligned(source);
1084
static Vector<T> ISimdVector<Vector<T>, T>.LoadAlignedNonTemporal(T* source) =>
Vector
.LoadAlignedNonTemporal(source);
1088
static Vector<T> ISimdVector<Vector<T>, T>.LoadUnsafe(ref readonly T source) =>
Vector
.LoadUnsafe(in source);
1092
static Vector<T> ISimdVector<Vector<T>, T>.LoadUnsafe(ref readonly T source, nuint elementOffset) =>
Vector
.LoadUnsafe(in source, elementOffset);
1096
static Vector<T> ISimdVector<Vector<T>, T>.Max(Vector<T> left, Vector<T> right) =>
Vector
.Max(left, right);
1100
static Vector<T> ISimdVector<Vector<T>, T>.MaxMagnitude(Vector<T> left, Vector<T> right) =>
Vector
.MaxMagnitude(left, right);
1104
static Vector<T> ISimdVector<Vector<T>, T>.MaxMagnitudeNumber(Vector<T> left, Vector<T> right) =>
Vector
.MaxMagnitudeNumber(left, right);
1108
static Vector<T> ISimdVector<Vector<T>, T>.MaxNative(Vector<T> left, Vector<T> right) =>
Vector
.MaxNative(left, right);
1112
static Vector<T> ISimdVector<Vector<T>, T>.MaxNumber(Vector<T> left, Vector<T> right) =>
Vector
.MaxNumber(left, right);
1116
static Vector<T> ISimdVector<Vector<T>, T>.Min(Vector<T> left, Vector<T> right) =>
Vector
.Min(left, right);
1120
static Vector<T> ISimdVector<Vector<T>, T>.MinMagnitude(Vector<T> left, Vector<T> right) =>
Vector
.MinMagnitude(left, right);
1124
static Vector<T> ISimdVector<Vector<T>, T>.MinMagnitudeNumber(Vector<T> left, Vector<T> right) =>
Vector
.MinMagnitudeNumber(left, right);
1128
static Vector<T> ISimdVector<Vector<T>, T>.MinNative(Vector<T> left, Vector<T> right) =>
Vector
.MinNative(left, right);
1132
static Vector<T> ISimdVector<Vector<T>, T>.MinNumber(Vector<T> left, Vector<T> right) =>
Vector
.MinNumber(left, right);
1144
static Vector<T> ISimdVector<Vector<T>, T>.MultiplyAddEstimate(Vector<T> left, Vector<T> right, Vector<T> addend) =>
Vector
.MultiplyAddEstimate(left, right, addend);
1152
static bool ISimdVector<Vector<T>, T>.None(Vector<T> vector, T value) =>
Vector
.None(vector, value);
1156
static bool ISimdVector<Vector<T>, T>.NoneWhereAllBitsSet(Vector<T> vector) =>
Vector
.NoneWhereAllBitsSet(vector);
1164
static Vector<T> ISimdVector<Vector<T>, T>.Round(Vector<T> vector) =>
Vector
.Round(vector);
1180
static Vector<T> ISimdVector<Vector<T>, T>.Sqrt(Vector<T> vector) =>
Vector
.SquareRoot(vector);
1208
static T ISimdVector<Vector<T>, T>.Sum(Vector<T> vector) =>
Vector
.Sum(vector);
1216
static Vector<T> ISimdVector<Vector<T>, T>.Truncate(Vector<T> vector) =>
Vector
.Truncate(vector);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (1)
20
/// <summary>Specifies the alignment of the vector as used by the <see cref="LoadAligned(float*)" /> and <see cref="
Vector
.StoreAligned(Vector2, float*)" /> APIs.</summary>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (1)
20
/// <summary>Specifies the alignment of the vector as used by the <see cref="LoadAligned(float*)" /> and <see cref="
Vector
.StoreAligned(Vector3, float*)" /> APIs.</summary>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (1)
19
/// <summary>Specifies the alignment of the vector as used by the <see cref="LoadAligned(float*)" /> and <see cref="
Vector
.StoreAligned(Vector4, float*)" /> APIs.</summary>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (9)
2362
result = (TVectorDouble)(object)
Vector
.ConvertToDouble((Vector<long>)(object)vector);
2397
result = (TVectorSingle)(object)
Vector
.ConvertToSingle((Vector<int>)(object)vector);
2521
result = (TVector)(object)
Vector
.Create(value);
2555
result = (TVector)(object)
Vector
.Create(value);
2648
result = (TVectorSingle)(object)
Vector
.Narrow((Vector<double>)(object)lower, (Vector<double>)(object)upper);
2686
result = (TVectorUInt32)(object)
Vector
.ShiftLeft(
2735
result = (TVectorUInt64)(object)
Vector
.ShiftLeft(
2973
result = (TVectorDouble)(object)
Vector
.WidenLower((Vector<float>)(object)vector);
3013
result = (TVectorDouble)(object)
Vector
.WidenUpper((Vector<float>)(object)vector);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.ByteMemOps.cs (1)
433
if (!
Vector
.IsHardwareAccelerated)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (1)
480
if (
Vector
.IsHardwareAccelerated && minLength >= (nuint)Vector<ushort>.Count)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (1)
24
if (!
Vector
.IsHardwareAccelerated) { goto CannotVectorize; }
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (10)
45
if (
Vector
.IsHardwareAccelerated && bufferLength >= 2 * (uint)Vector<ushort>.Count)
52
if (
Vector
.LessThanOrEqualAll(Unsafe.ReadUnaligned<Vector<ushort>>(pBuffer), maxLatin1))
72
if (
Vector
.GreaterThanAny(Unsafe.Read<Vector<ushort>>(pBuffer), maxLatin1))
579
else if (
Vector
.IsHardwareAccelerated)
616
if (
Vector
.GreaterThanAny(
Vector
.BitwiseOr(utf16VectorHigh, utf16VectorLow), maxLatin1))
622
Vector<byte> latin1Vector =
Vector
.Narrow(utf16VectorHigh, utf16VectorLow);
1075
if (
Vector
.IsHardwareAccelerated)
1088
Vector
.Widen(
Vector
.AsVectorByte(latin1Vector), out Vector<ushort> utf16LowVector, out Vector<ushort> utf16HighVector);
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\AllowedBmpCodePointsBitmap.cs (1)
73
if (
Vector
.IsHardwareAccelerated && BitConverter.IsLittleEndian)