168 references to Vector
Microsoft.Data.Analysis (44)
Computations\Arithmetic.netstandard.cs (44)
165if (Vector.IsHardwareAccelerated) 219if (Vector.IsHardwareAccelerated) 273if (Vector.IsHardwareAccelerated) 332if (Vector.IsHardwareAccelerated) 634if (Vector.IsHardwareAccelerated) 688if (Vector.IsHardwareAccelerated) 742if (Vector.IsHardwareAccelerated) 801if (Vector.IsHardwareAccelerated) 1377if (Vector.IsHardwareAccelerated) 1431if (Vector.IsHardwareAccelerated) 1485if (Vector.IsHardwareAccelerated) 1544if (Vector.IsHardwareAccelerated) 1735if (Vector.IsHardwareAccelerated) 1789if (Vector.IsHardwareAccelerated) 1843if (Vector.IsHardwareAccelerated) 1902if (Vector.IsHardwareAccelerated) 2093if (Vector.IsHardwareAccelerated) 2147if (Vector.IsHardwareAccelerated) 2201if (Vector.IsHardwareAccelerated) 2260if (Vector.IsHardwareAccelerated) 2562if (Vector.IsHardwareAccelerated) 2616if (Vector.IsHardwareAccelerated) 2670if (Vector.IsHardwareAccelerated) 2729if (Vector.IsHardwareAccelerated) 3031if (Vector.IsHardwareAccelerated) 3085if (Vector.IsHardwareAccelerated) 3139if (Vector.IsHardwareAccelerated) 3198if (Vector.IsHardwareAccelerated) 3500if (Vector.IsHardwareAccelerated) 3554if (Vector.IsHardwareAccelerated) 3608if (Vector.IsHardwareAccelerated) 3667if (Vector.IsHardwareAccelerated) 3969if (Vector.IsHardwareAccelerated) 4023if (Vector.IsHardwareAccelerated) 4077if (Vector.IsHardwareAccelerated) 4136if (Vector.IsHardwareAccelerated) 4438if (Vector.IsHardwareAccelerated) 4492if (Vector.IsHardwareAccelerated) 4546if (Vector.IsHardwareAccelerated) 4605if (Vector.IsHardwareAccelerated) 4907if (Vector.IsHardwareAccelerated) 4961if (Vector.IsHardwareAccelerated) 5015if (Vector.IsHardwareAccelerated) 5074if (Vector.IsHardwareAccelerated)
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)
32if (Vector.IsHardwareAccelerated && span.Length >= Vector<int>.Count) 37Vector.Widen(new Vector<int>(span.Slice(i)), out Vector<long> low, out Vector<long> high); 43sum += Vector.Sum(sums);
System\Linq\Range.cs (1)
85if (Vector.IsHardwareAccelerated &&
System\Linq\Sum.cs (7)
53&& Vector.IsHardwareAccelerated 85Debug.Assert(Vector.IsHardwareAccelerated); 128Vector<T> data = Vector.LoadUnsafe(ref ptr, index); 132data = Vector.LoadUnsafe(ref ptr, index + (nuint)Vector<T>.Count); 136data = Vector.LoadUnsafe(ref ptr, index + (nuint)Vector<T>.Count * 2); 140data = Vector.LoadUnsafe(ref ptr, index + (nuint)Vector<T>.Count * 3); 160Vector<T> data = Vector.LoadUnsafe(ref ptr, index);
System.Net.WebSockets (2)
System\Net\WebSockets\ManagedWebSocket.cs (2)
1671if (Vector.IsHardwareAccelerated && (toMaskEnd - toMaskPtr) >= Vector<byte>.Count) 1673Vector<byte> maskVector = Vector.AsVectorByte(new Vector<int>(rolledMask));
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 (107)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (82)
43this = Vector.Create(value); 132get => Vector.Create(Scalar<T>.AllBitsSet); 192get => Vector.Create(Scalar<T>.One); 503public static Vector<T> operator *(Vector<T> value, T factor) => value * Vector.Create(factor); 707if (Vector.IsHardwareAccelerated) 711Vector<T> result = Vector.Equals(this, other) | ~(Vector.Equals(this, this) | Vector.Equals(other, other)); 821static int ISimdVector<Vector<T>, T>.Alignment => Vector.Alignment; 830get => Vector.IsHardwareAccelerated; 835static Vector<T> ISimdVector<Vector<T>, T>.Abs(Vector<T> vector) => Vector.Abs(vector); 843static bool ISimdVector<Vector<T>, T>.All(Vector<T> vector, T value) => Vector.All(vector, value); 847static bool ISimdVector<Vector<T>, T>.AllWhereAllBitsSet(Vector<T> vector) => Vector.AllWhereAllBitsSet(vector); 851static Vector<T> ISimdVector<Vector<T>, T>.AndNot(Vector<T> left, Vector<T> right) => Vector.AndNot(left, right); 855static bool ISimdVector<Vector<T>, T>.Any(Vector<T> vector, T value) => Vector.Any(vector, value); 859static bool ISimdVector<Vector<T>, T>.AnyWhereAllBitsSet(Vector<T> vector) => Vector.AnyWhereAllBitsSet(vector); 871static Vector<T> ISimdVector<Vector<T>, T>.Ceiling(Vector<T> vector) => Vector.Ceiling(vector); 875static Vector<T> ISimdVector<Vector<T>, T>.Clamp(Vector<T> value, Vector<T> min, Vector<T> max) => Vector.Clamp(value, min, max); 879static Vector<T> ISimdVector<Vector<T>, T>.ClampNative(Vector<T> value, Vector<T> min, Vector<T> max) => Vector.ClampNative(value, min, max); 883static Vector<T> ISimdVector<Vector<T>, T>.ConditionalSelect(Vector<T> condition, Vector<T> left, Vector<T> right) => Vector.ConditionalSelect(condition, left, right); 887static Vector<T> ISimdVector<Vector<T>, T>.CopySign(Vector<T> value, Vector<T> sign) => Vector.CopySign(value, sign); 900static int ISimdVector<Vector<T>, T>.Count(Vector<T> vector, T value) => Vector.Count(vector, value); 904static int ISimdVector<Vector<T>, T>.CountWhereAllBitsSet(Vector<T> vector) => Vector.CountWhereAllBitsSet(vector); 908static Vector<T> ISimdVector<Vector<T>, T>.Create(T value) => Vector.Create(value); 917static Vector<T> ISimdVector<Vector<T>, T>.Create(ReadOnlySpan<T> values) => Vector.Create(values); 921static Vector<T> ISimdVector<Vector<T>, T>.CreateScalar(T value) => Vector.CreateScalar(value); 925static Vector<T> ISimdVector<Vector<T>, T>.CreateScalarUnsafe(T value) => Vector.CreateScalarUnsafe(value); 937static T ISimdVector<Vector<T>, T>.Dot(Vector<T> left, Vector<T> right) => Vector.Dot(left, right); 941static Vector<T> ISimdVector<Vector<T>, T>.Equals(Vector<T> left, Vector<T> right) => Vector.Equals(left, right); 949static bool ISimdVector<Vector<T>, T>.EqualsAny(Vector<T> left, Vector<T> right) => Vector.EqualsAny(left, right); 953static Vector<T> ISimdVector<Vector<T>, T>.Floor(Vector<T> vector) => Vector.Floor(vector); 961static Vector<T> ISimdVector<Vector<T>, T>.GreaterThan(Vector<T> left, Vector<T> right) => Vector.GreaterThan(left, right); 965static bool ISimdVector<Vector<T>, T>.GreaterThanAll(Vector<T> left, Vector<T> right) => Vector.GreaterThanAll(left, right); 969static bool ISimdVector<Vector<T>, T>.GreaterThanAny(Vector<T> left, Vector<T> right) => Vector.GreaterThanAny(left, right); 973static Vector<T> ISimdVector<Vector<T>, T>.GreaterThanOrEqual(Vector<T> left, Vector<T> right) => Vector.GreaterThanOrEqual(left, right); 977static bool ISimdVector<Vector<T>, T>.GreaterThanOrEqualAll(Vector<T> left, Vector<T> right) => Vector.GreaterThanOrEqualAll(left, right); 981static bool ISimdVector<Vector<T>, T>.GreaterThanOrEqualAny(Vector<T> left, Vector<T> right) => Vector.GreaterThanOrEqualAny(left, right); 985static int ISimdVector<Vector<T>, T>.IndexOf(Vector<T> vector, T value) => Vector.IndexOf(vector, value); 989static int ISimdVector<Vector<T>, T>.IndexOfWhereAllBitsSet(Vector<T> vector) => Vector.IndexOfWhereAllBitsSet(vector); 993static Vector<T> ISimdVector<Vector<T>, T>.IsEvenInteger(Vector<T> vector) => Vector.IsEvenInteger(vector); 997static Vector<T> ISimdVector<Vector<T>, T>.IsFinite(Vector<T> vector) => Vector.IsFinite(vector); 1001static Vector<T> ISimdVector<Vector<T>, T>.IsInfinity(Vector<T> vector) => Vector.IsInfinity(vector); 1005static Vector<T> ISimdVector<Vector<T>, T>.IsInteger(Vector<T> vector) => Vector.IsInteger(vector); 1009static Vector<T> ISimdVector<Vector<T>, T>.IsNaN(Vector<T> vector) => Vector.IsNaN(vector); 1013static Vector<T> ISimdVector<Vector<T>, T>.IsNegative(Vector<T> vector) => Vector.IsNegative(vector); 1017static Vector<T> ISimdVector<Vector<T>, T>.IsNegativeInfinity(Vector<T> vector) => Vector.IsNegativeInfinity(vector); 1021static Vector<T> ISimdVector<Vector<T>, T>.IsNormal(Vector<T> vector) => Vector.IsNormal(vector); 1025static Vector<T> ISimdVector<Vector<T>, T>.IsOddInteger(Vector<T> vector) => Vector.IsOddInteger(vector); 1029static Vector<T> ISimdVector<Vector<T>, T>.IsPositive(Vector<T> vector) => Vector.IsPositive(vector); 1033static Vector<T> ISimdVector<Vector<T>, T>.IsPositiveInfinity(Vector<T> vector) => Vector.IsPositiveInfinity(vector); 1037static Vector<T> ISimdVector<Vector<T>, T>.IsSubnormal(Vector<T> vector) => Vector.IsSubnormal(vector); 1040static Vector<T> ISimdVector<Vector<T>, T>.IsZero(Vector<T> vector) => Vector.IsZero(vector); 1044static int ISimdVector<Vector<T>, T>.LastIndexOf(Vector<T> vector, T value) => Vector.LastIndexOf(vector, value); 1048static int ISimdVector<Vector<T>, T>.LastIndexOfWhereAllBitsSet(Vector<T> vector) => Vector.LastIndexOfWhereAllBitsSet(vector); 1052static Vector<T> ISimdVector<Vector<T>, T>.LessThan(Vector<T> left, Vector<T> right) => Vector.LessThan(left, right); 1056static bool ISimdVector<Vector<T>, T>.LessThanAll(Vector<T> left, Vector<T> right) => Vector.LessThanAll(left, right); 1060static bool ISimdVector<Vector<T>, T>.LessThanAny(Vector<T> left, Vector<T> right) => Vector.LessThanAny(left, right); 1064static Vector<T> ISimdVector<Vector<T>, T>.LessThanOrEqual(Vector<T> left, Vector<T> right) => Vector.LessThanOrEqual(left, right); 1068static bool ISimdVector<Vector<T>, T>.LessThanOrEqualAll(Vector<T> left, Vector<T> right) => Vector.LessThanOrEqualAll(left, right); 1072static bool ISimdVector<Vector<T>, T>.LessThanOrEqualAny(Vector<T> left, Vector<T> right) => Vector.LessThanOrEqualAny(left, right); 1076static Vector<T> ISimdVector<Vector<T>, T>.Load(T* source) => Vector.Load(source); 1080static Vector<T> ISimdVector<Vector<T>, T>.LoadAligned(T* source) => Vector.LoadAligned(source); 1084static Vector<T> ISimdVector<Vector<T>, T>.LoadAlignedNonTemporal(T* source) => Vector.LoadAlignedNonTemporal(source); 1088static Vector<T> ISimdVector<Vector<T>, T>.LoadUnsafe(ref readonly T source) => Vector.LoadUnsafe(in source); 1092static Vector<T> ISimdVector<Vector<T>, T>.LoadUnsafe(ref readonly T source, nuint elementOffset) => Vector.LoadUnsafe(in source, elementOffset); 1096static Vector<T> ISimdVector<Vector<T>, T>.Max(Vector<T> left, Vector<T> right) => Vector.Max(left, right); 1100static Vector<T> ISimdVector<Vector<T>, T>.MaxMagnitude(Vector<T> left, Vector<T> right) => Vector.MaxMagnitude(left, right); 1104static Vector<T> ISimdVector<Vector<T>, T>.MaxMagnitudeNumber(Vector<T> left, Vector<T> right) => Vector.MaxMagnitudeNumber(left, right); 1108static Vector<T> ISimdVector<Vector<T>, T>.MaxNative(Vector<T> left, Vector<T> right) => Vector.MaxNative(left, right); 1112static Vector<T> ISimdVector<Vector<T>, T>.MaxNumber(Vector<T> left, Vector<T> right) => Vector.MaxNumber(left, right); 1116static Vector<T> ISimdVector<Vector<T>, T>.Min(Vector<T> left, Vector<T> right) => Vector.Min(left, right); 1120static Vector<T> ISimdVector<Vector<T>, T>.MinMagnitude(Vector<T> left, Vector<T> right) => Vector.MinMagnitude(left, right); 1124static Vector<T> ISimdVector<Vector<T>, T>.MinMagnitudeNumber(Vector<T> left, Vector<T> right) => Vector.MinMagnitudeNumber(left, right); 1128static Vector<T> ISimdVector<Vector<T>, T>.MinNative(Vector<T> left, Vector<T> right) => Vector.MinNative(left, right); 1132static Vector<T> ISimdVector<Vector<T>, T>.MinNumber(Vector<T> left, Vector<T> right) => Vector.MinNumber(left, right); 1144static Vector<T> ISimdVector<Vector<T>, T>.MultiplyAddEstimate(Vector<T> left, Vector<T> right, Vector<T> addend) => Vector.MultiplyAddEstimate(left, right, addend); 1152static bool ISimdVector<Vector<T>, T>.None(Vector<T> vector, T value) => Vector.None(vector, value); 1156static bool ISimdVector<Vector<T>, T>.NoneWhereAllBitsSet(Vector<T> vector) => Vector.NoneWhereAllBitsSet(vector); 1164static Vector<T> ISimdVector<Vector<T>, T>.Round(Vector<T> vector) => Vector.Round(vector); 1180static Vector<T> ISimdVector<Vector<T>, T>.Sqrt(Vector<T> vector) => Vector.SquareRoot(vector); 1208static T ISimdVector<Vector<T>, T>.Sum(Vector<T> vector) => Vector.Sum(vector); 1216static 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)
2363result = (TVectorDouble)(object)Vector.ConvertToDouble((Vector<long>)(object)vector); 2398result = (TVectorSingle)(object)Vector.ConvertToSingle((Vector<int>)(object)vector); 2522result = (TVector)(object)Vector.Create(value); 2556result = (TVector)(object)Vector.Create(value); 2653result = (TVectorSingle)(object)Vector.Narrow((Vector<double>)(object)lower, (Vector<double>)(object)upper); 2691result = (TVectorUInt32)(object)Vector.ShiftLeft( 2740result = (TVectorUInt64)(object)Vector.ShiftLeft( 2983result = (TVectorDouble)(object)Vector.WidenLower((Vector<float>)(object)vector); 3023result = (TVectorDouble)(object)Vector.WidenUpper((Vector<float>)(object)vector);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.ByteMemOps.cs (1)
433if (!Vector.IsHardwareAccelerated)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (1)
480if (Vector.IsHardwareAccelerated && minLength >= (nuint)Vector<ushort>.Count)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (1)
24if (!Vector.IsHardwareAccelerated) { goto CannotVectorize; }
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (10)
45if (Vector.IsHardwareAccelerated && bufferLength >= 2 * (uint)Vector<ushort>.Count) 52if (Vector.LessThanOrEqualAll(Unsafe.ReadUnaligned<Vector<ushort>>(pBuffer), maxLatin1)) 72if (Vector.GreaterThanAny(Unsafe.Read<Vector<ushort>>(pBuffer), maxLatin1)) 579else if (Vector.IsHardwareAccelerated) 616if (Vector.GreaterThanAny(Vector.BitwiseOr(utf16VectorHigh, utf16VectorLow), maxLatin1)) 622Vector<byte> latin1Vector = Vector.Narrow(utf16VectorHigh, utf16VectorLow); 1075if (Vector.IsHardwareAccelerated) 1088Vector.Widen(Vector.AsVectorByte(latin1Vector), out Vector<ushort> utf16LowVector, out Vector<ushort> utf16HighVector);
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\AllowedBmpCodePointsBitmap.cs (1)
73if (Vector.IsHardwareAccelerated && BitConverter.IsLittleEndian)