public void Multiply() { float[] x = { 1, 2, 3 }; float[] y = { 10, 10, 10 }; float[] result = new float[x.Length]; float[] expected = { 10f, 20f, 30f }; VectorOp.Multiply(x, y, result); Assert.Equal(expected, result); }
public void MultiplyWithScalar() { float scalar = 10.0f; float[] x = { 1, 2, 3 }; float[] result = new float[x.Length]; float[] expected = { 10f, 20f, 30f }; VectorOp.Multiply(x, scalar, result); Assert.Equal(expected, result); }