IGLib  1.7.2
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Num.ILinearSolver Interface Reference

Classes that can be used for solution of linear systems of equations. More...

+ Inheritance diagram for IG.Num.ILinearSolver:
+ Collaboration diagram for IG.Num.ILinearSolver:

Public Member Functions

void GetProduct (ref IMatrix product)
 Calculates the product (i.e. the original matrix of coefficients of a linear system of equations) of the current decomposition, and stores it to the specified matrix. More...
 
IMatrix GetProduct ()
 Calculates and returns the product (i.e. the original matrix of coefficients of a linear system of equations) of the current decomposition. More...
 
void Inverse (ref IMatrix inv)
 Calculates inverse of the decomposed matrix represented by the current object, and stores it in the specified matrix. More...
 
IMatrix Inverse ()
 Calculates and returns inverse of the decomposed matrix represented by the current object. More...
 
void Solve (IMatrix B, ref IMatrix X)
 Solves A*X = B (a set of linear systems of equations), where B is the matrix whose colums are right-hand sides of equations to be solved. Solutions are stored to the specified matrix. More...
 
IMatrix Solve (IMatrix B)
 Solves A*X = B (a set of linear systems of equations), where B is the matrix whose colums are right-hand sides of equations to be solved, and returns a matrix whose columns are solutions of the specified systems of equations. More...
 
void Solve (IVector b, ref IVector x)
 Solves a system of linear equations A*x=b, and stores the solution in the specified vector. More...
 
IVector Solve (IVector b)
 Solves a system of linear equations A*x=b, and returns the solution. More...
 

Properties

bool IsNonSingular [get]
 Indicates whether the matrix of coefficients of a linear system represented by the current decomposition object, is nonsingular. More...
 
- Properties inherited from IG.Lib.ILockable
object Lock [get]
 

Detailed Description

Classes that can be used for solution of linear systems of equations.

This interface is mainly used for matrix dexompositions.

$A Igor Apr12;

Member Function Documentation

void IG.Num.ILinearSolver.GetProduct ( ref IMatrix  product)

Calculates the product (i.e. the original matrix of coefficients of a linear system of equations) of the current decomposition, and stores it to the specified matrix.

Parameters
productMatrix where re-calculated product of the decomposed matrix is stored.

Implemented in IG.Num.SingularValueDecomposition, IG.Num.EigenValueDecomposition, IG.Num.CholeskyDecomposition, IG.Num.QRDecomposition, and IG.Num.LUDecomposition.

IMatrix IG.Num.ILinearSolver.GetProduct ( )

Calculates and returns the product (i.e. the original matrix of coefficients of a linear system of equations) of the current decomposition.

Implemented in IG.Num.SingularValueDecomposition, IG.Num.EigenValueDecomposition, IG.Num.CholeskyDecomposition, IG.Num.QRDecomposition, and IG.Num.LUDecomposition.

void IG.Num.ILinearSolver.Inverse ( ref IMatrix  inv)

Calculates inverse of the decomposed matrix represented by the current object, and stores it in the specified matrix.

Parameters
invMatrix where calculated inverse is stored.

Implemented in IG.Num.SingularValueDecomposition, IG.Num.EigenValueDecomposition, IG.Num.CholeskyDecomposition, IG.Num.QRDecomposition, and IG.Num.LUDecomposition.

IMatrix IG.Num.ILinearSolver.Inverse ( )

Calculates and returns inverse of the decomposed matrix represented by the current object.

Implemented in IG.Num.SingularValueDecomposition, IG.Num.EigenValueDecomposition, IG.Num.CholeskyDecomposition, IG.Num.QRDecomposition, and IG.Num.LUDecomposition.

void IG.Num.ILinearSolver.Solve ( IMatrix  B,
ref IMatrix  X 
)

Solves A*X = B (a set of linear systems of equations), where B is the matrix whose colums are right-hand sides of equations to be solved. Solutions are stored to the specified matrix.

Decomposed matrix of coefficients A is represented by the current object.

Parameters
BA Matrix with as many rows as A and any number of columns (right-hand sides).
XMatrix where results are stored (one column for each right-hand side).
Exceptions
System.ArgumentExceptionMatrix row dimensions must agree.
System.SystemExceptionMatrix is singular.
IMatrix IG.Num.ILinearSolver.Solve ( IMatrix  B)

Solves A*X = B (a set of linear systems of equations), where B is the matrix whose colums are right-hand sides of equations to be solved, and returns a matrix whose columns are solutions of the specified systems of equations.

Decomposed matrix of coefficients A is represented by the current object.

Parameters
BA Matrix with as many rows as A and any number of columns (right-hand sides).
Returns
X so that L*U*X = B(piv,:)
Exceptions
System.ArgumentExceptionMatrix row dimensions must agree.
System.SystemExceptionMatrix is singular.
void IG.Num.ILinearSolver.Solve ( IVector  b,
ref IVector  x 
)

Solves a system of linear equations A*x=b, and stores the solution in the specified vector.

Decomposed matrix of coefficients A is represented by the current object.

Parameters
bVector of right-hand sides.
xVector where solution is stored.
IVector IG.Num.ILinearSolver.Solve ( IVector  b)

Solves a system of linear equations A*x=b, and returns the solution.

Decomposed matrix of coefficients A is represented by the current object.

Parameters
bRight-hand side vector.
Returns
Solution of the System such that L*U*x=s(piv,:).

Property Documentation

bool IG.Num.ILinearSolver.IsNonSingular
get

Indicates whether the matrix of coefficients of a linear system represented by the current decomposition object, is nonsingular.

Returns
True if the decomposed matrix represented by the current object is snonsingular, false otherwise.

The documentation for this interface was generated from the following file: