/* Author: Andrei Zorine * delrow(m,i) -- nondestructively deletes the i-th row from the matrix m, * returns a new matrix * delcol(m,i) -- nondestructively deletes the i-th column from the matrix m, * returns a new matrix */ delrow(m,i):=block([m1,j], if i>1 then( m1:row(m,1), for j:2 thru i-1 do m1:addrow(m1,row(m,j))), if i1 then( m1:col(m,1), for j:2 thru i-1 do m1:addcol(m1,col(m,j))), if i