Classes | Macros | Typedefs | Functions
cs.h File Reference
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
Include dependency graph for cs.h:

Go to the source code of this file.

Classes

struct  cs_dmperm_results
 
struct  cs_numeric
 
struct  cs_sparse
 
struct  cs_symbolic
 

Macros

#define CS_COPYRIGHT   "Copyright (c) Timothy A. Davis, 2006-2009"
 
#define CS_CSC(A)   (A && (A->nz == -1))
 
#define CS_DATE   "Jan 20, 2009" /* CSparse release date */
 
#define CS_FLIP(i)   (-(i)-2)
 
#define CS_MARK(w, j)   { w [j] = CS_FLIP (w [j]) ; }
 
#define CS_MARKED(w, j)   (w [j] < 0)
 
#define CS_MAX(a, b)   (((a) > (b)) ? (a) : (b))
 
#define CS_MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define CS_SUBSUB   3
 
#define CS_SUBVER   2
 
#define CS_TRIPLET(A)   (A && (A->nz >= 0))
 
#define CS_UNFLIP(i)   (((i) < 0) ? CS_FLIP(i) : (i))
 
#define CS_VER   2 /* CSparse Version 2.2.3 */
 

Typedefs

typedef struct cs_sparse cs
 
typedef struct cs_dmperm_results csd
 
typedef struct cs_numeric csn
 
typedef struct cs_symbolic css
 

Functions

cscs_add (const cs *A, const cs *B, double alpha, double beta)
 
int * cs_amd (int order, const cs *A)
 
void * cs_calloc (int n, size_t size)
 
csncs_chol (const cs *A, const css *S)
 
int cs_cholsol (int order, const cs *A, double *b)
 
cscs_compress (const cs *T)
 
int * cs_counts (const cs *A, const int *parent, const int *post, int ata)
 
double cs_cumsum (int *p, int *c, int n)
 
csdcs_dalloc (int m, int n)
 
csdcs_ddone (csd *D, cs *C, void *w, int ok)
 
csdcs_dfree (csd *D)
 
int cs_dfs (int j, cs *G, int top, int *xi, int *pstack, const int *pinv)
 
csdcs_dmperm (const cs *A, int seed)
 
cscs_done (cs *C, void *w, void *x, int ok)
 
int cs_droptol (cs *A, double tol)
 
int cs_dropzeros (cs *A)
 
int cs_dupl (cs *A)
 
int cs_entry (cs *T, int i, int j, double x)
 
int cs_ereach (const cs *A, int k, const int *parent, int *s, int *w)
 
int * cs_etree (const cs *A, int ata)
 
int cs_fkeep (cs *A, int(*fkeep)(int, int, double, void *), void *other)
 
void * cs_free (void *p)
 
int cs_gaxpy (const cs *A, const double *x, double *y)
 
int cs_happly (const cs *V, int i, double beta, double *x)
 
double cs_house (double *x, double *beta, int n)
 
int * cs_idone (int *p, cs *C, void *w, int ok)
 
int cs_ipvec (const int *p, const double *b, double *x, int n)
 
int cs_leaf (int i, int j, const int *first, int *maxfirst, int *prevleaf, int *ancestor, int *jleaf)
 
cscs_load (FILE *f)
 
int cs_lsolve (const cs *L, double *x)
 
int cs_ltsolve (const cs *L, double *x)
 
csncs_lu (const cs *A, const css *S, double tol)
 
int cs_lusol (int order, const cs *A, double *b, double tol)
 
void * cs_malloc (int n, size_t size)
 
int * cs_maxtrans (const cs *A, int seed)
 
cscs_multiply (const cs *A, const cs *B)
 
csncs_ndone (csn *N, cs *C, void *w, void *x, int ok)
 
csncs_nfree (csn *N)
 
double cs_norm (const cs *A)
 
cscs_permute (const cs *A, const int *pinv, const int *q, int values)
 
int * cs_pinv (const int *p, int n)
 
int * cs_post (const int *parent, int n)
 
int cs_print (const cs *A, int brief)
 
int cs_pvec (const int *p, const double *b, double *x, int n)
 
csncs_qr (const cs *A, const css *S)
 
int cs_qrsol (int order, const cs *A, double *b)
 
int * cs_randperm (int n, int seed)
 
int cs_reach (cs *G, const cs *B, int k, int *xi, const int *pinv)
 
void * cs_realloc (void *p, int n, size_t size, int *ok)
 
int cs_scatter (const cs *A, int j, double beta, int *w, double *x, int mark, cs *C, int nz)
 
csdcs_scc (cs *A)
 
csscs_schol (int order, const cs *A)
 
csscs_sfree (css *S)
 
cscs_spalloc (int m, int n, int nzmax, int values, int triplet)
 
cscs_spfree (cs *A)
 
int cs_sprealloc (cs *A, int nzmax)
 
int cs_spsolve (cs *G, const cs *B, int k, int *xi, double *x, const int *pinv, int lo)
 
csscs_sqr (int order, const cs *A, int qr)
 
