edu.emory.mathcs.csparsej.tdouble
Class Dcs_util
- java.lang.Object
-
- edu.emory.mathcs.csparsej.tdouble.Dcs_util
-
public class Dcs_util extends java.lang.ObjectVarious utilities.
-
-
Constructor Summary
Constructors Constructor and Description Dcs_util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static booleanCS_CSC(Dcs_common.Dcs A)Returns true if A is in column-compressed form, false otherwise.static Dcs_common.Dcsdcs_dalloc(int m, int n)Allocate a Dcsd object (a Dulmage-Mendelsohn decomposition).static Dcs_common.Dcscs_spalloc(int m, int n, int nzmax, boolean values, boolean triplet)Allocate a sparse matrix (triplet form or compressed-column form).static booleancs_sprealloc(Dcs_common.Dcs A, int nzmax)Change the max # of entries a sparse matrix can hold.static booleanCS_TRIPLET(Dcs_common.Dcs A)Returns true if A is in triplet form, false otherwise.
-
-
-
Method Detail
-
cs_spalloc
public static Dcs_common.Dcs cs_spalloc(int m, int n, int nzmax, boolean values, boolean triplet)
Allocate a sparse matrix (triplet form or compressed-column form).- Parameters:
m- number of rowsn- number of columnsnzmax- maximum number of entriesvalues- allocate pattern only if false, values and pattern otherwisetriplet- compressed-column if false, triplet form otherwise- Returns:
- sparse matrix
-
cs_sprealloc
public static boolean cs_sprealloc(Dcs_common.Dcs A, int nzmax)
Change the max # of entries a sparse matrix can hold.- Parameters:
A- column-compressed matrixnzmax- new maximum number of entries- Returns:
- true if successful, false on error
-
cs_dalloc
public static Dcs_common.Dcsd cs_dalloc(int m, int n)
Allocate a Dcsd object (a Dulmage-Mendelsohn decomposition).- Parameters:
m- number of rows of the matrix A to be analyzedn- number of columns of the matrix A to be analyzed- Returns:
- Dulmage-Mendelsohn decomposition
-
CS_CSC
public static boolean CS_CSC(Dcs_common.Dcs A)
Returns true if A is in column-compressed form, false otherwise.- Parameters:
A- sparse matrix- Returns:
- true if A is in column-compressed form, false otherwise
-
CS_TRIPLET
public static boolean CS_TRIPLET(Dcs_common.Dcs A)
Returns true if A is in triplet form, false otherwise.- Parameters:
A- sparse matrix- Returns:
- true if A is in triplet form, false otherwise
-
-
DMelt 3.0 © DataMelt by jWork.ORG