C# Class NSoft.NFramework.Numerics.MatrixTool

Matrix Helper Class
显示文件 Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
Add ( System.Matrix a, System.Matrix b ) : System.Matrix

a + b

Add ( this result, System.Matrix a, System.Matrix b ) : void

result = a + b

CheckSameDimension ( System.Matrix m1, System.Matrix m2 ) : void

두개의 Matrix가 같은 차원인지 검사합니다.

CheckSameDimension ( double src, double dest ) : void

지정한 두개의 배열이 같은 차원의 배열인지 검사합니다.

Copy ( this src, System.Matrix dest ) : void

src 매트릭스 정보를 dest 매트릭스로 복사합니다.

CopyData ( this srcData, double destData ) : void

srcData 배열을 destData 배열로 복사합니다.

CreateMatrix ( int rows, int cols ) : System.Matrix

지정한 행과 열의크기를 가진 행렬을 생성합니다.

Divide ( System.Matrix a, System.Matrix b ) : System.Matrix

return a / b

Divide ( System.Matrix a, double s ) : System.Matrix

return a / s

Divide ( this result, System.Matrix a, System.Matrix b ) : void

result = a / b

Divide ( this result, System.Matrix a, double s ) : void

result = a / s

ForEach ( this m, Action action ) : void

Matrix의 모든 요소를 action에 인자로 넣어 실행합니다.

Identity ( int rows, int cols ) : System.Matrix

고유 매트릭스 (대각선만 1)

Initialize ( this m, double value = 0.0 ) : void

Matrix의 모든 요소 값을 value로 설정합니다.

IsSameDimension ( double data1, double data2 ) : bool

두 2차원 배열이 같은 차원인지 검사합니다.

IsSameDimension ( this m1, System.Matrix m2 ) : bool

두개의 Matrix가 같은 차원인지 검사합니다.

Multiply ( System.Matrix a, System.Matrix b ) : System.Matrix

return a * b

Multiply ( System.Matrix a, double s ) : System.Matrix

return a * s

Multiply ( this result, System.Matrix a, System.Matrix b ) : void

result = a * b

Multiply ( this result, System.Matrix a, double s ) : void

result = a * s

Negate ( this m ) : System.Matrix

음수

Norm1 ( this m ) : double

Maximum Column Abs Sum

Norm2 ( this m ) : double

Maximum singular value

NormF ( this m ) : double

Frobenius norm

Sqrt of Sum Of Squares of all elements

NormInf ( this m ) : double

Maximum Row Abs Sum

Randomize ( this m ) : void

Randomize for Testing

Resize ( this m, int rows, int cols ) : void

Matrix의 행, 렬을 지정한 값으로 설정합니다.

SetMatrix ( this m, System.Matrix s, int rows, int cols ) : void

m matrix 의 요소값을 s의 요소로 설정합니다.

SetMatrix ( this m, System.Matrix s, int r0, int r1, int cols ) : void

m matrix 의 요소값을 s의 요소로 설정합니다.

SetMatrix ( this m, System.Matrix s, int r0, int r1, int c0, int c1 ) : void

m matrix 의 요소값을 s의 요소로 설정합니다.

SubMatrix ( this m, int rows, int cols ) : System.Matrix

Matirx 에서 지정된 행, 렬의 인덱스에 해당하는 요소들만으로 Sub matrix를 생성합니다.

SubMatrix ( this m, int r0, int r1, int cols ) : System.Matrix

Matirx 에서 지정된 행, 렬의 인덱스에 해당하는 요소들만으로 Sub matrix를 생성합니다.

SubMatrix ( this m, int r0, int r1, int c0, int c1 ) : System.Matrix

Matrix의 지정한 범위에 해당하는 영역을 Sub matrix 로 만듭니다.

Subtract ( System.Matrix a, System.Matrix b ) : System.Matrix

a - b

Subtract ( this result, System.Matrix a, System.Matrix b ) : void

result = a b

Trace ( this m ) : double

Matrix Trace. 대각선 요소들의 합

Transpose ( this m ) : System.Matrix

행/열 변환

Method Details

Add() public static method

a + b
public static Add ( System.Matrix a, System.Matrix b ) : System.Matrix
a System.Matrix
b System.Matrix
return System.Matrix

Add() public static method

result = a + b
public static Add ( this result, System.Matrix a, System.Matrix b ) : void
result this
a System.Matrix
b System.Matrix
return void

CheckSameDimension() public static method

두개의 Matrix가 같은 차원인지 검사합니다.
public static CheckSameDimension ( System.Matrix m1, System.Matrix m2 ) : void
m1 System.Matrix
m2 System.Matrix
return void

CheckSameDimension() public static method

지정한 두개의 배열이 같은 차원의 배열인지 검사합니다.
public static CheckSameDimension ( double src, double dest ) : void
src double
dest double
return void

Copy() public static method

src 매트릭스 정보를 dest 매트릭스로 복사합니다.
public static Copy ( this src, System.Matrix dest ) : void
src this
dest System.Matrix
return void

CopyData() public static method

srcData 배열을 destData 배열로 복사합니다.
public static CopyData ( this srcData, double destData ) : void
srcData this
destData double
return void

CreateMatrix() public static method

지정한 행과 열의크기를 가진 행렬을 생성합니다.
public static CreateMatrix ( int rows, int cols ) : System.Matrix
rows int 행의 수 (양수)
cols int 열의 수 (양수)
return System.Matrix