cscs_symperm (const cs *A, const int *pinv, int values)
 
int cs_tdfs (int j, int k, int *head, const int *next, int *post, int *stack)
 
cscs_transpose (const cs *A, int values)
 
int cs_updown (cs *L, int sigma, const cs *C, const int *parent)
 
int cs_usolve (const cs *U, double *x)
 
int cs_utsolve (const cs *U, double *x)
 

Macro Definition Documentation

#define CS_COPYRIGHT   "Copyright (c) Timothy A. Davis, 2006-2009"

Definition at line 11 of file cs.h.

#define CS_CSC (   A)    (A && (A->nz == -1))

Definition at line 140 of file cs.h.

#define CS_DATE   "Jan 20, 2009" /* CSparse release date */

Definition at line 10 of file cs.h.

#define CS_FLIP (   i)    (-(i)-2)

Definition at line 136 of file cs.h.

#define CS_MARK (   w,
 
)    { w [j] = CS_FLIP (w [j]) ; }

Definition at line 139 of file cs.h.

#define CS_MARKED (   w,
 
)    (w [j] < 0)

Definition at line 138 of file cs.h.

#define CS_MAX (   a,
 
)    (((a) > (b)) ? (a) : (b))

Definition at line 134 of file cs.h.

#define CS_MIN (   a,
 
)    (((a) < (b)) ? (a) : (b))

Definition at line 135 of file cs.h.

#define CS_SUBSUB   3

Definition at line 9 of file cs.h.

#define CS_SUBVER   2

Definition at line 8 of file cs.h.

#define CS_TRIPLET (   A)    (A && (A->nz >= 0))

Definition at line 141 of file cs.h.

#define CS_UNFLIP (   i)    (((i) < 0) ? CS_FLIP(i) : (i))

Definition at line 137 of file cs.h.

#define CS_VER   2 /* CSparse Version 2.2.3 */

Definition at line 7 of file cs.h.

Typedef Documentation

typedef struct cs_sparse cs
typedef struct cs_dmperm_results csd
typedef struct cs_numeric csn
typedef struct cs_symbolic css

Function Documentation

cs* cs_add ( const cs A,
const cs B,
double  alpha,
double  beta 
)

Definition at line 3 of file cs_add.c.

int* cs_amd ( int  order,
const cs A 
)

Definition at line 18 of file cs_amd.c.

void* cs_calloc ( int  n,
size_t  size 
)

Definition at line 16 of file cs_malloc.c.

csn* cs_chol ( const cs A,
const css S 
)

Definition at line 3 of file cs_chol.c.

int cs_cholsol ( int  order,
const cs A,
double *  b 
)

Definition at line 3 of file cs_cholsol.c.

cs* cs_compress ( const cs T)

Definition at line 3 of file cs_compress.c.

int* cs_counts ( const cs A,
const int *  parent,
const int *  post,
int  ata 
)

Definition at line 17 of file cs_counts.c.

double cs_cumsum ( int *  p,
int *  c,
int  n 
)

Definition at line 3 of file cs_cumsum.c.

csd* cs_dalloc ( int  m,
int  n 
)

Definition at line 65 of file cs_util.c.

csd* cs_ddone ( csd D,
cs C,
void *  w,
int  ok 
)

Definition at line 114 of file cs_util.c.

csd* cs_dfree ( csd D)

Definition at line 78 of file cs_util.c.

int cs_dfs ( int  j,
cs G,
int  top,
int *  xi,
int *  pstack,
const int *  pinv 
)

Definition at line 3 of file cs_dfs.c.

csd* cs_dmperm ( const cs A,
int  seed 
)

Definition at line 68 of file cs_dmperm.c.

cs* cs_done ( cs C,
void *  w,
void *  x,
int  ok 
)

Definition at line 89 of file cs_util.c.

int cs_droptol ( cs A,
double  tol 
)

Definition at line 6 of file cs_droptol.c.

int cs_dropzeros ( cs A)

Definition at line 6 of file cs_dropzeros.c.

int cs_dupl ( cs A)

Definition at line 3 of file cs_dupl.c.

int cs_entry ( cs T,
int  i,
int  j,
double  x 
)

Definition at line 3 of file cs_entry.c.

int cs_ereach ( const cs A,
int  k,
const int *  parent,
int *  s,
int *  w 
)

Definition at line 3 of file cs_ereach.c.

int* cs_etree ( const cs A,
int  ata 
)

Definition at line 3 of file cs_etree.c.

int cs_fkeep ( cs A,
int(*)(int, int, double, void *)  fkeep,
void *  other 
)

Definition at line 3 of file cs_fkeep.c.

void* cs_free ( void *  p)

Definition at line 22 of file cs_malloc.c.

int cs_gaxpy ( const cs A,
const double *  x,
double *  y 
)

Definition at line 3 of file cs_gaxpy.c.

int cs_happly ( const cs V,
int  i,
double  beta,
double *  x 
)

Definition at line 3 of file cs_happly.c.

