Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

#(listlist-add m1 m2) listlist-add adds two matrices (list of lists)

Parameter Description
m1 The first matrix (list of lists)
m2 The second matrix (list of lists)

Example

Example 1: Add and subtract two matrices

> (listlist-add '((1 2) (3 4)) '((1 1) (2 2)))
((2 3) (5 6))
> (listlist-subtract '((1 2) (3 4)) '((1 1) (2 2)))
((0 1) (1 2))
Clone this wiki locally