Handbook
Glossary
<zero-matrix> ( m n -- matrix )
Matrix operations
Prev:
<matrix-by-indices> ( ... m n quot: ( ... m' n' -- ... elt ) -- ... matrix )
Next:
<zero-square-matrix> ( n -- matrix )
Vocabulary
math
.
matrices
Inputs
m
an
integer
n
an
integer
Outputs
matrix
a
matrix
Word description
Creates a matrix of size
m x n
, filled with zeroes.
Examples
USING: math.matrices prettyprint ; 2 3 <zero-matrix> .
{ { 0 0 0 } { 0 0 0 } }
Definition
IN:
math.matrices
:
<zero-matrix>
( m n -- matrix )
0
<matrix>
;
inline