Skip to content

Commit

Permalink
fix for incanter#160
Browse files Browse the repository at this point in the history
problem was that B was declared as optional argument, and it was wrapped into seq, not
passed as matrix
  • Loading branch information
alexott committed Jun 13, 2013
1 parent 996ab26 commit 3950c8f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/incanter-core/src/incanter/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,11 @@
References:
http://en.wikipedia.org/wiki/Matrix_inverse
"
([^Matrix A & B]
(if B
(clx/solve A B)
(clx/i A))))
([^Matrix A ^Matrix B]
(clx/solve A B))
([^Matrix A]
(clx/i A)))

(defn det
" Returns the determinant of the given matrix. Equivalent
Expand Down

0 comments on commit 3950c8f

Please sign in to comment.