00001 /* ========================================================================== */ 00002 /* === umfpack_report_triplet =============================================== */ 00003 /* ========================================================================== */ 00004 00005 /* -------------------------------------------------------------------------- */ 00006 /* UMFPACK Version 4.3 (Jan. 16, 2004), Copyright (c) 2004 by Timothy A. */ 00007 /* Davis. All Rights Reserved. See ../README for License. */ 00008 /* email: davis@cise.ufl.edu CISE Department, Univ. of Florida. */ 00009 /* web: http://www.cise.ufl.edu/research/sparse/umfpack */ 00010 /* -------------------------------------------------------------------------- */ 00011 00012 int umfpack_di_report_triplet 00013 ( 00014 int n_row, 00015 int n_col, 00016 int nz, 00017 const int Ti [ ], 00018 const int Tj [ ], 00019 const double Tx [ ], 00020 const double Control [UMFPACK_CONTROL] 00021 ) ; 00022 00023 long umfpack_dl_report_triplet 00024 ( 00025 long n_row, 00026 long n_col, 00027 long nz, 00028 const long Ti [ ], 00029 const long Tj [ ], 00030 const double Tx [ ], 00031 const double Control [UMFPACK_CONTROL] 00032 ) ; 00033 00034 int umfpack_zi_report_triplet 00035 ( 00036 int n_row, 00037 int n_col, 00038 int nz, 00039 const int Ti [ ], 00040 const int Tj [ ], 00041 const double Tx [ ], const double Tz [ ], 00042 const double Control [UMFPACK_CONTROL] 00043 ) ; 00044 00045 long umfpack_zl_report_triplet 00046 ( 00047 long n_row, 00048 long n_col, 00049 long nz, 00050 const long Ti [ ], 00051 const long Tj [ ], 00052 const double Tx [ ], const double Tz [ ], 00053 const double Control [UMFPACK_CONTROL] 00054 ) ; 00055 00056 /* 00057 double int Syntax: 00058 00059 #include "umfpack.h" 00060 int n_row, n_col, nz, *Ti, *Tj, status ; 00061 double *Tx, Control [UMFPACK_CONTROL] ; 00062 status = umfpack_di_report_triplet (n_row, n_col, nz, Ti, Tj, Tx, Control) ; 00063 00064 double long Syntax: 00065 00066 #include "umfpack.h" 00067 long n_row, n_col, nz, *Ti, *Tj, status ; 00068 double *Tx, Control [UMFPACK_CONTROL] ; 00069 status = umfpack_dl_report_triplet (n_row, n_col, nz, Ti, Tj, Tx, Control) ; 00070 00071 complex int Syntax: 00072 00073 #include "umfpack.h" 00074 int n_row, n_col, nz, *Ti, *Tj, status ; 00075 double *Tx, *Tz, Control [UMFPACK_CONTROL] ; 00076 status = umfpack_zi_report_triplet (n_row, n_col, nz, Ti, Tj, Tx, Tz, 00077 Control) ; 00078 00079 complex long Syntax: 00080 00081 #include "umfpack.h" 00082 long n_row, n_col, nz, *Ti, *Tj, status ; 00083 double *Tx, *Tz, Control [UMFPACK_CONTROL] ; 00084 status = umfpack_zl_report_triplet (n_row, n_col, nz, Ti, Tj, Tx, Tz, 00085 Control) ; 00086 00087 Purpose: 00088 00089 Verifies and prints a matrix in triplet form. 00090 00091 Returns: 00092 00093 UMFPACK_OK if Control [UMFPACK_PRL] <= 2 (the input is not checked). 00094 00095 Otherwise: 00096 00097 UMFPACK_OK if the Triplet matrix is OK. 00098 UMFPACK_ERROR_argument_missing if Ti and/or Tj are missing. 00099 UMFPACK_ERROR_n_nonpositive if n_row <= 0 or n_col <= 0. 00100 UMFPACK_ERROR_invalid_matrix if nz < 0, or 00101 if any row or column index in Ti and/or Tj 00102 is not in the range 0 to n_row-1 or 0 to n_col-1, respectively. 00103 00104 Arguments: 00105 00106 Int n_row ; Input argument, not modified. 00107 Int n_col ; Input argument, not modified. 00108 00109 A is an n_row-by-n_col matrix. 00110 00111 Int nz ; Input argument, not modified. 00112 00113 The number of entries in the triplet form of the matrix. 00114 00115 Int Ti [nz] ; Input argument, not modified. 00116 Int Tj [nz] ; Input argument, not modified. 00117 double Tx [nz] ; Input argument, not modified. 00118 double Tz [nz] ; Input argument, not modified, for complex versions. 00119 00120 Ti, Tj, Tx (and Tz for complex versions) hold the "triplet" form of a 00121 sparse matrix. The kth nonzero entry is in row i = Ti [k], column 00122 j = Tj [k], the real numerical value of a_ij is Tx [k], and the 00123 imaginary part of a_ij is Tz [k] (for complex versions). The row and 00124 column indices i and j must be in the range 0 to n_row-1 or 0 to 00125 n_col-1, respectively. Duplicate entries may be present. The 00126 "triplets" may be in any order. Tx and Tz are optional; if Tx or Tz are 00127 not present ((double *) NULL pointers), then the numerical values are 00128 not printed. 00129 00130 Future complex version: if Tx is present and Tz is NULL, then both real 00131 and imaginary parts will be contained in Tx[0..2*nz-1], with Tx[2*k] 00132 and Tx[2*k+1] being the real and imaginary part of the kth entry. 00133 00134 double Control [UMFPACK_CONTROL] ; Input argument, not modified. 00135 00136 If a (double *) NULL pointer is passed, then the default control 00137 settings are used. Otherwise, the settings are determined from the 00138 Control array. See umfpack_*_defaults on how to fill the Control 00139 array with the default settings. If Control contains NaN's, the 00140 defaults are used. The following Control parameters are used: 00141 00142 Control [UMFPACK_PRL]: printing level. 00143 00144 2 or less: no output. returns silently without checking anything. 00145 3: fully check input, and print a short summary of its status 00146 4: as 3, but print first few entries of the input 00147 5: as 3, but print all of the input 00148 Default: 1 00149 */