IBSimu  1.0.4
Functions
bicgstab.hpp File Reference

Stabilized Biconjugate Gradient solver. More...

#include "matrix.hpp"
#include "precond.hpp"

Go to the source code of this file.

Functions

bool bicgstab (const Matrix &mat, const Vector &rhs, Vector &sol, const Precond &pc, uint32_t &imax, double &eps)
 BiCGSTAB linear matrix equation solver.

Detailed Description

Stabilized Biconjugate Gradient solver.


Function Documentation

bool bicgstab ( const Matrix mat,
const Vector rhs,
Vector sol,
const Precond pc,
uint32_t &  imax,
double &  eps 
)

BiCGSTAB linear matrix equation solver.

Solves linear matrix equations of form A*X=B.

Returns:
True on success, false on errors
Parameters:
matMatrix on the linear equation
rhsRight hand side vector on the linear equation
solSolution vector on the linear equation
pcPreconditioner used by the iterator
imaxMaximum number of iterations to be done in input, number of iterations actually done on output
epsAccuracy request for iteration on input, estimated error achieved on output