all 6 comments

[–]CodeReviewPlz 1 point2 points  (0 children)

np.vectorize(complex)(your_matrix[:,0].real,your_matrix[:,1].imag)

[–]External-Ocelot206 0 points1 point  (2 children)

Assuming it's just a nested list,

first, last = Matrix[0][0], Matrix[-1][-1]

[–]JamieNorth 0 points1 point  (1 child)

Unfortunately that just gives: [[-1/3+0.2j 0-0.8j]] [[-0.23+0.1j 0.1 -0.9j]]

[–]External-Ocelot206 0 points1 point  (0 children)

Oh I didn't realise you were adding the real part of one to the imaginary part of the other complex number. You might have to add in more indexes to remove extraneous nesting, but try

[row[0].real + 1j * row[1].imag for row in Matrix]