152 references to GetElementUnsafe
System.Private.CoreLib (152)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (126)
126T element = Scalar<T>.Abs(value.GetElementUnsafe(index)); 153T value = Scalar<T>.AddSaturate(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 376T value = Scalar<T>.Ceiling(vector.GetElementUnsafe(index)); 396double element = Scalar<double>.Ceiling(value.GetElementUnsafe(index)); 415float element = Scalar<float>.Ceiling(value.GetElementUnsafe(index)); 522int element = float.ConvertToInteger<int>(value.GetElementUnsafe(i)); 539int element = float.ConvertToIntegerNative<int>(value.GetElementUnsafe(i)); 556long element = double.ConvertToInteger<long>(value.GetElementUnsafe(i)); 573long element = double.ConvertToIntegerNative<long>(value.GetElementUnsafe(i)); 590float element = value.GetElementUnsafe(i); 631uint element = float.ConvertToInteger<uint>(value.GetElementUnsafe(i)); 649uint element = float.ConvertToIntegerNative<uint>(value.GetElementUnsafe(i)); 667ulong element = double.ConvertToInteger<ulong>(value.GetElementUnsafe(i)); 685ulong element = double.ConvertToIntegerNative<ulong>(value.GetElementUnsafe(i)); 699T value = T.Cos(vector.GetElementUnsafe(index)); 757T element = Scalar<T>.CopySign(value.GetElementUnsafe(index), sign.GetElementUnsafe(index)); 888T value = T.DegreesToRadians(degrees.GetElementUnsafe(index)); 962T value = Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1016if (Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1032T value = T.Exp(vector.GetElementUnsafe(index)); 1093T value = Scalar<T>.Floor(vector.GetElementUnsafe(index)); 1113double element = Scalar<double>.Floor(value.GetElementUnsafe(index)); 1132float element = Scalar<float>.Floor(value.GetElementUnsafe(index)); 1156double value = double.FusedMultiplyAdd(left.GetElementUnsafe(index), right.GetElementUnsafe(index), addend.GetElementUnsafe(index)); 1180float value = float.FusedMultiplyAdd(left.GetElementUnsafe(index), right.GetElementUnsafe(index), addend.GetElementUnsafe(index)); 1203return vector.GetElementUnsafe(index); 1219T value = Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1265if (!Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1285if (Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1307T value = Scalar<T>.GreaterThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1353if (!Scalar<T>.GreaterThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1373if (Scalar<T>.GreaterThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1389T value = T.Hypot(x.GetElementUnsafe(index), y.GetElementUnsafe(index)); 1716T value = T.Lerp(x.GetElementUnsafe(index), y.GetElementUnsafe(index), amount.GetElementUnsafe(index)); 1774T value = Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1820if (!Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1840if (Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1862T value = Scalar<T>.LessThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1908if (!Scalar<T>.LessThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1928if (Scalar<T>.LessThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 2013T value = T.Log(vector.GetElementUnsafe(index)); 2055T value = T.Log2(vector.GetElementUnsafe(index)); 2105T value = Scalar<T>.Max(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2128T value = Scalar<T>.MaxMagnitude(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2151T value = Scalar<T>.MaxMagnitudeNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2174T value = Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? left.GetElementUnsafe(index) : right.GetElementUnsafe(index); 2197T value = Scalar<T>.MaxNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2220T value = Scalar<T>.Min(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2243T value = Scalar<T>.MinMagnitude(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2266T value = Scalar<T>.MinMagnitudeNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2289T value = Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? left.GetElementUnsafe(index) : right.GetElementUnsafe(index); 2312T value = Scalar<T>.MinNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2352T value = Scalar<T>.MultiplyAddEstimate(left.GetElementUnsafe(index), right.GetElementUnsafe(index), addend.GetElementUnsafe(index)); 2368double element = double.MultiplyAddEstimate(left.GetElementUnsafe(index), right.GetElementUnsafe(index), addend.GetElementUnsafe(index)); 2384float element = float.MultiplyAddEstimate(left.GetElementUnsafe(index), right.GetElementUnsafe(index), addend.GetElementUnsafe(index)); 2401TResult value = TResult.CreateTruncating(low.GetElementUnsafe(i)); 2407TResult value = TResult.CreateTruncating(high.GetElementUnsafe(i - Vector<TSource>.Count)); 2470TResult value = TResult.CreateSaturating(low.GetElementUnsafe(i)); 2476TResult value = TResult.CreateSaturating(high.GetElementUnsafe(i - Vector<TSource>.Count)); 2574T value = T.RadiansToDegrees(radians.GetElementUnsafe(index)); 2632T value = Scalar<T>.Round(vector.GetElementUnsafe(index)); 2885T value = T.Sin(vector.GetElementUnsafe(index)); 2928(T sinValue, T cosValue) = T.SinCos(vector.GetElementUnsafe(index)); 2976T element = Scalar<T>.Sqrt(value.GetElementUnsafe(index)); 3071T value = Scalar<T>.SubtractSaturate(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 3090sum = Scalar<T>.Add(sum, value.GetElementUnsafe(index)); 3105return vector.GetElementUnsafe(0); 3131T value = Scalar<T>.Truncate(vector.GetElementUnsafe(index)); 3282ushort value = source.GetElementUnsafe(i); 3300int value = source.GetElementUnsafe(i); 3318long value = source.GetElementUnsafe(i); 3337short value = source.GetElementUnsafe(i); 3355double value = source.GetElementUnsafe(i); 3374uint value = source.GetElementUnsafe(i); 3393ulong value = source.GetElementUnsafe(i); 3412ushort value = source.GetElementUnsafe(i); 3430int value = source.GetElementUnsafe(i); 3448long value = source.GetElementUnsafe(i); 3467short value = source.GetElementUnsafe(i); 3485double value = source.GetElementUnsafe(i); 3504uint value = source.GetElementUnsafe(i); 3523ulong value = source.GetElementUnsafe(i);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (26)
232T value = Scalar<T>.Add(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 255ulong value = vleft.GetElementUnsafe(index) & vright.GetElementUnsafe(index); 278ulong value = vleft.GetElementUnsafe(index) | vright.GetElementUnsafe(index); 297T value = Scalar<T>.Divide(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 316T value = Scalar<T>.Divide(left.GetElementUnsafe(index), right); 333if (!Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 357ulong value = vleft.GetElementUnsafe(index) ^ vright.GetElementUnsafe(index); 472T element = Scalar<T>.ShiftLeft(value.GetElementUnsafe(index), shiftCount); 491T value = Scalar<T>.Multiply(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 526ulong element = ~vector.GetElementUnsafe(index); 545T element = Scalar<T>.ShiftRightArithmetic(value.GetElementUnsafe(index), shiftCount); 564T value = Scalar<T>.Subtract(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 615T element = Scalar<T>.ShiftRightLogical(value.GetElementUnsafe(index), shiftCount); 726if (!Scalar<T>.ObjectEquals(self.GetElementUnsafe(index), other.GetElementUnsafe(index))) 743T value = this.GetElementUnsafe(index); 771sb.Append(((IFormattable)this.GetElementUnsafe(0)).ToString(format, formatProvider)); 777sb.Append(((IFormattable)this.GetElementUnsafe(i)).ToString(format, formatProvider));