C# 클래스 xFunc.Maths.Expressions.Matrices.MatrixExtentions

Provides extention methods for matrices and vectors.
파일 보기 프로젝트 열기: sys27/xFunc

공개 메소드들

메소드 설명
Abs ( this vector, ExpressionParameters parameters ) : double

Calculates the absolute value (norm) of vector.

Add ( this left, Matrix right ) : Matrix

Adds the right matrix to the left matrix.

Add ( this left, Matrix right, ExpressionParameters parameters ) : Matrix

Adds the right matrix to the left matrix.

Add ( this left, xFunc.Maths.Expressions.Matrices.Vector right ) : xFunc.Maths.Expressions.Matrices.Vector

Adds the right vector to the left vector.

Add ( this left, xFunc.Maths.Expressions.Matrices.Vector right, ExpressionParameters parameters ) : xFunc.Maths.Expressions.Matrices.Vector

Adds the right vector to the left vector.

Determinant ( this matrix ) : double

Calculates a determinant of specified matrix.

Determinant ( this matrix, ExpressionParameters parameters ) : double

Calculates a determinant of specified matrix.

Inverse ( this matrix, ExpressionParameters parameters ) : Matrix

Inverts a matrix.

LUPDecomposition ( this matrix, ExpressionParameters parameters, int &permutation, int &toggle ) : Matrix

Decomposes a matrix.

Mul ( this matrix, IExpression number ) : Matrix

Multiplies matrix by number.

Mul ( this matrix, IExpression number, ExpressionParameters parameters ) : Matrix

Multiplies matrix by number.

Mul ( this left, Matrix right ) : Matrix

Multiplies the left matrix by the right matrix.

Mul ( this left, Matrix right, ExpressionParameters parameters ) : Matrix

Multiplies the left matrix by the right matrix.

Mul ( this left, xFunc.Maths.Expressions.Matrices.Vector right ) : Matrix

Multiplies the left matrix by the right vector.

Mul ( this left, xFunc.Maths.Expressions.Matrices.Vector right, ExpressionParameters parameters ) : Matrix

Multiplies the left matrix by the right vector.

Mul ( this vector, IExpression number ) : xFunc.Maths.Expressions.Matrices.Vector

Multiplies vector by number.

Mul ( this vector, IExpression number, ExpressionParameters parameters ) : xFunc.Maths.Expressions.Matrices.Vector

Multiplies vector by number.

Sub ( this left, Matrix right ) : Matrix

Subtracts the right matrix from the left matrix.

Sub ( this left, Matrix right, ExpressionParameters parameters ) : Matrix

Subtracts the right matrix from the left matrix.

Sub ( this left, xFunc.Maths.Expressions.Matrices.Vector right ) : xFunc.Maths.Expressions.Matrices.Vector

Subtracts the right vector from the left vector.

Sub ( this left, xFunc.Maths.Expressions.Matrices.Vector right, ExpressionParameters parameters ) : xFunc.Maths.Expressions.Matrices.Vector

Subtracts the right vector from the left vector.

Transpose ( this matrix ) : IExpression

Transposes the specified matrix.

Transpose ( this vector ) : Matrix

Transposes the specified vector.

비공개 메소드들

메소드 설명
Determinant_ ( double matrix ) : double
HelperSolve ( double lu, double b ) : double[]
Inverse_ ( double matrix ) : double[][]
LUPDecomposition_ ( double matrix, int &permutation, int &toggle ) : double[][]

메소드 상세

Abs() 공개 정적인 메소드

Calculates the absolute value (norm) of vector.
public static Abs ( this vector, ExpressionParameters parameters ) : double
vector this The vector.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 double

Add() 공개 정적인 메소드

Adds the right matrix to the left matrix.
public static Add ( this left, Matrix right ) : Matrix
left this The left matrix.
right Matrix The right matrix.
리턴 Matrix

Add() 공개 정적인 메소드

Adds the right matrix to the left matrix.
The size of matrices is invalid.
public static Add ( this left, Matrix right, ExpressionParameters parameters ) : Matrix
left this The left matrix.
right Matrix The right matrix.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 Matrix

Add() 공개 정적인 메소드

Adds the right vector to the left vector.
public static Add ( this left, xFunc.Maths.Expressions.Matrices.Vector right ) : xFunc.Maths.Expressions.Matrices.Vector
left this The left vector.
right xFunc.Maths.Expressions.Matrices.Vector The right vector.
리턴 xFunc.Maths.Expressions.Matrices.Vector

Add() 공개 정적인 메소드

Adds the right vector to the left vector.
The size of matrices is invalid.
public static Add ( this left, xFunc.Maths.Expressions.Matrices.Vector right, ExpressionParameters parameters ) : xFunc.Maths.Expressions.Matrices.Vector
left this The left vector.
right xFunc.Maths.Expressions.Matrices.Vector The right vector.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 xFunc.Maths.Expressions.Matrices.Vector

