New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cofactor and first_minor methods for the Matrix class #568

wants to merge 9 commits into
base: trunk

add test with a 1xn rectangular matrix

  • Loading branch information...
gogotanaka committed Mar 16, 2014
commit 795393e50785d0ba7314668737b779ebf3cfc972
@@ -248,6 +248,7 @@ def test_minor
def test_first_minor
assert_equal(Matrix.empty(0, 0), Matrix[[1]].first_minor(0, 0))
assert_equal(Matrix.empty(0, 2), Matrix[[1, 4, 2]].first_minor(0, 1))
assert_equal(Matrix[[1, 3]], @m1.first_minor(1, 1))
assert_equal(Matrix[[4, 6]], @m1.first_minor(0, 1))
assert_equal(Matrix[[1, 2]], @m1.first_minor(1, 2))
ProTip! Use n and p to navigate between commits in a pull request.