Kronecker product: Difference between revisions

m
(Add SuperCollider example)
Line 1,588:
)
 
 
<lang SuperCollider>
// to apply either of the two functions:
(
Line 1,618 ⟶ 1,620:
[ 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0 ],
[ 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0 ]
]
</pre>
 
And:
 
<lang SuperCollider>(
x = f.(
[
[ 1, 2 ],
[ 3, 4 ]
],
[
[ 0, 5 ],
[ 6, 7 ]
]
)
)
</lang>
 
returns:
<pre>
[
[ 0, 5, 0, 10 ],
[ 6, 7, 12, 14 ],
[ 0, 15, 0, 20 ],
[ 18, 21, 24, 28 ]
]
</pre>
83

edits