123 references to GetElement
System.IO.Hashing (4)
System\IO\Hashing\Crc32ParameterSet.Vectorized.cs (2)
138
return x1.AsUInt32().
GetElement
(1);
273
return x1.AsUInt32().
GetElement
(0);
System\IO\Hashing\Crc64ParameterSet.Vectorized.cs (2)
148
return x1.
GetElement
(1);
274
return x1.
GetElement
(0);
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (3)
287
return result.
GetElement
(IndexOfFirstMatch(nanMask));
306
return current.
GetElement
(IndexOfFirstMatch(nanMask));
325
return current.
GetElement
(IndexOfFirstMatch(nanMask));
System.Private.CoreLib (116)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (2)
437
Vector128<float> result = matrix.X.AsVector128Unsafe() * position.
GetElement
(0);
438
return Vector128.MultiplyAddEstimate(matrix.Y.AsVector128Unsafe(), Vector128.Create(position.
GetElement
(1)), result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (40)
206
impl.W = value.AsVector128Unsafe().WithElement(3, impl.W.
GetElement
(3));
393
return impl.X.
GetElement
(column);
398
return impl.Y.
GetElement
(column);
403
return impl.Z.
GetElement
(column);
408
return impl.W.
GetElement
(column);
834
faceDir = (float.Abs(axisY.
GetElement
(2)) > BillboardMinAngle) ? Vector128.CreateScalar(1.0f) : Vector128.Create(0.0f, 0.0f, -1.0f, 0.0f);
896
faceDir = (float.Abs(axisY.
GetElement
(2)) > BillboardMinAngle) ? Vector128.Create(-1.0f, 0.0f, 0.0f, 0.0f) : Vector128.Create(0.0f, 0.0f, -1.0f, 0.0f);
934
float xx = quaternion.
GetElement
(0) * quaternion.
GetElement
(0);
935
float yy = quaternion.
GetElement
(1) * quaternion.
GetElement
(1);
936
float zz = quaternion.
GetElement
(2) * quaternion.
GetElement
(2);
938
float xy = quaternion.
GetElement
(0) * quaternion.
GetElement
(1);
939
float wz = quaternion.
GetElement
(2) * quaternion.
GetElement
(3);
940
float xz = quaternion.
GetElement
(0) * quaternion.
GetElement
(2);
941
float wy = quaternion.
GetElement
(1) * quaternion.
GetElement
(3);
942
float yz = quaternion.
GetElement
(1) * quaternion.
GetElement
(2);
943
float wx = quaternion.
GetElement
(0) * quaternion.
GetElement
(3);
1406
result.X = Vector128.MultiplyAddEstimate(s, Vector128.Create(p.
GetElement
(0)), Vector128.CreateScalar(1.0f));
1407
result.Y = Vector128.MultiplyAddEstimate(s, Vector128.Create(p.
GetElement
(1)), Vector128.Create(0.0f, 1.0f, 0.0f, 0.0f));
1408
result.Z = Vector128.MultiplyAddEstimate(s, Vector128.Create(p.
GetElement
(2)), Vector128.Create(0.0f, 0.0f, 1.0f, 0.0f));
1409
result.W = Vector128.MultiplyAddEstimate(s, Vector128.Create(p.
GetElement
(3)), Vector128.Create(0.0f, 0.0f, 0.0f, 1.0f));
1682
result.X = Vector128.MultiplyAddEstimate(l, Vector128.Create(p.
GetElement
(0)), Vector128.Create(dot, 0, 0, 0));
1683
result.Y = Vector128.MultiplyAddEstimate(l, Vector128.Create(p.
GetElement
(1)), Vector128.Create(0, dot, 0, 0));
1684
result.Z = Vector128.MultiplyAddEstimate(l, Vector128.Create(p.
GetElement
(2)), Vector128.Create(0, 0, dot, 0));
1685
result.W = Vector128.MultiplyAddEstimate(l, Vector128.Create(p.
GetElement
(3)), Vector128.Create(0, 0, 0, dot));
1748
result.X = Vector128.Create(result.W.
GetElement
(0), 0f, 0f, 0f);
1749
result.Y = Vector128.Create(0f, -result.W.
GetElement
(1), 0f, 0f);
1780
result.X = Vector128.Create(result.W.
GetElement
(0), 0f, 0f, 0f);
1781
result.Y = Vector128.Create(0f, -result.W.
GetElement
(1), 0f, 0f);
1905
float fAbsX = fAbs.
GetElement
(0);
1906
float fAbsY = fAbs.
GetElement
(1);
1907
float fAbsZ = fAbs.
GetElement
(2);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.cs (47)
78
readonly get => this.AsVector128().
GetElement
(index);
188
Vector128<float> result = value1 * value2.
GetElement
(3);
189
result = Vector128.MultiplyAddEstimate(Vector128.Shuffle(value1, Vector128.Create(3, 2, 1, 0)) * value2.
GetElement
(0), Vector128.Create(+1.0f, -1.0f, +1.0f, -1.0f), result);
190
result = Vector128.MultiplyAddEstimate(Vector128.Shuffle(value1, Vector128.Create(2, 3, 0, 1)) * value2.
GetElement
(1), Vector128.Create(+1.0f, +1.0f, -1.0f, -1.0f), result);
191
result = Vector128.MultiplyAddEstimate(Vector128.Shuffle(value1, Vector128.Create(1, 0, 3, 2)) * value2.
GetElement
(2), Vector128.Create(-1.0f, +1.0f, +1.0f, -1.0f), result);
254
float trace = matrix.X.
GetElement
(0) + matrix.Y.
GetElement
(1) + matrix.Z.
GetElement
(2);
262
q = q.WithElement(0, (matrix.Y.
GetElement
(2) - matrix.Z.
GetElement
(1)) * invS);
263
q = q.WithElement(1, (matrix.Z.
GetElement
(0) - matrix.X.
GetElement
(2)) * invS);
264
q = q.WithElement(2, (matrix.X.
GetElement
(1) - matrix.Y.
GetElement
(0)) * invS);
269
if (matrix.X.
GetElement
(0) >= matrix.Y.
GetElement
(1) && matrix.X.
GetElement
(0) >= matrix.Z.
GetElement
(2))
271
float s = float.Sqrt(1.0f + matrix.X.
GetElement
(0) - matrix.Y.
GetElement
(1) - matrix.Z.
GetElement
(2));
274
q = q.WithElement(1, (matrix.X.
GetElement
(1) + matrix.Y.
GetElement
(0)) * invS);
275
q = q.WithElement(2, (matrix.X.
GetElement
(2) + matrix.Z.
GetElement
(0)) * invS);
276
q = q.WithElement(3, (matrix.Y.
GetElement
(2) - matrix.Z.
GetElement
(1)) * invS);
278
else if (matrix.Y.
GetElement
(1) > matrix.Z.
GetElement
(2))
280
float s = float.Sqrt(1.0f + matrix.Y.
GetElement
(1) - matrix.X.
GetElement
(0) - matrix.Z.
GetElement
(2));
282
q = q.WithElement(0, (matrix.Y.
GetElement
(0) + matrix.X.
GetElement
(1)) * invS);
284
q = q.WithElement(2, (matrix.Z.
GetElement
(1) + matrix.Y.
GetElement
(2)) * invS);
285
q = q.WithElement(3, (matrix.Z.
GetElement
(0) - matrix.X.
GetElement
(2)) * invS);
289
float s = float.Sqrt(1.0f + matrix.Z.
GetElement
(2) - matrix.X.
GetElement
(0) - matrix.Y.
GetElement
(1));
291
q = q.WithElement(0, (matrix.Z.
GetElement
(0) + matrix.X.
GetElement
(2)) * invS);
292
q = q.WithElement(1, (matrix.Z.
GetElement
(1) + matrix.Y.
GetElement
(2)) * invS);
294
q = q.WithElement(3, (matrix.X.
GetElement
(1) - matrix.Y.
GetElement
(0)) * invS);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (8)
941
Vector128<float> result = matrix.X.AsVector128Unsafe() * position.
GetElement
(0);
942
result = Vector128.MultiplyAddEstimate(matrix.Y.AsVector128Unsafe(), Vector128.Create(position.
GetElement
(1)), result);
959
Vector128<float> result = matrix.X * position.
GetElement
(0);
960
result = Vector128.MultiplyAddEstimate(matrix.Y, Vector128.Create(position.
GetElement
(1)), result);
981
Vector128<float> result = matrix.X.AsVector128() * normal.
GetElement
(0);
982
result = Vector128.MultiplyAddEstimate(matrix.Y.AsVector128(), Vector128.Create(normal.
GetElement
(1)), result);
996
Vector128<float> result = matrix.X * normal.
GetElement
(0);
997
result = Vector128.MultiplyAddEstimate(matrix.Y, Vector128.Create(normal.
GetElement
(1)), result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.Extensions.cs (1)
44
return vector.AsVector128Unsafe().
GetElement
(index);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (6)
982
Vector128<float> result = matrix.X * position.
GetElement
(0);
983
result = Vector128.MultiplyAddEstimate(matrix.Y, Vector128.Create(position.
GetElement
(1)), result);
984
result = Vector128.MultiplyAddEstimate(matrix.Z, Vector128.Create(position.
GetElement
(2)), result);
1005
Vector128<float> result = matrix.X * normal.
GetElement
(0);
1006
result = Vector128.MultiplyAddEstimate(matrix.Y, Vector128.Create(normal.
GetElement
(1)), result);
1007
result = Vector128.MultiplyAddEstimate(matrix.Z, Vector128.Create(normal.
GetElement
(2)), result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.Extensions.cs (1)
39
return vector.AsVector128Unsafe().
GetElement
(index);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (5)
246
readonly get => this.AsVector128().
GetElement
(index);
1058
Vector128<float> result = matrix.X * vector.
GetElement
(0);
1059
result = Vector128.MultiplyAddEstimate(matrix.Y, Vector128.Create(vector.
GetElement
(1)), result);
1060
result = Vector128.MultiplyAddEstimate(matrix.Z, Vector128.Create(vector.
GetElement
(2)), result);
1061
result = Vector128.MultiplyAddEstimate(matrix.W, Vector128.Create(vector.
GetElement
(3)), result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.Extensions.cs (2)
38
/// <inheritdoc cref="Vector128.
GetElement
{T}(Vector128{T}, int)" />
40
public static float GetElement(this Vector4 vector, int index) => vector.AsVector128().
GetElement
(index);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (2)
127
public T this[int index] => this.
GetElement
(index);
608
static T ISimdVector<Vector128<T>, T>.GetElement(Vector128<T> vector, int index) => vector.
GetElement
(index);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (1)
164
if (valuesByLowNibble.
GetElement
(0) == 0 && !lookup.Contains(0))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Transcoding.cs (1)
1091
possibleNonAsciiQWord = utf16Data.AsUInt64().
GetElement
(1);