Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions
o2scl_linalg::linear_solver< vec_t, mat_t > Class Template Reference

A generic solver for the linear system $ A x = b $ [abstract base]. More...

#include <linear_solver.h>

Inheritance diagram for o2scl_linalg::linear_solver< vec_t, mat_t >:
o2scl_linalg::gsl_solver_HH o2scl_linalg::gsl_solver_LU o2scl_linalg::gsl_solver_QR o2scl_linalg::linear_solver_hh< vec_t, mat_t > o2scl_linalg::linear_solver_lu< vec_t, mat_t > o2scl_linalg::linear_solver_qr< vec_t, mat_t >

Detailed Description

template<class vec_t = o2scl::ovector_base, class mat_t = o2scl::omatrix_base>
class o2scl_linalg::linear_solver< vec_t, mat_t >

A generic solver for dense linear systems.

Those writing production level code should consider calling LAPACK directly using O2scl objects as described in the Linear Algebra section of the User's Guide.

Idea for Future:
The test code uses a Hilbert matrix, which is known to be ill-conditioned, especially for the larger sizes. This should probably be changed.

Definition at line 52 of file linear_solver.h.

Public Member Functions

virtual int solve (size_t n, mat_t &a, vec_t &b, vec_t &x)=0
 Solve square linear system $ A x = b $ of size n.

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.