You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Matrix.RefineSolution Property
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.RefineSolution Property

Enables/disables the refining of the solution of the system of linear equations.

Pascal
property RefineSolution: boolean;

The method enables/disables the refining of the solution of the system of linear equations, computed by LUSolve method. When RefineSolution is enabled, an iterative refinement of the solution to a system of linear equations is executed. For each computed solution the component-wise BackError and the the component-wise ForwError in the computed solution are calculated as well.

var X,B: Vector; A: Matrix; begin B.SetIt(False,[0,2]); A.SetIt(2,2,false,[1,2, 3,4]); // 2x2, not complex matrix A.RefineSolution := True; A.ConditionNumber := cnNormInf; A.LUSolve(B,X); end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!