Graphviz
2.41.20171026.1811
|
#include "SparseMatrix.h"
Go to the source code of this file.
Data Structures | |
struct | Operator_struct |
Typedefs | |
typedef struct Operator_struct * | Operator |
Enumerations | |
enum | { SOLVE_METHOD_CG, SOLVE_METHOD_JACOBI } |
Functions | |
real | cg (Operator Ax, Operator precond, int n, int dim, real *x0, real *rhs, real tol, int maxit, int *flag) |
real | SparseMatrix_solve (SparseMatrix A, int dim, real *x0, real *rhs, real tol, int maxit, int method, int *flag) |
Operator | Operator_uniform_stress_matmul (SparseMatrix A, real alpha) |
Operator | Operator_uniform_stress_diag_precon_new (SparseMatrix A, real alpha) |
typedef struct Operator_struct* Operator |
Definition at line 22 of file sparse_solve.h.
anonymous enum |
Enumerator | |
---|---|
SOLVE_METHOD_CG | |
SOLVE_METHOD_JACOBI |
Definition at line 20 of file sparse_solve.h.
real cg | ( | Operator | Ax, |
Operator | precond, | ||
int | n, | ||
int | dim, | ||
real * | x0, | ||
real * | rhs, | ||
real | tol, | ||
int | maxit, | ||
int * | flag | ||
) |
Definition at line 227 of file sparse_solve.c.
References conjugate_gradient(), FREE, N_GNEW, and real.
Referenced by SparseMatrix_solve().
Operator Operator_uniform_stress_diag_precon_new | ( | SparseMatrix | A, |
real | alpha | ||
) |
Definition at line 100 of file sparse_solve.c.
References SparseMatrix_struct::a, ABS, assert, Operator_struct::data, for(), SparseMatrix_struct::ia, SparseMatrix_struct::ja, SparseMatrix_struct::m, MALLOC, MATRIX_TYPE_REAL, Operator_struct::Operator_apply, Operator_diag_precon_apply(), real, and SparseMatrix_struct::type.
Operator Operator_uniform_stress_matmul | ( | SparseMatrix | A, |
real | alpha | ||
) |
Definition at line 56 of file sparse_solve.c.
References uniform_stress_matmul_data::A, uniform_stress_matmul_data::alpha, alpha, Operator_struct::data, MALLOC, Operator_struct::Operator_apply, and Operator_uniform_stress_matmul_apply().
real SparseMatrix_solve | ( | SparseMatrix | A, |
int | dim, | ||
real * | x0, | ||
real * | rhs, | ||
real | tol, | ||
int | maxit, | ||
int | method, | ||
int * | flag | ||
) |
Definition at line 296 of file sparse_solve.c.
References assert, cg(), jacobi(), SparseMatrix_struct::m, Operator_diag_precon_delete(), Operator_diag_precon_new(), Operator_matmul_delete(), Operator_matmul_new(), real, SOLVE_METHOD_CG, and SOLVE_METHOD_JACOBI.
Referenced by StressMajorizationSmoother_smooth().