PARCEL SYCL v1.2 / API Reference User Guide API Reference Search Download 日本語

12 parcel::krylov::pbicgstab

12.1 pbicgstab (class)

Description Preconditioned biconjugate gradient stabilized method. Solves Ax=bAx = b for a nonsymmetric matrix.

Synopsis

template< class Tspmv = parcel_double, class Tprecon = parcel_double,
          class Taxpy = parcel_double, class Tdot    = parcel_double >
class pbicgstab : public krylov_param;

Notes There are no class-specific member functions. Division by zero during the iteration (breakdown) is detected and ends with DIVERGED_BREAKDOWN (for the conditions, see Convergence check and breakdown).

12.2 solver()

Description Solves Ax=bAx = b.

Synopsis

template< class Tmat, class Tvecx, class Tvecb, class Tvec = parcel_double,
          class Tprecon_mat = parcel_double, class Tprecon_vec = parcel_double >
void solver(parcel::matrix<Tmat> &Mat, parcel::vector<Tvecx> &x0, parcel::vector<Tvecb> &b0);

Arguments Same as solver() of pcg.

Requirements Satisfy the common requirements (an in-order queue, a registered matrix, and the queues and lengths of the vectors). AA need not be symmetric. If b=0b = 0, the solver returns x=0x = 0 as pcg does.

Return Value None.

MPI Collective. All ranks must call it with the same settings.

Example

parcel::krylov::pbicgstab<> bi;
bi.solver(A, x, b);