Matrix multiplication: Difference between revisions
m
→{{header|PowerShell}}
m (→{{header|BASIC}}: - put full basic in subsection) |
|||
Line 3,567:
<lang PowerShell>
function multarrays($a, $b) {
$n,$m,$p = ($a.Count - 1), ($b.Count - 1), ($b[0].Count - 1)
if ($a[0].Count -
foreach
$c[$i] =
}
}
$c
}
function show($a) { $a | foreach{"$_"}}
$a = @(@(1,2),@(3,4))
$b = @(@(5,6),@(7,8))
|