Amesos Package Browser (Single Doxygen Collection)  Development
Macros | Functions | Variables
amesos_camd.h File Reference
#include <stddef.h>
#include "amesos_UFconfig.h"
Include dependency graph for amesos_camd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EXTERN   extern
 
#define CAMD_CONTROL   5 /* size of Control array */
 
#define CAMD_INFO   20 /* size of Info array */
 
#define CAMD_DENSE   0 /* "dense" if degree > Control [0] * sqrt (n) */
 
#define CAMD_AGGRESSIVE   1 /* do aggressive absorption if Control [1] != 0 */
 
#define CAMD_DEFAULT_DENSE   10.0 /* default "dense" degree 10*sqrt(n) */
 
#define CAMD_DEFAULT_AGGRESSIVE   1 /* do aggressive absorption by default */
 
#define CAMD_STATUS   0 /* return value of camd_order and camd_l_order */
 
#define CAMD_N   1 /* A is n-by-n */
 
#define CAMD_NZ   2 /* number of nonzeros in A */
 
#define CAMD_SYMMETRY   3 /* symmetry of pattern (1 is sym., 0 is unsym.) */
 
#define CAMD_NZDIAG   4 /* # of entries on diagonal */
 
#define CAMD_NZ_A_PLUS_AT   5 /* nz in A+A' */
 
#define CAMD_NDENSE   6 /* number of "dense" rows/columns in A */
 
#define CAMD_MEMORY   7 /* amount of memory used by CAMD */
 
#define CAMD_NCMPA   8 /* number of garbage collections in CAMD */
 
#define CAMD_LNZ   9 /* approx. nz in L, excluding the diagonal */
 
#define CAMD_NDIV   10 /* number of fl. point divides for LU and LDL' */
 
#define CAMD_NMULTSUBS_LDL   11 /* number of fl. point (*,-) pairs for LDL' */
 
#define CAMD_NMULTSUBS_LU   12 /* number of fl. point (*,-) pairs for LU */
 
#define CAMD_DMAX   13 /* max nz. in any column of L, incl. diagonal */
 
#define CAMD_OK   0 /* success */
 
#define CAMD_OUT_OF_MEMORY   -1 /* malloc failed, or problem too large */
 
#define CAMD_INVALID   -2 /* input arguments are not valid */
 
#define CAMD_OK_BUT_JUMBLED
 
#define CAMD_DATE   "May 31, 2007"
 
#define CAMD_VERSION_CODE(main, sub)   ((main) * 1000 + (sub))
 
#define CAMD_MAIN_VERSION   2
 
#define CAMD_SUB_VERSION   2
 
#define CAMD_SUBSUB_VERSION   0
 
#define CAMD_VERSION   CAMD_VERSION_CODE(CAMD_MAIN_VERSION,CAMD_SUB_VERSION)
 

Functions

int amesos_camd_order (int n, const int Ap [], const int Ai [], int P [], double Control [], double Info [], const int C [])
 
UF_long amesos_camd_l_order (UF_long n, const UF_long Ap [], const UF_long Ai [], UF_long P [], double Control [], double Info [], const UF_long C [])
 
void amesos_camd_2 (int n, int Pe [], int Iw [], int Len [], int iwlen, int pfree, int Nv [], int Next [], int Last [], int Head [], int Elen [], int Degree [], int W [], double Control [], double Info [], const int C [], int BucketSet [])
 
void amesos_camd_l2 (UF_long n, UF_long Pe [], UF_long Iw [], UF_long Len [], UF_long iwlen, UF_long pfree, UF_long Nv [], UF_long Next [], UF_long Last [], UF_long Head [], UF_long Elen [], UF_long Degree [], UF_long W [], double Control [], double Info [], const UF_long C [], UF_long BucketSet [])
 
int amesos_camd_valid (int n_row, int n_col, const int Ap [], const int Ai [])
 
UF_long amesos_camd_l_valid (UF_long n_row, UF_long n_col, const UF_long Ap [], const UF_long Ai [])
 
int amesos_camd_cvalid (int n, const int C [])
 
UF_long amesos_camd_l_cvalid (UF_long n, const UF_long C [])
 
void amesos_camd_defaults (double Control [])
 
void amesos_camd_l_defaults (double Control [])
 
void amesos_camd_control (double Control [])
 
void amesos_camd_l_control (double Control [])
 
void amesos_camd_info (double Info [])
 
void amesos_camd_l_info (double Info [])
 

Variables

