Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
outer ( u v -- m )
Vocabulary
math.matrices
Inputs and outputs
u
a
sequence
v
a
sequence
m
a
sequence
Word description
Computers the outer product of
u
and
v
.
Examples
USING: math.matrices prettyprint ; { 5 6 7 } { 1 2 3 } outer .
{ { 5 10 15 } { 6 12 18 } { 7 14 21 } }
Definition
USING:
kernel
math.vectors
sequences
;
IN:
math.matrices
:
outer
( u v -- m )
[
n*v
]
curry
map
;