Kronecker product by nn

(a,b)=Eval.me(''+"$System.in".split('\n\n')*.split('\n').collect{it*.split()})
a.any{b.any{x->println it.sum{n->x.sum{sprintf'%5d',it*n}}}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page