Computational routine
eng

##
matz_absc

### File content

    #include "scicos_block4.h"
    #include "../machine.h"
    #include <math.h>
    void matz_absc(scicos_block *block,int flag)
    {
      double *u1;
      double *u2;
      double *y1r,*y1i;

      int nu,mu,i;

      mu=GetOutPortRows(block,1);
      nu=GetOutPortCols(block,1);
      u1=GetRealInPortPtrs(block,1);
      u2=GetRealInPortPtrs(block,2);
      y1r=GetRealOutPortPtrs(block,1);
      y1i=GetImagOutPortPtrs(block,1);
      for (i=0;i<mu*nu;i++)
    	{*(y1r+i)=(*(u1+i))*(cos(*(u2+i)));
    	 *(y1i+i)=(*(u1+i))*(sin(*(u2+i)));}
    }