public void TestToVector() { var m1 = new MatrixD(new double[] { 1, 2, 3, 4 }, 2, 2); var v1 = m1.ToVector(); Assert.AreEqual<VectorD>(new VectorD(1, 2, 3, 4), v1); }