Graphviz  2.41.20171026.1811
Data Structures | Functions
sparse_solve.c File Reference
#include <assert.h>
#include <string.h>
#include "sparse_solve.h"
#include "sfdpinternal.h"
#include "memory.h"
#include "logic.h"
#include "math.h"
#include "arith.h"
#include "types.h"
#include "globals.h"
Include dependency graph for sparse_solve.c:

Go to the source code of this file.

Data Structures

struct  uniform_stress_matmul_data
 

Functions

void Operator_uniform_stress_matmul_delete (Operator o)
 
realOperator_uniform_stress_matmul_apply (Operator o, real *x, real *y)
 
Operator Operator_uniform_stress_matmul (SparseMatrix A, real alpha)
 
realOperator_matmul_apply (Operator o, real *x, real *y)
 
Operator Operator_matmul_new (SparseMatrix A)
 
void Operator_matmul_delete (Operator o)
 
realOperator_diag_precon_apply (Operator o, real *x, real *y)
 
Operator Operator_uniform_stress_diag_precon_new (SparseMatrix A, real alpha)
 
Operator Operator_diag_precon_new (SparseMatrix A)
 
void Operator_diag_precon_delete (Operator o)
 
real cg (Operator Ax, Operator precond, int n, int dim, real *x0, real *rhs, real tol, int maxit, int *flag)
 
realjacobi (SparseMatrix A, int dim, real *x0, real *rhs, int maxit, int *flag)
 
real SparseMatrix_solve (SparseMatrix A, int dim, real *x0, real *rhs, real tol, int maxit, int method, int *flag)
 

Function Documentation

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().

real* jacobi ( SparseMatrix  A,
int  dim,
real x0,
real rhs,
int  maxit,
int flag 
)
real* Operator_diag_precon_apply ( Operator  o,
real x,
real y 
)

Definition at line 90 of file sparse_solve.c.

References Operator_struct::data, and real.

Referenced by Operator_diag_precon_new(), and Operator_uniform_stress_diag_precon_new().

void Operator_diag_precon_delete ( Operator  o)

Definition at line 157 of file sparse_solve.c.

References Operator_struct::data, and FREE.

Referenced by SparseMatrix_solve().

Operator Operator_diag_precon_new ( SparseMatrix  A)
real* Operator_matmul_apply ( Operator  o,
real x,
real y 
)
void Operator_matmul_delete ( Operator  o)

Definition at line 85 of file sparse_solve.c.

References FREE.

Referenced by SparseMatrix_solve().

Operator Operator_matmul_new ( SparseMatrix  A)
Operator Operator_uniform_stress_diag_precon_new ( SparseMatrix  A,
real  alpha 
)
Operator Operator_uniform_stress_matmul ( SparseMatrix  A,
real  alpha 
)
real* Operator_uniform_stress_matmul_apply ( Operator  o,
real x,
real y 
)
void Operator_uniform_stress_matmul_delete ( Operator  o)

Definition at line 33 of file sparse_solve.c.

References Operator_struct::data, and FREE.

real SparseMatrix_solve ( SparseMatrix  A,
int  dim,
real x0,
real rhs,
real  tol,
int  maxit,
int  method,
int flag 
)