5 lines
92 B
Mathematica
5 lines
92 B
Mathematica
|
|
function X = abs(X)
|
||
|
|
% sqrt (overloaded)
|
||
|
|
|
||
|
|
X = reshape(sqrt(reshape(X,prod(X.dim),1)),X.dim);
|