Handbook
Glossary
<zero-square-matrix> ( n -- matrix )
Matrix operations
Prev:
<zero-matrix> ( m n -- matrix )
Next:
<diagonal-matrix> ( diagonal-seq -- matrix )
Vocabulary
math
.
matrices
Inputs
n
an
integer
Outputs
matrix
a
matrix
Word description
Creates a matrix of size
n x n
, filled with zeroes. Shorthand for
n n <zero-matrix>
.
Examples
USING: math.matrices prettyprint ; 2 <zero-square-matrix> .
{ { 0 0 } { 0 0 } }
Definition
USING:
kernel
;
IN:
math.matrices
:
<zero-square-matrix>
( n -- matrix )
dup
<zero-matrix>
;
inline