Jump to content

Matrix chain multiplication: Difference between revisions

Modified Lua and Matlab output (wrong tag)
(Added Lua)
(Modified Lua and Matlab output (wrong tag))
Line 644:
end</lang>
 
{{out}}
'''Output'''
 
<lang matlab>[r,s] = optim([1,5,25,30,100,70,2,1,100,250,1,1000,2])
Line 727:
end</lang>
 
{{out}}
'''Output'''
 
<lang luapre>Dims : [5, 6, 3, 1]
Order : (A1(A2A3))
Cost : 48
Line 740:
Order : (A1((((((A2A3)A4)(((A5A6)A7)A8))A9)A10)A11))
Cost : 1773740
</langpre>
 
=={{header|Perl}}==
{{trans|Perl 6}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.