From 0e2aab4eb9cbe6fec113dce8a0212b8fc29db239 Mon Sep 17 00:00:00 2001 From: torset Date: Wed, 18 Feb 2009 15:16:57 +0000 Subject: modify magnitude files --- src/matrixOperations/magnitude/zmagna.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/matrixOperations/magnitude/zmagna.c') diff --git a/src/matrixOperations/magnitude/zmagna.c b/src/matrixOperations/magnitude/zmagna.c index 3e20cf58..8982da1f 100644 --- a/src/matrixOperations/magnitude/zmagna.c +++ b/src/matrixOperations/magnitude/zmagna.c @@ -18,6 +18,13 @@ double zmagna(doubleComplex* in, int rows, int cols){ int i=0,j=0; double out=0, colSum=0; + + /* Other method : + zrowsuma(in,rows,cols,temp); + out=max(temp,cols); + but we have to malloc a array */ + + if ((rows==1)||(cols==1)){ for(i=0;i