C# Class SharpMath.Matrix

Double-precision NxN matrix class
Afficher le fichier Open project: Patapom/GodComplex

Méthodes publiques

Свойство Type Description
N int
m ].double[

Méthodes publiques

Méthode Description
Determinant ( ) : double

Computes the determinant of the matrix

Invert ( ) : Matrix

Inverts the current matrix using LU decomposition

LUBackwardSubstitution ( Matrix _LUDecomposition, double _B, int _PivotedIndices ) : double[]

Performs Forward/Backward substitution of a vector of unknowns with a LU decomposed matrix to find the solution of a system of linear equations A.x = b

LUDecomposition ( int &_PivotedIndices, double &_Parity ) : Matrix

Performs LU decomposition of that matrix Borrowed from the Numerical Recipes (chapter 2 pp. 46)

Matrix ( Matrix _Other ) : System
Matrix ( double _Array ) : System
Matrix ( float _Array ) : System
Matrix ( int _Dimensions ) : System
Solve ( double y ) : double[]

Solve A.x = y with A and y being known This methods uses LU decomposition and back substitution

operator ( ) : Matrix
operator ( ) : double[]
this ( int i, int j ) : double

Value access

Method Details

Determinant() public méthode

Computes the determinant of the matrix
public Determinant ( ) : double
Résultat double

Invert() public méthode

Inverts the current matrix using LU decomposition
Throws if the matrix is not inversible
public Invert ( ) : Matrix
Résultat Matrix

LUBackwardSubstitution() public méthode

Performs Forward/Backward substitution of a vector of unknowns with a LU decomposed matrix to find the solution of a system of linear equations A.x = b
public LUBackwardSubstitution ( Matrix _LUDecomposition, double _B, int _PivotedIndices ) : double[]
_LUDecomposition Matrix
_B double
_PivotedIndices int
Résultat double[]

LUDecomposition() public méthode

Performs LU decomposition of that matrix Borrowed from the Numerical Recipes (chapter 2 pp. 46)
Throws if the matrix is singular and connot be decomposed
public LUDecomposition ( int &_PivotedIndices, double &_Parity ) : Matrix
_PivotedIndices int The array of pivoted indices. You should access your vector of coefficients to solve with an indirection through that array (cf. the Solve() method)
_Parity double The parity sign (-1 if indices were pivoted an odd number of times, +1 otherwise) (cf. Solve() to see how to deal with that)
Résultat Matrix

Matrix() public méthode

public Matrix ( Matrix _Other ) : System
_Other Matrix
Résultat System

Matrix() public méthode

public Matrix ( double _Array ) : System
_Array double
Résultat System

Matrix() public méthode

public Matrix ( float _Array ) : System
_Array float
Résultat System

Matrix() public méthode

public Matrix ( int _Dimensions ) : System
_Dimensions int
Résultat System

Solve() public méthode

Solve A.x = y with A and y being known This methods uses LU decomposition and back substitution
Throws if the matrix is singular and connot be decomposed
public Solve ( double y ) : double[]
y double
Résultat double[]

operator() public static méthode

public static operator ( ) : Matrix
Résultat Matrix

operator() public static méthode

public static operator ( ) : double[]
Résultat double[]

this() public méthode

Value access
public this ( int i, int j ) : double
i int Row index in [0,N[
j int Column index in [0,N[
Résultat double

Property Details

N public_oe property

public int N
Résultat int

m public_oe property

public double[,] m
Résultat ].double[