System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (19)
99Vector512<T> sameSign = Vector512.Equals(IsNegative(result).AsInt32(), currentNegative.AsInt32()).As<int, T>();
154sizeof(T) == sizeof(long) ? Vector512.Create((long)i).As<long, T>() :
155sizeof(T) == sizeof(int) ? Vector512.Create(i).As<int, T>() :
156sizeof(T) == sizeof(short) ? Vector512.Create((short)i).As<short, T>() :
157Vector512.Create((byte)i).As<byte, T>();
162sizeof(T) == sizeof(long) ? Vector512<long>.Indices.As<long, T>() :
163sizeof(T) == sizeof(int) ? Vector512<int>.Indices.As<int, T>() :
164sizeof(T) == sizeof(short) ? Vector512<short>.Indices.As<short, T>() :
165Vector512<byte>.Indices.As<byte, T>();
227(int)(long)(object)currentIndex.As<T, long>()[indexInVectorOfFirstMatch] :
228(int)(object)currentIndex.As<T, int>()[indexInVectorOfFirstMatch];
461sizeof(T) == sizeof(long) ? Vector512.LessThan(indices1.AsInt64(), indices2.AsInt64()).As<long, T>() :
462sizeof(T) == sizeof(int) ? Vector512.LessThan(indices1.AsInt32(), indices2.AsInt32()).As<int, T>() :
463sizeof(T) == sizeof(short) ? Vector512.LessThan(indices1.AsInt16(), indices2.AsInt16()).As<short, T>() :
464Vector512.LessThan(indices1.AsByte(), indices2.AsByte()).As<byte, T>();
508if (typeof(T) == typeof(float)) return Avx512F.BlendVariable(left.AsSingle(), right.AsSingle(), (~mask).AsSingle()).As<float, T>();
509if (typeof(T) == typeof(double)) return Avx512F.BlendVariable(left.AsDouble(), right.AsDouble(), (~mask).AsDouble()).As<double, T>();
511if (sizeof(T) == 4) return Avx512F.BlendVariable(left.AsUInt32(), right.AsUInt32(), (~mask).AsUInt32()).As<uint, T>();
512if (sizeof(T) == 8) return Avx512F.BlendVariable(left.AsUInt64(), right.AsUInt64(), (~mask).AsUInt64()).As<ulong, T>();