public void OuterProductTest()
{
double[] a = { 1, 2, 3, 4 };
double[] b = { 1, 2, 3, 4 };
double[,] expected =
{
{ 1.000, 2.000, 3.000, 4.000 },
{ 2.000, 4.000, 6.000, 8.000 },
{ 3.000, 6.000, 9.000, 12.000 },
{ 4.000, 8.000, 12.000, 16.000 }
};
double[,] actual;
actual = Matrix.OuterProduct(a, b);
Assert.IsTrue(expected.IsEqual(actual));
}