1#ifndef PSCF_TRIDIAGONAL_SOLVER_H
2#define PSCF_TRIDIAGONAL_SOLVER_H
11#include <util/containers/DArray.h>
100 void gaussElimination();
Solver for Ax=b with tridiagonal matrix A.
void multiply(const DArray< double > &b, DArray< double > &x)
Evaluate product Ab = x for known b to compute x.
TridiagonalSolver()
Constructor.
void computeLU(const DArray< double > &d, const DArray< double > &u)
Compute LU decomposition of a symmetric tridiagonal matrix.
void solve(const DArray< double > &b, DArray< double > &x)
Solve Ax = b for known b to compute x.
~TridiagonalSolver()
Destructor.
void allocate(int n)
Allocate memory.
Dynamically allocatable contiguous array template.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.