Hello,
On Tue, Apr 5, 2011 at 12:00 AM, pong wrote:
> By that I simply mean a function that on input a real matrix M returns
> the matrix N such that n[i][j] = abs(m[i][j]).
>
> This can be achieve by something like:
>
> n = len(M.rows()); m =len(M.columns()); N = matrix(n,m,lambda i,j:
> abs(M[i
By that I simply mean a function that on input a real matrix M returns
the matrix N such that n[i][j] = abs(m[i][j]).
This can be achieve by something like:
n = len(M.rows()); m =len(M.columns()); N = matrix(n,m,lambda i,j:
abs(M[i][j]));
However, for a square matrix M, M.abs() returns something