Question: uses LinearAlgebra

hi, i have a procedure to multiply two matrices below

mymatrix:=proc(A::Matrix,B::Matrix)

local i,j,k,q,C;

uses LinearAlgebra;

C:=Matrix(RowDimension(A),ColumnDimension(B));

for i from 1 to RowDimension(A) do

for j from 1 to ColumnDimension(B) do

C[i,j]:=0;

for q from 1 to ColumnDimension(A) do

C[i,j]:=C[i,j] + A[i,q]*B[q,j];

od;

od;

od;

return C;

end proc;

 is there anyway to run this procedure without using uses LinearAlgebra

 

Please Wait...