diff options
Diffstat (limited to 'src/matrixOperations/magnitude/zmagna.c')
-rw-r--r-- | src/matrixOperations/magnitude/zmagna.c | 7 |
1 files changed, 7 insertions, 0 deletions
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<cols*rows;i++){ |