listlist scale - part-cw/lambdanative GitHub Wiki

#(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))