Divide() public static method

return a / b
public static Divide ( System.Matrix a, System.Matrix b ) : System.Matrix
a System.Matrix
b System.Matrix
return System.Matrix

Divide() public static method

return a / s
public static Divide ( System.Matrix a, double s ) : System.Matrix
a System.Matrix
s double
return System.Matrix

Divide() public static method

result = a / b
public static Divide ( this result, System.Matrix a, System.Matrix b ) : void
result this
a System.Matrix
b System.Matrix
return void

Divide() public static method

result = a / s
public static Divide ( this result, System.Matrix a, double s ) : void
result this
a System.Matrix
s double
return void

ForEach() public static method

Matrix의 모든 요소를 action에 인자로 넣어 실행합니다.
public static ForEach ( this m, Action action ) : void
m this matrix
action Action 실행할 delegate
return void

Identity() public static method

고유 매트릭스 (대각선만 1)
public static Identity ( int rows, int cols ) : System.Matrix
rows int
cols int
return System.Matrix

Initialize() public static method

Matrix의 모든 요소 값을 value로 설정합니다.
public static Initialize ( this m, double value = 0.0 ) : void
m this
value double
return void

IsSameDimension() public static method

두 2차원 배열이 같은 차원인지 검사합니다.
public static IsSameDimension ( double data1, double data2 ) : bool
data1 double
data2 double
return bool

IsSameDimension() public static method

두개의 Matrix가 같은 차원인지 검사합니다.
public static IsSameDimension ( this m1, System.Matrix m2 ) : bool
m1 this
m2 System.Matrix
return bool

Multiply() public static method

return a * b
public static Multiply ( System.Matrix a, System.Matrix b ) : System.Matrix
a System.Matrix
b System.Matrix
return System.Matrix

Multiply() public static method

return a * s
public static Multiply ( System.Matrix a, double s ) : System.Matrix
a System.Matrix
s double
return System.Matrix

Multiply() public static method

result = a * b
public static Multiply ( this result, System.Matrix a, System.Matrix b ) : void
result this
a System.Matrix
b System.Matrix
return void

Multiply() public static method

result = a * s
public static Multiply ( this result, System.Matrix a, double s ) : void
result this
a System.Matrix
s double
return void

Negate() public static method

음수
public static Negate ( this m ) : System.Matrix
m this
return System.Matrix

Norm1() public static method

Maximum Column Abs Sum
public static Norm1 ( this m ) : double
m this
return double

Norm2() public static method

Maximum singular value
public static Norm2 ( this m ) : double
m this
return double

NormF() public static method

Frobenius norm
Sqrt of Sum Of Squares of all elements
public static NormF ( this m ) : double
m this
return double

NormInf() public static method

Maximum Row Abs Sum
public static NormInf ( this m ) : double
m this
return double

Randomize() public static method

Randomize for Testing
public static Randomize ( this m ) : void
m this
return void

Resize() public static method

Matrix의 행, 렬을 지정한 값으로 설정합니다.
public static Resize ( this m, int rows, int cols ) : void
m this
rows int
cols int
return void

SetMatrix() public static method

m matrix 의 요소값을 s의 요소로 설정합니다.
public static SetMatrix ( this m, System.Matrix s, int rows, int cols ) : void
m this
s System.Matrix
rows int
cols int
return void

SetMatrix() public static method

m matrix 의 요소값을 s의 요소로 설정합니다.
public static SetMatrix ( this m, System.Matrix s, int r0, int r1, int cols ) : void
m this
s System.Matrix
r0 int
r1 int
cols int
return void

SetMatrix() public static method

m matrix 의 요소값을 s의 요소로 설정합니다.
public static SetMatrix ( this m, System.Matrix s, int r0, int r1, int c0, int c1 ) : void
m this
s System.Matrix
r0 int
r1 int
c0 int
c1 int
return void

SubMatrix() public static method

Matirx 에서 지정된 행, 렬의 인덱스에 해당하는 요소들만으로 Sub matrix를 생성합니다.
public static SubMatrix ( this m, int rows, int cols ) : System.Matrix
m this
rows int
cols int
return System.Matrix

SubMatrix() public static method

Matirx 에서 지정된 행, 렬의 인덱스에 해당하는 요소들만으로 Sub matrix를 생성합니다.
public static SubMatrix ( this m, int r0, int r1, int cols ) : System.Matrix
m this
r0 int
r1 int
cols int
return System.Matrix

SubMatrix() public static method

Matrix의 지정한 범위에 해당하는 영역을 Sub matrix 로 만듭니다.
public static SubMatrix ( this m, int r0, int r1, int c0, int c1 ) : System.Matrix
m this
r0 int
r1 int
c0 int
c1 int
return System.Matrix

Subtract() public static method

a - b
public static Subtract ( System.Matrix a, System.Matrix b ) : System.Matrix
a System.Matrix
b System.Matrix
return System.Matrix

Subtract() public static method

result = a b
public static Subtract ( this result, System.Matrix a, System.Matrix b ) : void
result this
a System.Matrix
b System.Matrix
return void

Trace() public static method

Matrix Trace. 대각선 요소들의 합
public static Trace ( this m ) : double
m this
return double

Transpose() public static method

행/열 변환
public static Transpose ( this m ) : System.Matrix
m this
return System.Matrix