(inverse-matrix m)
(inverse-matrix size m)
Given two arguments, returns the inverse of the given 3x3 matrix.
If an additional `size` arg is provided, returns the inverse of the given matrix of that size.
Source
(defn
inverse-matrix
"Given two arguments, returns the inverse of the given 3x3 matrix.\n If an additional `size` arg is provided, returns the inverse of the given matrix of that size."
([m] ((inv-mat-fn 3) m))
([size m]
(case
size
2
((inv-mat-fn 2) m)
3
((inv-mat-fn 3) m)
4
((inv-mat-fn 4) m)
(inv-mat size m))))