edu.ufl.cise.amd.tdouble
Class Damd_valid

java.lang.Object
  extended by edu.ufl.cise.amd.tdouble.Damd
      extended by edu.ufl.cise.amd.tdouble.Damd_internal
          extended by edu.ufl.cise.amd.tdouble.Damd_valid

public class Damd_valid
extends Damd_internal

Check if a column-form matrix is valid or not. The matrix A is n_row-by-n_col. The row indices of entries in column j are in Ai [Ap [j] ... Ap [j+1]-1]. Required conditions are: n_row >= 0 n_col >= 0 nz = Ap [n_col] >= 0 number of entries in the matrix Ap [0] == 0 Ap [j] <= Ap [j+1] for all j in the range 0 to n_col. Ai [0 ... nz-1] must be in the range 0 to n_row-1. If any of the above conditions hold, AMD_INVALID is returned. If the following condition holds, AMD_OK_BUT_JUMBLED is returned (a warning, not an error): row indices in Ai [Ap [j] ... Ap [j+1]-1] are not sorted in ascending order, and/or duplicate entries exist. Otherwise, AMD_OK is returned. In v1.2 and earlier, this function returned TRUE if the matrix was valid (now returns AMD_OK), or FALSE otherwise (now returns AMD_INVALID or AMD_OK_BUT_JUMBLED).


Field Summary
 
Fields inherited from class edu.ufl.cise.amd.tdouble.Damd_internal
EMPTY, FALSE, ID, Int_MAX, NDEBUG, NPRINT, TRUE
 
Fields inherited from class edu.ufl.cise.amd.tdouble.Damd
AMD_AGGRESSIVE, AMD_CONTROL, AMD_DATE, AMD_debug, AMD_DEFAULT_AGGRESSIVE, AMD_DEFAULT_DENSE, AMD_DENSE, AMD_DMAX, AMD_INFO, AMD_INVALID, AMD_LNZ, AMD_MAIN_VERSION, AMD_MEMORY, AMD_N, AMD_NCMPA, AMD_NDENSE, AMD_NDIV, AMD_NMULTSUBS_LDL, AMD_NMULTSUBS_LU, AMD_NZ, AMD_NZ_A_PLUS_AT, AMD_NZDIAG, AMD_OK, AMD_OK_BUT_JUMBLED, AMD_OUT_OF_MEMORY, AMD_STATUS, AMD_SUB_VERSION, AMD_SUBSUB_VERSION, AMD_SYMMETRY, AMD_VERSION
 
Constructor Summary
Damd_valid()
           
 
Method Summary
static int amd_valid(int n_row, int n_col, int[] Ap, int[] Ai)
           
 
Methods inherited from class edu.ufl.cise.amd.tdouble.Damd_internal
AMD_DEBUG0, AMD_DEBUG1, AMD_DEBUG2, AMD_DEBUG3, AMD_DEBUG4, ASSERT, ASSERT, FLIP, IMPLIES, MAX, MAX, MIN, MIN, PRINTF, sqrt, UNFLIP
 
Methods inherited from class edu.ufl.cise.amd.tdouble.Damd
AMD_VERSION_CODE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Damd_valid

public Damd_valid()
Method Detail

amd_valid

public static int amd_valid(int n_row,
                            int n_col,
                            int[] Ap,
                            int[] Ai)
Parameters:
n_row - A is n_row-by-n_col
n_col -
Ap - column pointers of A, of size n_col+1
Ai - row indices of A, of size nz = Ap [n_col]
Returns:


Copyright © 2012. All Rights Reserved.