NEURON
spbkp.c File Reference
#include <../../nrnconf.h>
#include <stdio.h>
#include "sparse2.h"
#include <math.h>

Go to the source code of this file.

Macros

#define alpha   0.6403882032022076 /* = (1+sqrt(17))/8 */
 
#define btos(x)   ((x) ? "TRUE" : "FALSE")
 
#define sqr(x)   ((x)*(x))
 

Functions

int unord_get_idx (SPROW *r, int j)
 
double unord_get_val (SPMAT *A, int i, int j)
 
static SPMATbkp_swap_elt (SPMAT *A, int i1, int j1, int idx1, int i2, int j2, int idx2)
 
row_eltbkp_bump_col (SPMAT *A, int j, int *row, int *idx)
 
SPMATbkp_interchange (SPMAT *A, int i1, int i2)
 
int iv_min (IVEC *iv, int *index)
 
static double max_row_col (SPMAT *A, int i, int j, int l)
 
static int nonzeros (SPMAT *A)
 
int chk_col_access (SPMAT *A)
 
static int col_cmp (row_elt *e1, row_elt *e2)
 
SPMATspBKPfactor (SPMAT *A, PERM *pivot, PERM *blocks, double tol)
 
VECspBKPsolve (SPMAT *A, PERM *pivot, PERM *block, VEC *b, VEC *x)
 

Variables

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

Macro Definition Documentation

◆ alpha

#define alpha   0.6403882032022076 /* = (1+sqrt(17))/8 */

Definition at line 46 of file spbkp.c.

◆ btos

#define btos (   x)    ((x) ? "TRUE" : "FALSE")

Definition at line 49 of file spbkp.c.

◆ sqr

#define sqr (   x)    ((x)*(x))

Definition at line 52 of file spbkp.c.

Function Documentation

◆ bkp_bump_col()

row_elt* bkp_bump_col ( SPMAT A,
int  j,
int row,
int idx 
)

Definition at line 203 of file spbkp.c.

◆ bkp_interchange()

SPMAT* bkp_interchange ( SPMAT A,
int  i1,
int  i2 
)

Definition at line 232 of file spbkp.c.

◆ bkp_swap_elt()

static SPMAT* bkp_swap_elt ( SPMAT A,
int  i1,
int  j1,
int  idx1,
int  i2,
int  j2,
int  idx2 
)
static

Definition at line 100 of file spbkp.c.

◆ chk_col_access()

int chk_col_access ( SPMAT A)

Definition at line 512 of file spbkp.c.

◆ col_cmp()

static int col_cmp ( row_elt e1,
row_elt e2 
)
static

Definition at line 551 of file spbkp.c.

◆ iv_min()

int iv_min ( IVEC iv,
int index 
)

Definition at line 414 of file spbkp.c.

◆ max_row_col()

static double max_row_col ( SPMAT A,
int  i,
int  j,
int  l 
)
static

Definition at line 444 of file spbkp.c.

◆ nonzeros()

static int nonzeros ( SPMAT A)
static

Definition at line 496 of file spbkp.c.

◆ spBKPfactor()

SPMAT* spBKPfactor ( SPMAT A,
PERM pivot,
PERM blocks,
double  tol 
)

Definition at line 562 of file spbkp.c.

◆ spBKPsolve()

VEC* spBKPsolve ( SPMAT A,
PERM pivot,
PERM block,
VEC b,
VEC x 
)

Definition at line 1253 of file spbkp.c.

◆ unord_get_idx()

int unord_get_idx ( SPROW r,
int  j 
)

Definition at line 57 of file spbkp.c.

◆ unord_get_val()

double unord_get_val ( SPMAT A,
int  i,
int  j 
)

Definition at line 77 of file spbkp.c.

Variable Documentation

◆ rcsid

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

Definition at line 35 of file spbkp.c.