MTL4求解线性方程组

来源:互联网 发布:mysql管理器 编辑:程序博客网 时间:2024/05/21 09:13

Class that keeps LU factorization (and permutation); using column pivoting. More...

#include <lu.hpp>

Collaboration diagram for mtl::matrix::lu_solver< Matrix >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 lu_solver (const Matrix &A, double eps=0) Construct from matrix A and use optionally threshold eps in factorization. template<typename VectorIn , typename VectorOut >void solve (const VectorIn &b, VectorOut &x) const Solve A*x = b with factorization from constructor. template<typename VectorIn , typename VectorOut >void adjoint_solve (const VectorIn &b, VectorOut &x) const Solve $adjoint(A)x = b$ using LU factorization. 

Detailed Description

template<typename Matrix>
class mtl::matrix::lu_solver< Matrix >

Class that keeps LU factorization (and permutation); using column pivoting.