1#ifndef PSCF_LU_SOLVER_H
2#define PSCF_LU_SOLVER_H
11#include <util/containers/Array.h>
12#include <util/containers/Matrix.h>
13#include <gsl/gsl_matrix.h>
14#include <gsl/gsl_vector.h>
15#include <gsl/gsl_permutation.h>
85 gsl_matrix* gMatInverse_;
88 gsl_permutation* permPtr_;
Solve Ax=b by LU decomposition of A.
void inverse(Matrix< double > &inv)
Compute inverse of matrix A.
void allocate(int n)
Allocate memory.
void solve(Array< double > &b, Array< double > &x)
Solve Ax = b for known b to compute x.
void computeLU(const Matrix< double > &A)
Compute the LU decomposition for later use.
Array container class template.
Two-dimensional array container template (abstract).
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.