Strassen's algorithm: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(Add MATLAB implementation)
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 1,434:
 
I've used the Phix entry's examples to test the Strassen algorithm implementation.
<syntaxhighlight lang="ecmascriptwren">class Matrix {
construct new(a) {
if (a.type != List || a.count == 0 || a[0].type != List || a[0].count == 0 || a[0][0].type != Num) {
Line 1,604:
{{libheader|Wren-matrix}}
Since the above version was written, a Matrix module has been added and the following version uses it. The output is exactly the same as before.
<syntaxhighlight lang="ecmascriptwren">import "./matrix" for Matrix
var params = Fn.new { |r, c|
9,485

edits