edu.emory.mathcs.csparsej.tfloat
Class Scs_util
- java.lang.Object
-
- edu.emory.mathcs.csparsej.tfloat.Scs_util
-
public class Scs_util extends java.lang.ObjectVarious utilities.
-
-
Constructor Summary
Constructors Constructor and Description Scs_util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static booleanCS_CSC(Scs_common.Scs A)Returns true if A is in column-compressed form, false otherwise.static Scs_common.Scsdcs_dalloc(int m, int n)Allocate a Scsd object (a Sulmage-Mendelsohn decomposition).static Scs_common.Scscs_spalloc(int m, int n, int nzmax, boolean values, boolean triplet)Allocate a sparse matrix (triplet form or compressed-column form).static booleancs_sprealloc(Scs_common.Scs A, int nzmax)Change the max # of entries a sparse matrix can hold.static booleanCS_TRIPLET(Scs_common.Scs A)Returns true if A is in triplet form, false otherwise.
-
-
-
Method Detail
-
cs_spalloc
public static Scs_common.Scs 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(Scs_common.Scs 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 Scs_common.Scsd cs_dalloc(int m, int n)
Allocate a Scsd object (a Sulmage-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:
- Sulmage-Mendelsohn decomposition
-
CS_CSC
public static boolean CS_CSC(Scs_common.Scs 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(Scs_common.Scs 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