Library reference for (c211 matrix)
(draw-matrix matrix)
=> unspecified
Display a graphical form of
matrix
, showing all of the values contained therein.
(make-matrix rows columns)
(make-matrix rows columns value)
=> a matrix
Create a new matrix of size
rows
x columns
. If value
is specified, fill the matrix with that value
. Otherwise, fill it with 0.
(matrix-generator rows columns generator)
=> a matrix
Create a new matrix of size
rows
x columns
by calling the function generator
at each element. generator
should have the form (lambda (r c) ...)
.
(matrix-set! matrix row column value)
=> unspecified
Set the value stored in
matrix
at row
x column
to a new value
.
(print-matrix matrix)
=> unspecified
Print a
matrix
to the REPL. For larger matricies, only the top left corner will be printed.
(print-matrix-cols)
(print-matrix-cols columns)
=> see below
Control how many columns are printed when using
print-matrix
. If columns
is specified, use this for future calls; otherwise, return the current value.
(print-matrix-rows)
(print-matrix-rows rows)
=> see below
Control how many rows are printed when using
print-matrix
. If rows
is specified, use this for future calls; otherwise, return the current value.
(print-matrix-width)
(print-matrix-width width)
=> see below
Control how the width of values that are printed when using
print-matrix
. If width
is specified, use this for future calls; otherwise, return the current value.