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