Class: Numo::GSL::SpLinalg::IterSolve::Gmres

Inherits:
Numo::GSL::SpLinalg::IterSolve show all
Defined in:
ext/numo/gsl/spmatrix/gsl_spmatrix.c

Class Method Summary collapse

Methods inherited from Numo::GSL::SpLinalg::IterSolve

iterate, #name, #normr

Class Method Details

.new(n, m) ⇒ Object

Generate an instance of Numo::GSL::SpLinalg::IterSolve::Gmres class, a subclass of Numo::GSL::SpLinalg::IterSolve class with gsl_splinalg_itersolve_gmres type.

This function allocates a workspace for the iterative solution of n-by-n sparse matrix systems. The iterative solver type is specified by T. The argument m specifies the size of the solution candidate subspace K_m. The dimension m may be set to 0 in which case a reasonable default value is used.

Parameters:

  • n (DFloat)
  • m (DFloat)


753
754
755
756
757
# File 'ext/numo/gsl/spmatrix/gsl_spmatrix.c', line 753

static VALUE
splinalg_itersolve_gmres_s_new(VALUE self, VALUE v1, VALUE v2)
{
    return splinalg_itersolve_s_new(self, gsl_splinalg_itersolve_gmres, v1, v2);
}