Defines a Jacobi preconditioner as the preconditioning matrix, that is, M is
the diagonal of A.
Namespace:
Imsl.Math
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public void SetJacobi( double[] diagonal ) |
Visual Basic (Declaration) |
---|
Public Sub SetJacobi ( _ diagonal As Double() _ ) |
Visual C++ |
---|
public: void SetJacobi( array<double>^ diagonal ) |
Parameters
- diagonal
- Type: array<
System..::.Double
>[]()[]
A double vector containing the diagonal of the Jacobi preconditioner M, that is, diagonal[i]=, A the input matrix.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentException | is thrown if the length of vector diagonal is not equal to the order n of input matrix A. |