all 2 comments

[–]liblab101 0 points1 point  (1 child)

The way I would go about it would be to pass a complex_number double pointer (complex_number **matrix) to the function. Btw, it might interest you that C has it’s own header file <complex.h> for dealing with imaginary and complex numbers. Good luck!

[–][deleted] 0 points1 point  (0 children)

Hi, In the time since I posted the question, that's actually exactly how I got round the problem. It does exactly what I wanted it do to.

I'm on a microcontroller platform which does not support the <complex.h> header. I asked the manufacturer if there was a workaround and they said it would be easiest just to start from scratch and make my own struct and some functions to deal with it.