static int Main(string[] args) { var a = new System.Numerics.Vector<short>(51); for (int i = 0; i < System.Numerics.Vector<short>.Count; ++i) { if (a[i] != 51) { return 0; } } var b = System.Numerics.Vector<int>.One; for (int i = 0; i < System.Numerics.Vector<int>.Count; ++i) { if (b[i] != 1) { return 0; } } var c = System.Numerics.Vector<short>.One; for (int i = 0; i < System.Numerics.Vector<short>.Count; ++i) { if (c[i] != 1) { return 0; } } var d = new System.Numerics.Vector<double>(100.0); for (int i = 0; i < System.Numerics.Vector<double>.Count; ++i) { if (Math.Abs(d[i] - 100.0) > EPS) { return 0; } } var e = new System.Numerics.Vector<float>(100); for (int i = 0; i < System.Numerics.Vector<float>.Count; ++i) { if (Math.Abs(e[i] - 100.0) > EPS) { return 0; } } var f = c * 49; var g = f + a; if (g[0] == 100) { return 100; } return 0; }
static int Main(string[] args) { short[] arr = GenerateArray(60, 5); var a = new System.Numerics.Vector<short>(arr); a = System.Numerics.Vector.Abs(a); if (a[0] != 5) { return 0; } var b = System.Numerics.Vector<int>.One; b = System.Numerics.Vector.Abs(b); if (b[3] != 1) { return 0; } var c = new System.Numerics.Vector<long>(-11); c = System.Numerics.Vector.Abs(c); if (c[1] != 11) { return 0; } var d = new System.Numerics.Vector<double>(-100.0); d = System.Numerics.Vector.Abs(d); if (d[0] != 100) { return 0; } var e = new System.Numerics.Vector<float>(-22); e = System.Numerics.Vector.Abs(e); if (e[3] != 22) { return 0; } var f = new System.Numerics.Vector<ushort>(21); f = System.Numerics.Vector.Abs(f); if (f[7] != 21) { return 0; } var g = new System.Numerics.Vector<ulong>(21); g = System.Numerics.Vector.Abs(g); if (g[1] != 21) { return 0; } return 100; }
static int Main(string[] args) { Random random = new Random(13); var a = new System.Numerics.Vector<short>(25); a = System.Numerics.Vector.SquareRoot(a); if (a[0] != 5) { return 0; } var b = System.Numerics.Vector<int>.One; b = System.Numerics.Vector.SquareRoot(b); if (b[3] != 1) { return 0; } var c = new System.Numerics.Vector<long>(1231111222 * (long)1231111222); c = System.Numerics.Vector.SquareRoot(c); if (c[1] != 1231111222) { return 0; } var d = new System.Numerics.Vector<double>(100.0); d = System.Numerics.Vector.SquareRoot(d); if (((int)d[0]) != 10) { return 0; } var e = new System.Numerics.Vector<float>(64); e = System.Numerics.Vector.SquareRoot(e); if (((int)e[3]) != 8) { return 0; } var f = new System.Numerics.Vector<ushort>(36); f = System.Numerics.Vector.SquareRoot(f); if (f[7] != 6) { return 0; } var g = new System.Numerics.Vector<ulong>(16); g = System.Numerics.Vector.SquareRoot(g); if (g[1] != 4) { return 0; } return 100; }
static int Main(string[] args) { { var a = new System.Numerics.Vector<int>(1); object b = a; if (b is System.Numerics.Vector<int>) { var c = (System.Numerics.Vector<int>)b; if (a != c) { return 0; } } else { return 0; } } { var a = new System.Numerics.Vector4(1); object b = a; if (b is System.Numerics.Vector4) { var c = (System.Numerics.Vector4)b; if (a != c) { return 0; } } else { return 0; } } return 100; }
public static System.Numerics.Vector <T> Equals <T>(System.Numerics.Vector <T> left, System.Numerics.Vector <T> right) where T : struct { throw null; }
public static System.Numerics.Vector <T> ConditionalSelect <T>(System.Numerics.Vector <T> condition, System.Numerics.Vector <T> left, System.Numerics.Vector <T> right) where T : struct { throw null; }
public static System.Numerics.Vector <T> BitwiseAnd <T>(System.Numerics.Vector <T> left, System.Numerics.Vector <T> right) where T : struct { throw null; }
public static System.Numerics.Vector <System.UInt64> AsVectorUInt64 <T>(System.Numerics.Vector <T> value) where T : struct { throw null; }
public static System.Numerics.Vector <System.Single> AsVectorSingle <T>(System.Numerics.Vector <T> value) where T : struct { throw null; }
public static System.Numerics.Vector <T> Abs <T>(System.Numerics.Vector <T> value) where T : struct { throw null; }
public static System.Numerics.Vector <System.Int32> AsVectorInt32 <T>(System.Numerics.Vector <T> value) where T : struct { throw null; }
public static System.Numerics.Vector <T> OnesComplement <T>(System.Numerics.Vector <T> value) where T : struct { throw null; }
public static System.Numerics.Vector <T> Multiply <T>(T left, System.Numerics.Vector <T> right) where T : struct { throw null; }
public static bool LessThanOrEqualAny <T>(System.Numerics.Vector <T> left, System.Numerics.Vector <T> right) where T : struct { throw null; }
public static System.Numerics.Vector <T> GreaterThan <T>(System.Numerics.Vector <T> left, System.Numerics.Vector <T> right) where T : struct { throw null; }
public static bool GreaterThanOrEqualAll <T>(System.Numerics.Vector <T> left, System.Numerics.Vector <T> right) where T : struct { throw null; }