NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ cplx_matrix_inverse()

void linalg::cplx_matrix_inverse ( void *  a,
void *  x,
int  n 

Evaluate the inverse matrix of a complex matrix \(a\).


Evaluate the inverse matrix of a given complex matrix \(a\) and put it to \(x\).


A complex square matrix given as a pointer.


A complex square matrix into which \(a^{-1}\) is set. Given as a pointer.


Size of the matrix \(a\) and \(x\).

Definition at line 116 of file linalg_eigen.cpp.

References get_cdmatrix(), and set_cdmatrix().

117 {
118  cdmatrix A_eigen;
119  cdmatrix X_eigen;
120  set_cdmatrix(n,a,A_eigen);
121  Eigen::FullPivLU<cdmatrix> lu(A_eigen);
122  X_eigen=lu.inverse();
123  get_cdmatrix(n,x,X_eigen);
124 }
void set_cdmatrix(int n, void *a, cdmatrix &A)
void get_cdmatrix(int n, void *a, cdmatrix &A)
+ Here is the call graph for this function: