Definition at line 540 of file Schur.cpp.
◆ invertMat()
Definition at line 541 of file Schur.cpp.
544 const auto nb =
m.size1();
546 if (nb !=
m.size2()) {
548 "It should be square matrix");
553 for (
int cc = 0; cc != nb; ++cc) {
558 inv.resize(nb, nb,
false);
560 auto ptr = &*inv.data().begin();
561 for (
int c = 0;
c != nb; ++
c, ptr += nb + 1)
563 ipiv.resize(nb,
false);
564 const auto info =
lapack_dgesv(nb, nb, &*
m.data().begin(), nb,
565 &*ipiv.begin(), &*inv.data().begin(), nb);
568 "Can not invert matrix info = %d", info);
The documentation for this struct was generated from the following file:
static __CLPK_integer lapack_dgesv(__CLPK_integer n, __CLPK_integer nrhs, __CLPK_doublereal *a, __CLPK_integer lda, __CLPK_integer *ipiv, __CLPK_doublereal *b, __CLPK_integer ldb)