ConjugateGradient.SetJacobi Method |
Defines a Jacobi preconditioner as the preconditioning matrix, that is, M is
the diagonal of A.
Namespace: Imsl.MathAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic void SetJacobi(
double[] diagonal
)
Public Sub SetJacobi (
diagonal As Double()
)
public:
void SetJacobi(
array<double>^ diagonal
)
member SetJacobi :
diagonal : float[] -> unit
Parameters
- diagonal
- Type:System.Double[]
A double vector containing the diagonal of the Jacobi preconditioner M,
that is, diagonal[i]=
, A the input matrix.
ExceptionsException | Condition |
---|
ArgumentException |
is thrown if the length of vector diagonal is not equal to the order
n of input matrix A.
|
See Also