I have an array of size 10 which has values from 0 to 4 as real parts (integers) and from 5 to 9 as imaginary parts (integers) from a file which had 5 complex no.'s (I created a new array of twice the size to hold real and imaginary parts from the original complex stream). I have to multiply them with another array of integers (non-complex), how do I go about it?
for illustration
complex_file = 2 + 5j, 1 + 6j, 3 + 7j;
new_array = 2,1,3,5,6,7 (first 3 as real parts, the next 3 as imag ones)
mult_coeff = 11,12,13 (diff integer array which needs to be multiplied with the complex values)
Here's the catch, output needs to be represented as complex.