コード例 #1
0
        public void Test_MatrixToVector_InvalidSize_Helper()
        {
            double[,] matrix =
            {
                { 1, 2, 3 },
                { 1, 2, 3 }
            };

            ArrayMatrixUtils.ToVector(matrix);
        }
コード例 #2
0
        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));
        }