chickadee » matrix-utils » define-matrix-map

(define-matrix-map type)syntax

Creates procedure MATRIX-MAP:: F * M -> A that, given an input matrix M and procedure F, returns a new matrix A such that A(i,j) = F(M(i,j)). TYPE is one of the following:

f64
Double precision IEEE floating point
f32
Single precision IEEE floating point
s32
Signed 32-bit integer
u32
Unsigned 32-bit integer