typedef struct {
int real, img;
} Complex;
Complex matrix[2][3] = {{9511 + 31356j, 12539 + 30273j, -32610 - 3211j},
{32767, -32768j, 6392 - 32138j}};
So this is a small example. In my real code I have 64x64 matrix, for which I have all the values, I will just need to copy and paste them from a file. The point is that the numbers are like in the above example. That said, imaginary parts end with 'j', some numbers have only real part, and some just imaginary part, and of course some both the real and imaginary parts. Therefore, I want to ask if I enter the values to my Complex matrix like in the above example, will everything be okay? I mean it will know which part is imaginary, which part real? And what will happen when the numbers don't have either their real or imaginary parts?
This post has been edited by erkant: 17 July 2012 - 06:29 AM

New Topic/Question
Reply



MultiQuote





|