NEURON
conjgrad.c File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include <math.h>
#include "matrix.h"
#include "sparse.h"

Go to the source code of this file.

Typedefs

typedef VEC *(* MTX_FN) ()
 

Functions

VECspCHsolve (SPMAT *, VEC *, VEC *)
 
int cg_set_maxiter (int numiter)
 
VECpccg (MTX_FN A, void *A_params, MTX_FN M_inv, void *M_params, VEC *b, double eps, VEC *x)
 
VECsp_pccg (SPMAT *A, SPMAT *LLT, VEC *b, double eps, VEC *x)
 
VECcgs (MTX_FN A, void *A_params, VEC *b, VEC *r0, double tol, VEC *x)
 
VECsp_cgs (SPMAT *A, VEC *b, VEC *r0, double tol, VEC *x)
 
VEClsqr (MTX_FN A, MTX_FN AT, void *A_params, VEC *b, double tol, VEC *x)
 
VECsp_lsqr (SPMAT *A, VEC *b, double tol, VEC *x)
 

Variables

static char rcsid [] = "conjgrad.c,v 1.1 1997/12/04 17:55:16 hines Exp"
 
static int max_iter = 10000
 
int cg_num_iters
 

Typedef Documentation

◆ MTX_FN

typedef VEC*(* MTX_FN) ()

Definition at line 63 of file conjgrad.c.

Function Documentation

◆ cg_set_maxiter()

int cg_set_maxiter ( int  numiter)

Definition at line 74 of file conjgrad.c.

◆ cgs()

VEC* cgs ( MTX_FN  A,
void A_params,
VEC b,
VEC r0,
double  tol,
VEC x 
)

Definition at line 179 of file conjgrad.c.

◆ lsqr()

VEC* lsqr ( MTX_FN  A,
MTX_FN  AT,
void A_params,
VEC b,
double  tol,
VEC x 
)

Definition at line 266 of file conjgrad.c.

◆ pccg()

VEC* pccg ( MTX_FN  A,
void A_params,
MTX_FN  M_inv,
void M_params,
VEC b,
double  eps,
VEC x 
)

Definition at line 90 of file conjgrad.c.

◆ sp_cgs()

VEC* sp_cgs ( SPMAT A,
VEC b,
VEC r0,
double  tol,
VEC x 
)

Definition at line 250 of file conjgrad.c.

◆ sp_lsqr()

VEC* sp_lsqr ( SPMAT A,
VEC b,
double  tol,
VEC x 
)

Definition at line 345 of file conjgrad.c.

◆ sp_pccg()

VEC* sp_pccg ( SPMAT A,
SPMAT LLT,
VEC b,
double  eps,
VEC x 
)

Definition at line 160 of file conjgrad.c.

◆ spCHsolve()

VEC* spCHsolve ( SPMAT L,
VEC b,
VEC out 
)

Definition at line 311 of file spchfctr.c.

Variable Documentation

◆ cg_num_iters

int cg_num_iters

Definition at line 57 of file conjgrad.c.

◆ max_iter

int max_iter = 10000
static

Definition at line 56 of file conjgrad.c.

◆ rcsid

char rcsid[] = "conjgrad.c,v 1.1 1997/12/04 17:55:16 hines Exp"
static

Definition at line 52 of file conjgrad.c.