double cs_house ( double *  x,
double *  beta,
int  n 
)

Definition at line 4 of file cs_house.c.

int* cs_idone ( int *  p,
cs C,
void *  w,
int  ok 
)

Definition at line 97 of file cs_util.c.

int cs_ipvec ( const int *  p,
const double *  b,
double *  x,
int  n 
)

Definition at line 3 of file cs_ipvec.c.

int cs_leaf ( int  i,
int  j,
const int *  first,
int *  maxfirst,
int *  prevleaf,
int *  ancestor,
int *  jleaf 
)

Definition at line 3 of file cs_leaf.c.

cs* cs_load ( FILE *  f)

Definition at line 3 of file cs_load.c.

int cs_lsolve ( const cs L,
double *  x 
)

Definition at line 3 of file cs_lsolve.c.

int cs_ltsolve ( const cs L,
double *  x 
)

Definition at line 3 of file cs_ltsolve.c.

csn* cs_lu ( const cs A,
const css S,
double  tol 
)

Definition at line 3 of file cs_lu.c.

int cs_lusol ( int  order,
const cs A,
double *  b,
double  tol 
)

Definition at line 3 of file cs_lusol.c.

void* cs_malloc ( int  n,
size_t  size 
)

Definition at line 10 of file cs_malloc.c.

int* cs_maxtrans ( const cs A,
int  seed 
)

Definition at line 44 of file cs_maxtrans.c.

cs* cs_multiply ( const cs A,
const cs B 
)

Definition at line 3 of file cs_multiply.c.

csn* cs_ndone ( csn N,
cs C,
void *  w,
void *  x,
int  ok 
)

Definition at line 105 of file cs_util.c.

csn* cs_nfree ( csn N)

Definition at line 42 of file cs_util.c.

double cs_norm ( const cs A)

Definition at line 3 of file cs_norm.c.

cs* cs_permute ( const cs A,
const int *  pinv,
const int *  q,
int  values 
)

Definition at line 3 of file cs_permute.c.

int* cs_pinv ( const int *  p,
int  n 
)

Definition at line 3 of file cs_pinv.c.

int* cs_post ( const int *  parent,
int  n 
)

Definition at line 3 of file cs_post.c.

int cs_print ( const cs A,
int  brief 
)

Definition at line 3 of file cs_print.c.

int cs_pvec ( const int *  p,
const double *  b,
double *  x,
int  n 
)

Definition at line 3 of file cs_pvec.c.

csn* cs_qr ( const cs A,
const css S 
)

Definition at line 3 of file cs_qr.c.

int cs_qrsol ( int  order,
const cs A,
double *  b 
)

Definition at line 3 of file cs_qrsol.c.

int* cs_randperm ( int  n,
int  seed 
)

Definition at line 5 of file cs_randperm.c.

int cs_reach ( cs G,
const cs B,
int  k,
int *  xi,
const int *  pinv 
)

Definition at line 4 of file cs_reach.c.

void* cs_realloc ( void *  p,
int  n,
size_t  size,
int *  ok 
)

Definition at line 29 of file cs_malloc.c.

int cs_scatter ( const cs A,
int  j,
double  beta,
int *  w,
double *  x,
int  mark,
cs C,
int  nz 
)

Definition at line 3 of file cs_scatter.c.

csd* cs_scc ( cs A)

Definition at line 3 of file cs_scc.c.

css* cs_schol ( int  order,
const cs A 
)

Definition at line 3 of file cs_schol.c.

css* cs_sfree ( css S)

Definition at line 53 of file cs_util.c.

cs* cs_spalloc ( int  m,
int  n,
int  nzmax,
int  values,
int  triplet 
)

Definition at line 3 of file cs_util.c.

cs* cs_spfree ( cs A)

Definition at line 32 of file cs_util.c.

int cs_sprealloc ( cs A,
int  nzmax 
)

Definition at line 18 of file cs_util.c.

int cs_spsolve ( cs G,
const cs B,
int  k,
int *  xi,
double *  x,
const int *  pinv,
int  lo 
)

Definition at line 3 of file cs_spsolve.c.

css* cs_sqr ( int  order,
const cs A,
int  qr 
)

Definition at line 60 of file cs_sqr.c.

cs* cs_symperm ( const cs A,
const int *  pinv,
int  values 
)

Definition at line 3 of file cs_symperm.c.

int cs_tdfs ( int  j,
int  k,
int *  head,
const int *  next,
int *  post,
int *  stack 
)

Definition at line 3 of file cs_tdfs.c.

cs* cs_transpose ( const cs A,
int  values 
)

Definition at line 3 of file cs_transpose.c.

int cs_updown ( cs L,
int  sigma,
const cs C,
const int *  parent 
)

Definition at line 3 of file cs_updown.c.

int cs_usolve ( const cs U,
double *  x 
)

Definition at line 3 of file cs_usolve.c.

int cs_utsolve ( const cs U,
double *  x 
)

Definition at line 3 of file cs_utsolve.c.



acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:17