## Matrix math with complex numbers

## Matrix math with complex numbers

(OP)

Hello,

I am considering taking some calculations that presently performed using MathCAD and creating an application to perform those calculations instead. The calculations involve creating a matrix of complex numbers and performing some matrix math operations to arrive at the solution. The complex matrices will be up to 200x200 in size and matrix inversion will be required. My question is what development platform would make be the easiest to implement a program like this in? Are there libraries out there for performing complex matrix inversion? Maybe add-ons that are useful? I was considering using the microsoft visual platform...

Thanks for your input and suggestions.

I am considering taking some calculations that presently performed using MathCAD and creating an application to perform those calculations instead. The calculations involve creating a matrix of complex numbers and performing some matrix math operations to arrive at the solution. The complex matrices will be up to 200x200 in size and matrix inversion will be required. My question is what development platform would make be the easiest to implement a program like this in? Are there libraries out there for performing complex matrix inversion? Maybe add-ons that are useful? I was considering using the microsoft visual platform...

Thanks for your input and suggestions.

## RE: Matrix math with complex numbers

So I ended up using routines from lapack (ZGETRF and ZGETRI). This involved copying my data out of the matrix into a regular C array in a presribed order, passing it to each of those lapack routines, then copying the result back into my matrix. The result was orders of magnitude faster, even with all the copying.

This was done on HP-UX, Linux and Windows.

My advice is to use lapack/blas as your matrix inversion engine.

- Steve

## RE: Matrix math with complex numbers