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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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