contents next up previous
Next: About this document ... Up: Changing the Linear Algebra Previous: Changing the Linear Algebra

Subsections


Linear Algebra Library Requirements



Matrix

The matrix type represents a matrix of double and must have the following interface:



Vector

Vector type is a vector of double which has the following interface:



LU solve

The prototype of the function must be: template< class random_iterator>
int LU_solve(Matrix& A, Vector& b, iterator solution_begin)

This function solves linear system Ax = b using a LU decomposition of A, and stores the resulting vector x in the container solution_begin points to. This container must be of size equal to the size of vector b. The iterator must be a Random Access Iterator. A Random Access Iterator is a refinement of Forward Iterator. If it is a Random Access Iterator, it[j] is a valid expression which makes iterator it point to the j-th element of the container.



Cholesky solve

The prototype of the function must be: template< class random_iterator>
int Cholesky_solve(Matrix& A, Vector& b, iterator solution_begin)

This function solves linear system Ax = b using a Cholesky decomposition of A (A must be positive-definite), and stores the resulting vector x in the container solution_begin points to. This container must be of size equal to the size of vector b.


contents next up previous
Next: About this document ... Up: Changing the Linear Algebra Previous: Changing the Linear Algebra
nicolas
2002-05-07