Walsh matrix: Difference between revisions
Content deleted Content added
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">
|