Matrix Product by olf

BEGIN{RS=RSRS}{n=(NF/2)^.5
for(i=0;i<n;i++){for(j=0;j++<n;){for(s=k=0;k<n;)s+=$(n+j+k++*n*2)*$(2*i*n+k)
printf"%d"(n>j?" ":a),s}print""}$0=a}1

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page