public void Test_MatrixToVector_InvalidSize_Helper() { double[,] matrix = { { 1, 2, 3 }, { 1, 2, 3 } }; ArrayMatrixUtils.ToVector(matrix); }
public void Test_MatrixToVector_RowMatrix() { double[,] matrix = { { 1, 2, 3 } }; double[] expected = { 1, 2, 3 }; double[] actual = ArrayMatrixUtils.ToVector(matrix); Assert.That(actual, Is.EqualTo(expected).Within(precision)); }