EXTERN void *(* amesos_camd_malloc )(size_t)
 
EXTERN void(* amesos_camd_free )(void *)
 
EXTERN void *(* amesos_camd_realloc )(void *, size_t)
 
EXTERN void *(* amesos_camd_calloc )(size_t, size_t)
 
EXTERN int(* amesos_camd_printf )(const char *,...)
 

Macro Definition Documentation

◆ EXTERN

#define EXTERN   extern

Definition at line 326 of file amesos_camd.h.

◆ CAMD_CONTROL

#define CAMD_CONTROL   5 /* size of Control array */

Definition at line 351 of file amesos_camd.h.

◆ CAMD_INFO

#define CAMD_INFO   20 /* size of Info array */

Definition at line 352 of file amesos_camd.h.

◆ CAMD_DENSE

#define CAMD_DENSE   0 /* "dense" if degree > Control [0] * sqrt (n) */

Definition at line 355 of file amesos_camd.h.

◆ CAMD_AGGRESSIVE

#define CAMD_AGGRESSIVE   1 /* do aggressive absorption if Control [1] != 0 */

Definition at line 356 of file amesos_camd.h.

◆ CAMD_DEFAULT_DENSE

#define CAMD_DEFAULT_DENSE   10.0 /* default "dense" degree 10*sqrt(n) */

Definition at line 359 of file amesos_camd.h.

◆ CAMD_DEFAULT_AGGRESSIVE

#define CAMD_DEFAULT_AGGRESSIVE   1 /* do aggressive absorption by default */

Definition at line 360 of file amesos_camd.h.

◆ CAMD_STATUS

#define CAMD_STATUS   0 /* return value of camd_order and camd_l_order */

Definition at line 363 of file amesos_camd.h.

◆ CAMD_N

#define CAMD_N   1 /* A is n-by-n */

Definition at line 364 of file amesos_camd.h.

◆ CAMD_NZ

#define CAMD_NZ   2 /* number of nonzeros in A */

Definition at line 365 of file amesos_camd.h.

◆ CAMD_SYMMETRY

#define CAMD_SYMMETRY   3 /* symmetry of pattern (1 is sym., 0 is unsym.) */

Definition at line 366 of file amesos_camd.h.

◆ CAMD_NZDIAG

#define CAMD_NZDIAG   4 /* # of entries on diagonal */

Definition at line 367 of file amesos_camd.h.

◆ CAMD_NZ_A_PLUS_AT

#define CAMD_NZ_A_PLUS_AT   5 /* nz in A+A' */

Definition at line 368 of file amesos_camd.h.

◆ CAMD_NDENSE

#define CAMD_NDENSE   6 /* number of "dense" rows/columns in A */

Definition at line 369 of file amesos_camd.h.

◆ CAMD_MEMORY

#define CAMD_MEMORY   7 /* amount of memory used by CAMD */

Definition at line 370 of file amesos_camd.h.

◆ CAMD_NCMPA

#define CAMD_NCMPA   8 /* number of garbage collections in CAMD */

Definition at line 371 of file amesos_camd.h.

◆ CAMD_LNZ

#define CAMD_LNZ   9 /* approx. nz in L, excluding the diagonal */

Definition at line 372 of file amesos_camd.h.

◆ CAMD_NDIV

#define CAMD_NDIV   10 /* number of fl. point divides for LU and LDL' */

Definition at line 373 of file amesos_camd.h.

◆ CAMD_NMULTSUBS_LDL

#define CAMD_NMULTSUBS_LDL   11 /* number of fl. point (*,-) pairs for LDL' */

Definition at line 374 of file amesos_camd.h.

◆ CAMD_NMULTSUBS_LU

#define CAMD_NMULTSUBS_LU   12 /* number of fl. point (*,-) pairs for LU */

Definition at line 375 of file amesos_camd.h.

◆ CAMD_DMAX

#define CAMD_DMAX   13 /* max nz. in any column of L, incl. diagonal */

Definition at line 376 of file amesos_camd.h.

◆ CAMD_OK

#define CAMD_OK   0 /* success */

Definition at line 382 of file amesos_camd.h.

◆ CAMD_OUT_OF_MEMORY

#define CAMD_OUT_OF_MEMORY   -1 /* malloc failed, or problem too large */

Definition at line 383 of file amesos_camd.h.

◆ CAMD_INVALID

#define CAMD_INVALID   -2 /* input arguments are not valid */

Definition at line 384 of file amesos_camd.h.

