diff --git a/test/matrix/test_matrix.rb b/test/matrix/test_matrix.rb index 8146edc..6bbea28 100644 --- a/test/matrix/test_matrix.rb +++ b/test/matrix/test_matrix.rb @@ -8,6 +8,7 @@ class TestMatrix < Test::Unit::TestCase @m3 = @m1.clone @m4 = Matrix[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]] @n1 = Matrix[[2,3,4], [5,6,7]] + @c1 = Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]] end def test_matrix @@ -389,6 +390,10 @@ class TestMatrix < Test::Unit::TestCase assert_equal(m.lup.solve([2, 5]), Vector[(1/1), Rational(1,2)]) end + def test_conjugate + assert_equal(Matrix[[Complex(1,-2), Complex(0,-1), 0], [1, 2, 3]], @c1.conjugate) + end + def test_row_vectors assert_equal([Vector[1,2,3], Vector[4,5,6]], @m1.row_vectors) end