Determinant() 공개 정적인 메소드

Calculates a determinant of specified matrix.
public static Determinant ( this matrix ) : double
matrix this The matrix.
리턴 double

Determinant() 공개 정적인 메소드

Calculates a determinant of specified matrix.
The size of matrices is invalid.
public static Determinant ( this matrix, ExpressionParameters parameters ) : double
matrix this The matrix.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 double

Inverse() 공개 정적인 메소드

Inverts a matrix.
public static Inverse ( this matrix, ExpressionParameters parameters ) : Matrix
matrix this The matrix.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 Matrix

LUPDecomposition() 공개 정적인 메소드

Decomposes a matrix.
public static LUPDecomposition ( this matrix, ExpressionParameters parameters, int &permutation, int &toggle ) : Matrix
matrix this The matrix.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
permutation int An array of permutations.
toggle int Used for calculating a determinant.
리턴 Matrix

Mul() 공개 정적인 메소드

Multiplies matrix by number.
public static Mul ( this matrix, IExpression number ) : Matrix
matrix this The matrix.
number IExpression The number.
리턴 Matrix

Mul() 공개 정적인 메소드

Multiplies matrix by number.
public static Mul ( this matrix, IExpression number, ExpressionParameters parameters ) : Matrix
matrix this The matrix.
number IExpression The number.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 Matrix

Mul() 공개 정적인 메소드

Multiplies the left matrix by the right matrix.
public static Mul ( this left, Matrix right ) : Matrix
left this The left matrix.
right Matrix The right matrix.
리턴 Matrix

Mul() 공개 정적인 메소드

Multiplies the left matrix by the right matrix.
The size of matrices is invalid.
public static Mul ( this left, Matrix right, ExpressionParameters parameters ) : Matrix
left this The left matrix.
right Matrix The right matrix.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 Matrix

Mul() 공개 정적인 메소드

Multiplies the left matrix by the right vector.
public static Mul ( this left, xFunc.Maths.Expressions.Matrices.Vector right ) : Matrix
left this The left matrix.
right xFunc.Maths.Expressions.Matrices.Vector The right vector.
리턴 Matrix

Mul() 공개 정적인 메소드

Multiplies the left matrix by the right vector.
The size of matrices is invalid.
public static Mul ( this left, xFunc.Maths.Expressions.Matrices.Vector right, ExpressionParameters parameters ) : Matrix
left this The left matrix.
right xFunc.Maths.Expressions.Matrices.Vector The right vector.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 Matrix

Mul() 공개 정적인 메소드

Multiplies vector by number.
public static Mul ( this vector, IExpression number ) : xFunc.Maths.Expressions.Matrices.Vector
vector this The vector.
number IExpression The number.
리턴 xFunc.Maths.Expressions.Matrices.Vector

Mul() 공개 정적인 메소드

Multiplies vector by number.
public static Mul ( this vector, IExpression number, ExpressionParameters parameters ) : xFunc.Maths.Expressions.Matrices.Vector
vector this The vector.
number IExpression The number.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 xFunc.Maths.Expressions.Matrices.Vector

Sub() 공개 정적인 메소드

Subtracts the right matrix from the left matrix.
public static Sub ( this left, Matrix right ) : Matrix
left this The left matrix.
right Matrix The right matrix.
리턴 Matrix

Sub() 공개 정적인 메소드

Subtracts the right matrix from the left matrix.
The size of matrices is invalid.
public static Sub ( this left, Matrix right, ExpressionParameters parameters ) : Matrix
left this The left matrix.
right Matrix The right matrix.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 Matrix

Sub() 공개 정적인 메소드

Subtracts the right vector from the left vector.
public static Sub ( this left, xFunc.Maths.Expressions.Matrices.Vector right ) : xFunc.Maths.Expressions.Matrices.Vector
left this The left vector.
right xFunc.Maths.Expressions.Matrices.Vector The right vector.
리턴 xFunc.Maths.Expressions.Matrices.Vector

Sub() 공개 정적인 메소드

Subtracts the right vector from the left vector.
The size of matrices is invalid.
public static Sub ( this left, xFunc.Maths.Expressions.Matrices.Vector right, ExpressionParameters parameters ) : xFunc.Maths.Expressions.Matrices.Vector
left this The left vector.
right xFunc.Maths.Expressions.Matrices.Vector The right vector.
parameters ExpressionParameters An object that contains all parameters and functions for expressions.
리턴 xFunc.Maths.Expressions.Matrices.Vector

Transpose() 공개 정적인 메소드

Transposes the specified matrix.
public static Transpose ( this matrix ) : IExpression
matrix this The matrix.
리턴 IExpression

Transpose() 공개 정적인 메소드

Transposes the specified vector.
public static Transpose ( this vector ) : Matrix
vector this The vector.
리턴 Matrix