public void Multiply() { var inputL = GetTestMatrix(); var inputR = GetTestMatrix(); var inputSimdL = (NMatrix4d)inputL; var inputSimdR = (NMatrix4d)inputR; var expected = Matrix4d.Mult(inputL, inputR); var actual = NMatrix4d.Multiply(inputSimdL, inputSimdR); Asserts.AreEqual(expected, actual, "multiply"); }
public void Multiply_ByRef() { var inputL = GetTestMatrix(); var inputR = GetTestMatrix(); var inputSimdL = (NMatrix4d)inputL; var inputSimdR = (NMatrix4d)inputR; Matrix4d expected; NMatrix4d actual; Matrix4d.Mult(ref inputL, ref inputR, out expected); NMatrix4d.Multiply(ref inputSimdL, ref inputSimdR, out actual); Asserts.AreEqual(expected, actual, "multiply"); }