Handbook
Glossary
outer-product ( u v -- matrix )
Extra matrix operations
Prev:
kronecker-product ( m1 m2 -- m )
Next:
rank ( matrix -- rank )
Vocabulary
math
.
matrices
.
extras
Inputs
u
a
sequence
v
a
sequence
Outputs
matrix
a
matrix
Word description
Computes the
outer-product product
of
u
and
v
.
Examples
USING: math.matrices.extras prettyprint ; { 5 6 7 } { 1 2 3 } outer-product .
{ { 5 10 15 } { 6 12 18 } { 7 14 21 } }
Definition
USING:
kernel
math.vectors
sequences
;
IN:
math.matrices.extras
:
outer-product
( u v -- matrix )
[
n*v
]
curry
map
;