Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
amesos_cholmod_check.h
Go to the documentation of this file.
1 /* ========================================================================== */
2 /* === Include/cholmod_check.h ============================================== */
3 /* ========================================================================== */
4 
5 /* -----------------------------------------------------------------------------
6  * CHOLMOD/Include/cholmod_check.h. Copyright (C) 2005-2006, Timothy A. Davis
7  * CHOLMOD/Include/cholmod_check.h is licensed under Version 2.1 of the GNU
8  * Lesser General Public License. See lesser.txt for a text of the license.
9  * CHOLMOD is also available under other licenses; contact authors for details.
10  * http://www.cise.ufl.edu/research/sparse
11  * -------------------------------------------------------------------------- */
12 
13 /* CHOLMOD Check module.
14  *
15  * Routines that check and print the 5 basic data types in CHOLMOD, and 3 kinds
16  * of integer vectors (subset, perm, and parent), and read in matrices from a
17  * file:
18  *
19  * cholmod_check_common check/print the Common object
20  * cholmod_print_common
21  *
22  * cholmod_check_sparse check/print a sparse matrix in column-oriented form
23  * cholmod_print_sparse
24  *
25  * cholmod_check_dense check/print a dense matrix
26  * cholmod_print_dense
27  *
28  * cholmod_check_factor check/print a Cholesky factorization
29  * cholmod_print_factor
30  *
31  * cholmod_check_triplet check/print a sparse matrix in triplet form
32  * cholmod_print_triplet
33  *
34  * cholmod_check_subset check/print a subset (integer vector in given range)
35  * cholmod_print_subset
36  *
37  * cholmod_check_perm check/print a permutation (an integer vector)
38  * cholmod_print_perm
39  *
40  * cholmod_check_parent check/print an elimination tree (an integer vector)
41  * cholmod_print_parent
42  *
43  * cholmod_print_common and cholmod_check_common are the only two routines that
44  * you may call after calling cholmod_finish.
45  *
46  * Requires the Core module. Not required by any CHOLMOD module, except when
47  * debugging is enabled (in which case all modules require the Check module).
48  *
49  */
50 
51 #ifndef AMESOS_CHOLMOD_CHECK_H
52 #define AMESOS_CHOLMOD_CHECK_H
53 
54 #include "amesos_cholmod_core.h"
55 #include <stdio.h>
56 
57 /* -------------------------------------------------------------------------- */
58 /* cholmod_check_common: check the Common object */
59 /* -------------------------------------------------------------------------- */
60 
62 (
63  cholmod_common *Common
64 ) ;
65 
67 
68 /* -------------------------------------------------------------------------- */
69 /* cholmod_print_common: print the Common object */
70 /* -------------------------------------------------------------------------- */
71 
73 (
74  /* ---- input ---- */
75  char *name, /* printed name of Common object */
76  /* --------------- */
77  cholmod_common *Common
78 ) ;
79 
80 int cholmod_l_print_common (char *, cholmod_common *) ;
81 
82 /* -------------------------------------------------------------------------- */
83 /* cholmod_check_sparse: check a sparse matrix */
84 /* -------------------------------------------------------------------------- */
85 
87 (
88  /* ---- input ---- */
89  cholmod_sparse *A, /* sparse matrix to check */
90  /* --------------- */
91  cholmod_common *Common
92 ) ;
93 
95 
96 /* -------------------------------------------------------------------------- */
97 /* cholmod_print_sparse */
98 /* -------------------------------------------------------------------------- */
99 
101 (
102  /* ---- input ---- */
103  cholmod_sparse *A, /* sparse matrix to print */
104  char *name, /* printed name of sparse matrix */
105  /* --------------- */
106  cholmod_common *Common
107 ) ;
108 
110 
111 /* -------------------------------------------------------------------------- */
112 /* cholmod_check_dense: check a dense matrix */
113 /* -------------------------------------------------------------------------- */
114 
116 (
117  /* ---- input ---- */
118  cholmod_dense *X, /* dense matrix to check */
119  /* --------------- */
120  cholmod_common *Common
121 ) ;
122 
124 
125 /* -------------------------------------------------------------------------- */
126 /* cholmod_print_dense: print a dense matrix */
127 /* -------------------------------------------------------------------------- */
128 
130 (
131  /* ---- input ---- */
132  cholmod_dense *X, /* dense matrix to print */
133  char *name, /* printed name of dense matrix */
134  /* --------------- */
135  cholmod_common *Common
136 ) ;
137 
139 
140 /* -------------------------------------------------------------------------- */
141 /* cholmod_check_factor: check a factor */
142 /* -------------------------------------------------------------------------- */
143 
145 (
146  /* ---- input ---- */
147  cholmod_factor *L, /* factor to check */
148  /* --------------- */
149  cholmod_common *Common
150 ) ;
151 
153 
154 /* -------------------------------------------------------------------------- */
155 /* cholmod_print_factor: print a factor */
156 /* -------------------------------------------------------------------------- */
157 
159 (
160  /* ---- input ---- */
161  cholmod_factor *L, /* factor to print */
162  char *name, /* printed name of factor */
163  /* --------------- */
164  cholmod_common *Common
165 ) ;
166 
168 
169 /* -------------------------------------------------------------------------- */
170 /* cholmod_check_triplet: check a sparse matrix in triplet form */
171 /* -------------------------------------------------------------------------- */
172 
174 (
175  /* ---- input ---- */
176  cholmod_triplet *T, /* triplet matrix to check */
177  /* --------------- */
178  cholmod_common *Common
179 ) ;
180 
182 
183 /* -------------------------------------------------------------------------- */
184 /* cholmod_print_triplet: print a triplet matrix */
185 /* -------------------------------------------------------------------------- */
186 
188 (
189  /* ---- input ---- */
190  cholmod_triplet *T, /* triplet matrix to print */
191  char *name, /* printed name of triplet matrix */
192  /* --------------- */
193  cholmod_common *Common
194 ) ;
195 
197 
198 /* -------------------------------------------------------------------------- */
199 /* cholmod_check_subset: check a subset */
200 /* -------------------------------------------------------------------------- */
201 
203 (
204  /* ---- input ---- */
205  int *Set, /* Set [0:len-1] is a subset of 0:n-1. Duplicates OK */
206  UF_long len, /* size of Set (an integer array) */
207  size_t n, /* 0:n-1 is valid range */
208  /* --------------- */
209  cholmod_common *Common
210 ) ;
211 
213 
214 /* -------------------------------------------------------------------------- */
215 /* cholmod_print_subset: print a subset */
216 /* -------------------------------------------------------------------------- */
217 
219 (
220  /* ---- input ---- */
221  int *Set, /* Set [0:len-1] is a subset of 0:n-1. Duplicates OK */
222  UF_long len, /* size of Set (an integer array) */
223  size_t n, /* 0:n-1 is valid range */
224  char *name, /* printed name of Set */
225  /* --------------- */
226  cholmod_common *Common
227 ) ;
228 
229 int cholmod_l_print_subset (UF_long *, UF_long, size_t, char *,
230  cholmod_common *) ;
231 
232 /* -------------------------------------------------------------------------- */
233 /* cholmod_check_perm: check a permutation */
234 /* -------------------------------------------------------------------------- */
235 
237 (
238  /* ---- input ---- */
239  int *Perm, /* Perm [0:len-1] is a permutation of subset of 0:n-1 */
240  size_t len, /* size of Perm (an integer array) */
241  size_t n, /* 0:n-1 is valid range */
242  /* --------------- */
243  cholmod_common *Common
244 ) ;
245 
246 int cholmod_l_check_perm (UF_long *, size_t, size_t, cholmod_common *) ;
247 
248 /* -------------------------------------------------------------------------- */
249 /* cholmod_print_perm: print a permutation vector */
250 /* -------------------------------------------------------------------------- */
251 
253 (
254  /* ---- input ---- */
255  int *Perm, /* Perm [0:len-1] is a permutation of subset of 0:n-1 */
256  size_t len, /* size of Perm (an integer array) */
257  size_t n, /* 0:n-1 is valid range */
258  char *name, /* printed name of Perm */
259  /* --------------- */
260  cholmod_common *Common
261 ) ;
262 
263 int cholmod_l_print_perm (UF_long *, size_t, size_t, char *, cholmod_common *) ;
264 
265 /* -------------------------------------------------------------------------- */
266 /* cholmod_check_parent: check an elimination tree */
267 /* -------------------------------------------------------------------------- */
268 
270 (
271  /* ---- input ---- */
272  int *Parent, /* Parent [0:n-1] is an elimination tree */
273  size_t n, /* size of Parent */
274  /* --------------- */
275  cholmod_common *Common
276 ) ;
277 
278 int cholmod_l_check_parent (UF_long *, size_t, cholmod_common *) ;
279 
280 /* -------------------------------------------------------------------------- */
281 /* cholmod_print_parent */
282 /* -------------------------------------------------------------------------- */
283 
285 (
286  /* ---- input ---- */
287  int *Parent, /* Parent [0:n-1] is an elimination tree */
288  size_t n, /* size of Parent */
289  char *name, /* printed name of Parent */
290  /* --------------- */
291  cholmod_common *Common
292 ) ;
293 
294 int cholmod_l_print_parent (UF_long *, size_t, char *, cholmod_common *) ;
295 
296 #endif
int cholmod_l_check_subset(UF_long *, UF_long, size_t, cholmod_common *)
int cholmod_l_print_parent(UF_long *, size_t, char *, cholmod_common *)
int cholmod_l_print_triplet(cholmod_triplet *, char *, cholmod_common *)
int cholmod_check_common(cholmod_common *Common)
int cholmod_print_common(char *name, cholmod_common *Common)
int cholmod_l_print_common(char *, cholmod_common *)
int cholmod_print_triplet(cholmod_triplet *T, char *name, cholmod_common *Common)
int cholmod_l_print_dense(cholmod_dense *, char *, cholmod_common *)
int cholmod_l_check_dense(cholmod_dense *, cholmod_common *)
int cholmod_l_check_parent(UF_long *, size_t, cholmod_common *)
int cholmod_print_parent(int *Parent, size_t n, char *name, cholmod_common *Common)
int cholmod_print_sparse(cholmod_sparse *A, char *name, cholmod_common *Common)
int cholmod_l_print_sparse(cholmod_sparse *, char *, cholmod_common *)
int cholmod_l_print_factor(cholmod_factor *, char *, cholmod_common *)
int cholmod_l_print_subset(UF_long *, UF_long, size_t, char *, cholmod_common *)
int cholmod_check_dense(cholmod_dense *X, cholmod_common *Common)
int cholmod_l_check_factor(cholmod_factor *, cholmod_common *)
int cholmod_l_check_common(cholmod_common *)
int cholmod_check_parent(int *Parent, size_t n, cholmod_common *Common)
int cholmod_check_subset(int *Set, UF_long len, size_t n, cholmod_common *Common)
int cholmod_l_check_triplet(cholmod_triplet *, cholmod_common *)
int cholmod_check_triplet(cholmod_triplet *T, cholmod_common *Common)
int cholmod_print_factor(cholmod_factor *L, char *name, cholmod_common *Common)
int cholmod_l_check_sparse(cholmod_sparse *, cholmod_common *)
int cholmod_print_subset(int *Set, UF_long len, size_t n, char *name, cholmod_common *Common)
int cholmod_print_perm(int *Perm, size_t len, size_t n, char *name, cholmod_common *Common)
int cholmod_check_sparse(cholmod_sparse *A, cholmod_common *Common)
int cholmod_check_factor(cholmod_factor *L, cholmod_common *Common)
int cholmod_print_dense(cholmod_dense *X, char *name, cholmod_common *Common)
#define UF_long
int cholmod_l_print_perm(UF_long *, size_t, size_t, char *, cholmod_common *)
int cholmod_l_check_perm(UF_long *, size_t, size_t, cholmod_common *)
int cholmod_check_perm(int *Perm, size_t len, size_t n, cholmod_common *Common)