# include # include # include # include # include "csparse.h" typedef struct problem_struct { cs *A ; cs *C ; int sym ; double *x ; double *b ; double *r ; } problem ; problem *get_problem (FILE *f, double tol) ; int demo3 (problem *Prob) ; problem *free_problem (problem *Prob) ; /* cs_demo3: read a matrix and test Cholesky update/downdate */ int main ( ) { printf ( "\n" ); printf ( "csparse_test03:\n" ); printf ( " Demonstration of the CSPARSE package.\n" ); problem *Prob = get_problem (stdin, 0) ; demo3 ( Prob ) ; free_problem (Prob) ; /* Terminate. */ printf ( "\n" ); printf ( "csparse_test03:\n" ); printf ( " Normal end of execution.\n" ); return (0) ; }