System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (21)
73Vector256<T> sameSign = Vector256.Equals(IsNegative(result).AsInt32(), currentNegative.AsInt32()).As<int, T>();
245sizeof(T) == sizeof(long) ? Vector256.Create((long)i).As<long, T>() :
246sizeof(T) == sizeof(int) ? Vector256.Create(i).As<int, T>() :
247sizeof(T) == sizeof(short) ? Vector256.Create((short)i).As<short, T>() :
248Vector256.Create((byte)i).As<byte, T>();
253sizeof(T) == sizeof(long) ? Vector256<long>.Indices.As<long, T>() :
254sizeof(T) == sizeof(int) ? Vector256<int>.Indices.As<int, T>() :
255sizeof(T) == sizeof(short) ? Vector256<short>.Indices.As<short, T>() :
256Vector256<byte>.Indices.As<byte, T>();
318(int)(long)(object)currentIndex.As<T, long>()[indexInVectorOfFirstMatch] :
319(int)(object)currentIndex.As<T, int>()[indexInVectorOfFirstMatch];
454sizeof(T) == sizeof(long) ? Vector256.LessThan(indices1.AsInt64(), indices2.AsInt64()).As<long, T>() :
455sizeof(T) == sizeof(int) ? Vector256.LessThan(indices1.AsInt32(), indices2.AsInt32()).As<int, T>() :
456sizeof(T) == sizeof(short) ? Vector256.LessThan(indices1.AsInt16(), indices2.AsInt16()).As<short, T>() :
457Vector256.LessThan(indices1.AsByte(), indices2.AsByte()).As<byte, T>();
491if (typeof(T) == typeof(float)) return Avx2.BlendVariable(left.AsSingle(), right.AsSingle(), (~mask).AsSingle()).As<float, T>();
492if (typeof(T) == typeof(double)) return Avx2.BlendVariable(left.AsDouble(), right.AsDouble(), (~mask).AsDouble()).As<double, T>();
494if (sizeof(T) == 1) return Avx2.BlendVariable(left.AsByte(), right.AsByte(), (~mask).AsByte()).As<byte, T>();
495if (sizeof(T) == 2) return Avx2.BlendVariable(left.AsUInt16(), right.AsUInt16(), (~mask).AsUInt16()).As<ushort, T>();
496if (sizeof(T) == 4) return Avx2.BlendVariable(left.AsUInt32(), right.AsUInt32(), (~mask).AsUInt32()).As<uint, T>();
497if (sizeof(T) == 8) return Avx2.BlendVariable(left.AsUInt64(), right.AsUInt64(), (~mask).AsUInt64()).As<ulong, T>();