TSparseMtx::ActualIters Property

__declspec(property(get = GetActualIters, put = SetActualIters)) int ActualIters;

Returns the number of actual iterations performed by TSparseMtx::Solve.

Read: int GetActualIters();
Write: void SetActualIters(const int Value);
Remarks:

Returns the number of actual iterations performed by TSparseMtx::Solve. After running direct solver (TSparseMtx::Solve method) with active iterative refinement (TSparseMtx::RefinmentIters bigger than 0) or iterative solvers (TSparseMtx::SolveIterative method), the ActualInters property contains the actual number of iterations performed.

Examples
#include "MtxExpr.h"
#include "sparse.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    Vector x(0);
    Vector b(0);
    TSparseMtx* sparseM = new TSparseMtx();
    Matrix A = {{4, 1, 0}, {1, 4, 1}, {0, 1, 4}};
    sparseM->DenseToSparse(A);
    b = {1, 2, 3};
    x.Size(b);
    sparseM->SolveIterative(b, x);
    int iters = sparseM->ActualIters;
    delete sparseM;
}
See Also: TSparseMtx::RefinmentIters, TSparseMtx::Solve, TSparseMtx::SolveIterative
Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler