Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
hankel-matrix ( n -- matrix )
Vocabulary
math.matrices
Definition
USING:
kernel
math
sequences
;
IN:
math.matrices
:
hankel-matrix
( n -- matrix )
[
iota
dup
]
keep
[
[
+
abs
1
+
dup
]
]
dip
[
>
[
drop
0
]
when
]
curry
compose
cartesian-map
;