Summary
Enables/disables the refining of the solution of the system of linear equations.
Class
TMtx
Declaration
Property RefineSolution: boolean read FRefineSolution write SetRefineSolution default false;
Description
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
backward error and the the component-wise
forward error in the computed solution are calculated as well.
Example 1
var X,B: TVec;
A: TMtx;
begin
CreateIt(X,B);
CreateIt(A);
try
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);
finally
FreeIt(B,X);
FreeIt(A);
end;
end;
| Copyright 2008 Dew Research |
http://www.dewresearch.com