C# 클래스 Scimark_Csharp_Android.LU

LU matrix factorization. (Based on TNT implementation.) Decomposes a matrix A into a triangular lower triangular factor (L) and an upper triangular factor (U) such that A = L*U. By convnetion, the main diagonal of L consists of 1's so that L and U can be stored compactly in a NxN matrix.
파일 보기 프로젝트 열기: zanew/MonovsDalvik

공개 메소드들

메소드 설명
LU ( double A ) : System

Initalize LU factorization from matrix.

factor ( double A, int pivot ) : int

LU factorization (in place).

new_copy ( int x ) : int[]
num_flops ( int N ) : double

Returns a copy of the compact LU factorization. (useful mainly for debugging.)

solve ( double b ) : double[]

Solve a linear system, with pre-computed factorization.

solve ( double A, int pvt, double b ) : void

Solve a linear system, using a prefactored matrix in LU form.

보호된 메소드들

메소드 설명
insert_copy ( double B, double A ) : void
new_copy ( double x ) : double[]
new_copy ( double A ) : double[][]

메소드 상세

LU() 공개 메소드

Initalize LU factorization from matrix.
public LU ( double A ) : System
A double /// (in) the matrix to associate with this factorization. /// ///
리턴 System

factor() 공개 정적인 메소드

LU factorization (in place).
public static factor ( double A, int pivot ) : int
A double /// (in/out) On input, the matrix to be factored. /// On output, the compact LU factorization. ///
pivot int /// (out) The pivot vector records the /// reordering of the rows of A during factorization. ///
리턴 int

insert_copy() 보호된 정적인 메소드

protected static insert_copy ( double B, double A ) : void
B double
A double
리턴 void

new_copy() 보호된 정적인 메소드

protected static new_copy ( double x ) : double[]
x double
리턴 double[]

new_copy() 보호된 정적인 메소드

protected static new_copy ( double A ) : double[][]
A double
리턴 double[][]

new_copy() 공개 정적인 메소드

public static new_copy ( int x ) : int[]
x int
리턴 int[]

num_flops() 공개 정적인 메소드

Returns a copy of the compact LU factorization. (useful mainly for debugging.)
public static num_flops ( int N ) : double
N int
리턴 double

solve() 공개 메소드

Solve a linear system, with pre-computed factorization.
public solve ( double b ) : double[]
b double /// (in) the right-hand side. ///
리턴 double[]

solve() 공개 정적인 메소드

Solve a linear system, using a prefactored matrix in LU form.
public static solve ( double A, int pvt, double b ) : void
A double (in) the factored matrix in LU form. ///
pvt int
b double (in/out) On input, the right-hand side. /// On output, the solution vector. /// ///
리턴 void