Graphviz  2.41.20171026.1811
sparse_solve.h
Go to the documentation of this file.
1 /* $Id$ $Revision$ */
2 /* vim:set shiftwidth=4 ts=8: */
3 
4 /*************************************************************************
5  * Copyright (c) 2011 AT&T Intellectual Property
6  * All rights reserved. This program and the accompanying materials
7  * are made available under the terms of the Eclipse Public License v1.0
8  * which accompanies this distribution, and is available at
9  * http://www.eclipse.org/legal/epl-v10.html
10  *
11  * Contributors: See CVS logs. Details at http://www.graphviz.org/
12  *************************************************************************/
13 
14 
15 #ifndef SPARSE_SOLVER_H
16 #define SPARSE_SOLVER_H
17 
18 #include "SparseMatrix.h"
19 
21 
22 typedef struct Operator_struct *Operator;
23 
25  void *data;
26  real* (*Operator_apply)(Operator o, real *in, real *out);
27 };
28 
29 real cg(Operator Ax, Operator precond, int n, int dim, real *x0, real *rhs, real tol, int maxit, int *flag);
30 
31 real SparseMatrix_solve(SparseMatrix A, int dim, real *x0, real *rhs, real tol, int maxit, int method, int *flag);
32 
34 
36 
37 #endif
38 
Operator Operator_uniform_stress_diag_precon_new(SparseMatrix A, real alpha)
Definition: sparse_solve.c:100
real cg(Operator Ax, Operator precond, int n, int dim, real *x0, real *rhs, real tol, int maxit, int *flag)
Definition: sparse_solve.c:227
real SparseMatrix_solve(SparseMatrix A, int dim, real *x0, real *rhs, real tol, int maxit, int method, int *flag)
Definition: sparse_solve.c:296
struct Operator_struct * Operator
Definition: sparse_solve.h:22
Operator Operator_uniform_stress_matmul(SparseMatrix A, real alpha)
Definition: sparse_solve.c:56
#define alpha
Definition: shapes.c:3902
#define real
Definition: general.h:34