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

#(listlist-scale m n) listlist-scale scales a matrix (list of lists) by value.

Parameter Description
m Matrix (list of lists)
n Scaling factor

Example

Example 1: Scale a matrix by 2

> (listlist-scale '((1 2) (3 4)) 2)
((2 4) (6 8))
Clone this wiki locally