summaryrefslogtreecommitdiff
path: root/src/matrixOperations/magnitude/zmagna.c
diff options
context:
space:
mode:
authortorset2009-02-18 15:16:57 +0000
committertorset2009-02-18 15:16:57 +0000
commit0e2aab4eb9cbe6fec113dce8a0212b8fc29db239 (patch)
tree8f13a7e08a5bc285a51b910b2012f882fa813ffb /src/matrixOperations/magnitude/zmagna.c
parent138f436a9ed2bbe04c9df5acdd6a2b4e9c36807e (diff)
downloadscilab2c-0e2aab4eb9cbe6fec113dce8a0212b8fc29db239.tar.gz
scilab2c-0e2aab4eb9cbe6fec113dce8a0212b8fc29db239.tar.bz2
scilab2c-0e2aab4eb9cbe6fec113dce8a0212b8fc29db239.zip
modify magnitude files
Diffstat (limited to 'src/matrixOperations/magnitude/zmagna.c')
-rw-r--r--src/matrixOperations/magnitude/zmagna.c7
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++){