Walsh matrix: Difference between revisions
m
→{{header|jq}}
m (→{{header|jq}}) |
m (→{{header|jq}}) |
||
Line 803:
<syntaxhighlight lang="jq">
## Generate a Walsh matrix of size 2^$n for $n >= 1
def
. as $n
| [[1, 1], [1, -1]] as $w2
| if $n < 2 then $w2 else kprod($w2; $n - 1 |
</syntaxhighlight>
<syntaxhighlight lang="jq">
|