◆ CAMD_OK_BUT_JUMBLED

#define CAMD_OK_BUT_JUMBLED
Value:
1 /* input matrix is OK for camd_order, but
* columns were not sorted, and/or duplicate entries were present. CAMD had
* to do extra work before ordering the matrix. This is a warning, not an
* error. */

Definition at line 385 of file amesos_camd.h.

◆ CAMD_DATE

#define CAMD_DATE   "May 31, 2007"

Definition at line 408 of file amesos_camd.h.

◆ CAMD_VERSION_CODE

#define CAMD_VERSION_CODE (   main,
  sub 
)    ((main) * 1000 + (sub))

Definition at line 409 of file amesos_camd.h.

◆ CAMD_MAIN_VERSION

#define CAMD_MAIN_VERSION   2

Definition at line 410 of file amesos_camd.h.

◆ CAMD_SUB_VERSION

#define CAMD_SUB_VERSION   2

Definition at line 411 of file amesos_camd.h.

◆ CAMD_SUBSUB_VERSION

#define CAMD_SUBSUB_VERSION   0

Definition at line 412 of file amesos_camd.h.

◆ CAMD_VERSION

Definition at line 413 of file amesos_camd.h.

Function Documentation

◆ amesos_camd_order()

int amesos_camd_order ( int  n,
const int  Ap[],
const int  Ai[],
int  P[],
double  Control[],
double  Info[],
const int  C[] 
)

◆ amesos_camd_l_order()

UF_long amesos_camd_l_order ( UF_long  n,
const UF_long  Ap[],
const UF_long  Ai[],
UF_long  P[],
double  Control[],
double  Info[],
const UF_long  C[] 
)

◆ amesos_camd_2()

void amesos_camd_2 ( int  n,
int  Pe[],
int  Iw[],
int  Len[],
int  iwlen,
int  pfree,
int  Nv[],
int  Next[],
int  Last[],
int  Head[],
int  Elen[],
int  Degree[],
int  W[],
double  Control[],
double  Info[],
const int  C[],
int  BucketSet[] 
)

◆ amesos_camd_l2()

void amesos_camd_l2 ( UF_long  n,
UF_long  Pe[],
UF_long  Iw[],
UF_long  Len[],
UF_long  iwlen,
UF_long  pfree,
UF_long  Nv[],
UF_long  Next[],
UF_long  Last[],
UF_long  Head[],
UF_long  Elen[],
UF_long  Degree[],
UF_long  W[],
double  Control[],
double  Info[],
const UF_long  C[],
UF_long  BucketSet[] 
)

◆ amesos_camd_valid()

int amesos_camd_valid ( int  n_row,
int  n_col,
const int  Ap[],
const int  Ai[] 
)

◆ amesos_camd_l_valid()

UF_long amesos_camd_l_valid ( UF_long  n_row,
UF_long  n_col,
const UF_long  Ap[],
const UF_long  Ai[] 
)

◆ amesos_camd_cvalid()

int amesos_camd_cvalid ( int  n,
const int  C[] 
)

◆ amesos_camd_l_cvalid()

UF_long amesos_camd_l_cvalid ( UF_long  n,
const UF_long  C[] 
)

◆ amesos_camd_defaults()

void amesos_camd_defaults ( double  Control[])

◆ amesos_camd_l_defaults()

void amesos_camd_l_defaults ( double  Control[])

◆ amesos_camd_control()

void amesos_camd_control ( double  Control[])

◆ amesos_camd_l_control()

void amesos_camd_l_control ( double  Control[])

◆ amesos_camd_info()

void amesos_camd_info ( double  Info[])

◆ amesos_camd_l_info()

void amesos_camd_l_info ( double  Info[])

Variable Documentation

◆ amesos_camd_malloc

EXTERN void*(* amesos_camd_malloc) (size_t)

Definition at line 329 of file amesos_camd.h.

◆ amesos_camd_free

EXTERN void(* amesos_camd_free) (void *)

Definition at line 330 of file amesos_camd.h.

◆ amesos_camd_realloc

EXTERN void*(* amesos_camd_realloc) (void *, size_t)

Definition at line 331 of file amesos_camd.h.

◆ amesos_camd_calloc

EXTERN void*(* amesos_camd_calloc) (size_t, size_t)

Definition at line 332 of file amesos_camd.h.

◆ amesos_camd_printf

EXTERN int(* amesos_camd_printf) (const char *,...)

Definition at line 333 of file amesos_camd.h.