~ubuntu-branches/ubuntu/precise/scilab/precise

« back to all changes in this revision

Viewing changes to modules/scicos_blocks/src/c/matz_reimc.c

Tags: 5.3.0-1ubuntu1
* New upstream release
* URL in the watch file updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
*
19
19
* See the file ./license.txt
20
20
*/
 
21
/*--------------------------------------------------------------------------*/ 
21
22
#include "scicos_block4.h"
22
 
 
23
 
void matz_reimc(scicos_block *block,int flag)
 
23
#include "dynlib_scicos_blocks.h"
 
24
/*--------------------------------------------------------------------------*/ 
 
25
SCICOS_BLOCKS_IMPEXP void matz_reimc(scicos_block *block,int flag)
24
26
{
25
 
  double *u1;
26
 
  double *u2;
27
 
  double *y1r, *y1i;
28
 
 
29
 
 
30
 
  int nu,mu,i;
31
 
 
32
 
  mu=GetOutPortRows(block,1);
33
 
  nu=GetOutPortCols(block,1);
34
 
  u1=GetRealInPortPtrs(block,1);
35
 
  u2=GetRealInPortPtrs(block,2);
36
 
  y1r=GetRealOutPortPtrs(block,1);
37
 
  y1i=GetImagOutPortPtrs(block,1);
38
 
  
39
 
  for (i=0;i<mu*nu;i++) 
40
 
        {*(y1r+i)=*(u1+i);
41
 
         *(y1i+i)=*(u2+i);}
 
27
        int i = 0;
 
28
 
 
29
        int mu = GetOutPortRows(block,1);
 
30
        int nu = GetOutPortCols(block,1);
 
31
        double *u1 = GetRealInPortPtrs(block,1);
 
32
        double *u2 = GetRealInPortPtrs(block,2);
 
33
        double *y1r = GetRealOutPortPtrs(block,1);
 
34
        double *y1i = GetImagOutPortPtrs(block,1);
 
35
 
 
36
        for (i=0;i<mu*nu;i++) 
 
37
        {
 
38
                *(y1r+i)=*(u1+i);
 
39
                *(y1i+i)=*(u2+i);
 
40
        }
42
41
}
 
42
/*--------------------------------------------------------------------------*/ 
43
43