listlist cofactor - part-cw/lambdanative GitHub Wiki

#(listlist-cofactor m) listlist-cofactor returns the cofactor of a matrix (list of lists).

Parameter Description
m Matrix (list of lists)

Example

Example 1: Obtain the cofactor of a matrix

> (listlist-cofactor '((1 2 3) (1 0 2) (1 2 1))) 
((-4 1 2) (4 -2 0) (4 1 -2))