Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
insert_copy ( double B, double A ) : void | ||
new_copy ( double x ) : double[] | ||
new_copy ( double A ) : double[][] |
public LU ( double A ) : System | ||
A | double | /// (in) the matrix to associate with this factorization. /// /// |
return | System |
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. /// |
return | int |
protected static insert_copy ( double B, double A ) : void | ||
B | double | |
A | double | |
return | void |
protected static new_copy ( double x ) : double[] | ||
x | double | |
return | double[] |
protected static new_copy ( double A ) : double[][] | ||
A | double | |
return | double[][] |
public solve ( double b ) : double[] | ||
b | double | /// (in) the right-hand side. /// |
return | double[] |
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. /// /// |
return | void |