Jump to content

Matrix multiplication: Difference between revisions

m
(Added Easylang)
Line 2,018:
=={{header|EasyLang}}==
<syntaxhighlight>
procfunc[][] matmul . m1[][] m2[][] r[][] .
r[][] = [ ]
for i to len m1[][]
r[][] &= [ ]
Line 2,029 ⟶ 2,028:
.
.
return r[][]
.
mat1print matmul [ [ 1 2 3 ] [ 4 5 6 ] =] [ [ 1 2 3 ] [ 3 4 ] [ 5 6 ] ]
mat2[][] = [ [ 1 2 ] [ 3 4 ] [ 5 6 ] ]
matmul mat1[][] mat2[][] erg[][]
print erg[][]
</syntaxhighlight>
 
2,041

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.