AnsweredAssumed Answered

complex_fract16 to matrix

Question asked by sauwen on Dec 29, 2010
Latest reply on Dec 29, 2010 by sauwen

Hi all,

 

I'm going crazy with something seemingly simple and need help with what's wrong with it. 

 

I am trying to save the output of the rfft_fr16 into a 2d array.  However, it gives me the error:

 

error: expression must have
          pointer-to-object type
       complex_fft_array[i][inx] = fft_output[i];

 

And then when I try to make an example

complex_fract16 c_i; //test

complex_fract16 c_array[1];

complex_fract16 c_2darray[2][2];

c_i[1].re=6;

c_i[1].im=18;

c_array[1]=c_i[1];

 

I get the following:

error: expression must have

          pointer-to-object type

  c_i[1].re=6;

  ^

 

warning: variable "c_i" is used

          before its value is set

  c_i[1].re=6;

  ^

 

error: expression must have

          pointer-to-object type

  c_i[1].im=18;

  ^

 

error: expression must have

          pointer-to-object type

  c_array[1]=c_i[1];

             ^

 

I feel like I'm going backwards... what could be wrong with it? I have a feeling it has to do with saving the complex_fract16 into an array..

 

Thanks..

Outcomes