creating empty matrices makemat(nop, rows, cols)
Publié : jeu. févr. 15, 2018 11:08 pm
Hello BP
I think that to save memory, it is necessary to create empty matrices, do you think it is necessary?
if so, the function field could be nop to create an empty matrix
makemat(nop,3,2)
RETURNS
[[ , ],
[ , ],
[ , ]]
with a no empty function
makemat((a,b)-> "("+string(a)+","+string(b)+")",3,2)
RETURNS
[["(0,0)","(0,1)"],
["(1,0)","(1,1)"],
["(2,0)","(2,1)"]]
I think that to save memory, it is necessary to create empty matrices, do you think it is necessary?
if so, the function field could be nop to create an empty matrix
makemat(nop,3,2)
RETURNS
[[ , ],
[ , ],
[ , ]]
with a no empty function
makemat((a,b)-> "("+string(a)+","+string(b)+")",3,2)
RETURNS
[["(0,0)","(0,1)"],
["(1,0)","(1,1)"],
["(2,0)","(2,1)"]]