Anonymous user
Matrix multiplication: Difference between revisions
→{{header|Lambdatalk}}
m (→JS ES6) |
|||
Line 2,749:
{def mat*mat
{lambda {:a :b}
{
{
{+ {S.map {{lambda {:a :b :i :j :k}
{* {
{
} :a :b :i :j} {S.serie 0 {- {
} :a :b :i} {S.serie 0 {- {
} :a :b} {S.serie 0 {- {
}}}
-> mat*mat
{def A {#.new {#.new 1 2}▼
{#.new 3 4}▼
{def A
{
{
-> A
-> B
{mat*mat {A} {B}}
-> [[
[19,26,33],
[29,40,51],
|