edu.emory.mathcs.csparsej.tdouble
Class Dcs_spsolve
- java.lang.Object
-
- edu.emory.mathcs.csparsej.tdouble.Dcs_spsolve
-
public class Dcs_spsolve extends java.lang.ObjectSparse lower or upper triangular solve. x=G\b where G, x, and b are sparse, and G upper/lower triangular.
-
-
Constructor Summary
Constructors Constructor and Description Dcs_spsolve()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intcs_spsolve(Dcs_common.Dcs G, Dcs_common.Dcs B, int k, int[] xi, double[] x, int[] pinv, boolean lo)solve Gx=b(:,k), where G is either upper (lo=false) or lower (lo=true) triangular.
-
-
-
Method Detail
-
cs_spsolve
public static int cs_spsolve(Dcs_common.Dcs G, Dcs_common.Dcs B, int k, int[] xi, double[] x, int[] pinv, boolean lo)
solve Gx=b(:,k), where G is either upper (lo=false) or lower (lo=true) triangular.- Parameters:
G- lower or upper triangular matrix in column-compressed formB- right hand side, b=B(:,k)k- use kth column of B as right hand sidexi- size 2*n, nonzero pattern of x in xi[top..n-1]x- size n, x in x[xi[top..n-1]]pinv- mapping of rows to columns of G, ignored if nulllo- true if lower triangular, false if upper- Returns:
- top, -1 in error
-
-
DMelt 3.0 © DataMelt by jWork.ORG