C# Class LSLib.LS.Matrix

ファイルを表示 Open project: Norbyte/lslib

Public Properties

Property Type Description
L Matrix
U Matrix
cols int
mat ].double[
rows int

Public Methods

Method Description
Det ( ) : double
Duplicate ( ) : Matrix
GetCol ( int k ) : Matrix
GetP ( ) : Matrix
IdentityMatrix ( int iRows, int iCols ) : Matrix
Invert ( ) : Matrix
IsSquare ( ) : System.Boolean
MakeLU ( ) : void
Matrix ( int iRows, int iCols ) : System
NormalizeMatrixString ( string matStr ) : string
Parse ( string ps ) : Matrix
Power ( Matrix m, int pow ) : Matrix
RandomMatrix ( int iRows, int iCols, int dispersion ) : Matrix
SetCol ( Matrix v, int k ) : void
SolveWith ( Matrix v ) : Matrix
StupidMultiply ( Matrix m1, Matrix m2 ) : Matrix
SubsBack ( Matrix A, Matrix b ) : Matrix
SubsForth ( Matrix A, Matrix b ) : Matrix
ToString ( ) : string
Transpose ( Matrix m ) : Matrix
ZeroMatrix ( int iRows, int iCols ) : Matrix
operator ( ) : Matrix
this ( int iRow, int iCol ) : double

Private Methods

Method Description
ACopytoC ( Matrix A, int xa, int ya, Matrix C, int size ) : void
Add ( Matrix m1, Matrix m2 ) : Matrix
AminusBintoC ( Matrix A, int xa, int ya, Matrix B, int xb, int yb, Matrix C, int size ) : void
AplusBintoC ( Matrix A, int xa, int ya, Matrix B, int xb, int yb, Matrix C, int size ) : void
Multiply ( double n, Matrix m ) : Matrix
SafeACopytoC ( Matrix A, int xa, int ya, Matrix C, int size ) : void
SafeAminusBintoC ( Matrix A, int xa, int ya, Matrix B, int xb, int yb, Matrix C, int size ) : void
SafeAplusBintoC ( Matrix A, int xa, int ya, Matrix B, int xb, int yb, Matrix C, int size ) : void
StrassenMultiply ( Matrix A, Matrix B ) : Matrix
StrassenMultiplyRun ( Matrix A, Matrix B, Matrix C, int l, Matrix f ) : void

Method Details

Det() public method

public Det ( ) : double
return double

Duplicate() public method

public Duplicate ( ) : Matrix
return Matrix

GetCol() public method

public GetCol ( int k ) : Matrix
k int
return Matrix

GetP() public method

public GetP ( ) : Matrix
return Matrix

IdentityMatrix() public static method

public static IdentityMatrix ( int iRows, int iCols ) : Matrix
iRows int
iCols int
return Matrix

Invert() public method

public Invert ( ) : Matrix
return Matrix

IsSquare() public method

public IsSquare ( ) : System.Boolean
return System.Boolean

MakeLU() public method

public MakeLU ( ) : void
return void

Matrix() public method

public Matrix ( int iRows, int iCols ) : System
iRows int
iCols int
return System

NormalizeMatrixString() public static method

public static NormalizeMatrixString ( string matStr ) : string
matStr string
return string

Parse() public static method

public static Parse ( string ps ) : Matrix
ps string
return Matrix

Power() public static method

public static Power ( Matrix m, int pow ) : Matrix
m Matrix
pow int
return Matrix

RandomMatrix() public static method

public static RandomMatrix ( int iRows, int iCols, int dispersion ) : Matrix
iRows int
iCols int
dispersion int
return Matrix

SetCol() public method

public SetCol ( Matrix v, int k ) : void
v Matrix
k int
return void

SolveWith() public method

public SolveWith ( Matrix v ) : Matrix
v Matrix
return Matrix

StupidMultiply() public static method

public static StupidMultiply ( Matrix m1, Matrix m2 ) : Matrix
m1 Matrix
m2 Matrix
return Matrix

SubsBack() public static method

public static SubsBack ( Matrix A, Matrix b ) : Matrix
A Matrix
b Matrix
return Matrix

SubsForth() public static method

public static SubsForth ( Matrix A, Matrix b ) : Matrix
A Matrix
b Matrix
return Matrix

ToString() public method

public ToString ( ) : string
return string

Transpose() public static method

public static Transpose ( Matrix m ) : Matrix
m Matrix
return Matrix

ZeroMatrix() public static method

public static ZeroMatrix ( int iRows, int iCols ) : Matrix
iRows int
iCols int
return Matrix

operator() public static method

public static operator ( ) : Matrix
return Matrix

this() public method

public this ( int iRow, int iCol ) : double
iRow int
iCol int
return double

Property Details

L public_oe property

public Matrix L
return Matrix

U public_oe property

public Matrix U
return Matrix

cols public_oe property

public int cols
return int

mat public_oe property

public double[,] mat
return ].double[

rows public_oe property

public int rows
return int