Question: Array of matrices

Hi mapleprimes,

I'm having trouble with the creation of an array which each element would be a matrix. I've tried what seemed natural to me...

SOM := Array(1 .. 10, 1 .. 10,Matrix(28, 28, evalf((1/10)*rand(1 .. 10))));

... but it created an array 10x10 with zeros. Then I tried to fill each element individually...

for i to 10 do for j to 10 do SOM[i][j] := Matrix(nbLin, nbCol, evalf((1/10)*rand(1 .. 10))) end do end do

... but the same thing happened. Isn't there a way to create such an array in Maple ? Otherwise it would be a real shame...

Please Wait...