Question: how to make this overload apply to linearalgebra package

MatrixOperation := module() option package;  export `+`, LinearAlgebra;
    `+` := proc(a::float, b::float) option overload;
 :-`+`(map(x->x^2,a),map(x->x^2,b));
    end proc;
end module;


with(MatrixOperation);
with(LinearAlgebra):
m := Matrix([[1,2],[3,4]]);
L := MatrixMatrixMultiply(m,m);

1 2  1 2
3 4  3 4

1*1+2*3 = 1 + 6 = 1 after overload + with a+b-a*b
1*2+2*4 = 2 + 8 = -6

L should be Matrix([[1, -6],[....]])

Please Wait...