Anonymous user
Kronecker product: Difference between revisions
m
added whitespace to the task's preamble, added "corner" glyphs to the matrices, centered one of the "times" symbol.
(Added C#) |
m (added whitespace to the task's preamble, added "corner" glyphs to the matrices, centered one of the "times" symbol.) |
||
Line 9:
;Test cases:
Show results for each of the following two samples:<br>
Sample 1 (from Wikipedia):
<pre>
┌ ┐ ┌ ┐ ┌ ┐
│3 4│ │6 7│ │ 6 7 12 14│
└ ┘
</pre>
Sample 2:
<pre>
┌ ┐ ┌ ┐ ┌ ┐
│0 1 0│ x │1 1 1 1│ = │0 0 0 0 1 1 1 1 0 0 0 0│▼
└ ┘ └ ┘ │1
│1
│0 0 0 0 1
│0 0 0 0 1
└ ┘
</pre>
See implementations and results below in JavaScript and PARI/GP languages.
|