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

Go to the source code of this file.

Macros

#define MINROWLEN   10
 

Functions

double sp_get_val (SPMAT *A, int i, int j)
 
double sp_set_val (SPMAT *A, int i, int j, double val)
 
VECsp_mv_mlt (SPMAT *A, VEC *x, VEC *out)
 
VECsp_vm_mlt (SPMAT *A, VEC *x, VEC *out)
 
SPMATsp_get (int m, int n, int maxlen)
 
int sp_free (SPMAT *A)
 
SPMATsp_copy (SPMAT *A)
 
SPMATsp_col_access (SPMAT *A)
 
SPMATsp_diag_access (SPMAT *A)
 
MATsp_m2dense (SPMAT *A, MAT *out)
 
SPMATsp_add (SPMAT *A, SPMAT *B, SPMAT *C)
 
SPMATsp_sub (SPMAT *A, SPMAT *B, SPMAT *C)
 
SPMATsp_mltadd (SPMAT *A, SPMAT *B, double alpha, SPMAT *C)
 
SPMATsp_smlt (SPMAT *A, double alpha, SPMAT *B)
 
SPMATsp_zero (SPMAT *A)
 
SPMATsp_copy2 (SPMAT *A, SPMAT *OUT)
 
SPMATsp_resize (SPMAT *A, int m, int n)
 
SPMATsp_compact (SPMAT *A, double tol)
 
int sp_get_vars (int m, int n, int deg,...)
 
int sp_resize_vars (int m, int n,...)
 
int sp_free_vars (SPMAT **va,...)
 

Variables

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

Macro Definition Documentation

◆ MINROWLEN

#define MINROWLEN   10

Definition at line 40 of file sparse.c.

Function Documentation

◆ sp_add()

SPMAT* sp_add ( SPMAT A,
SPMAT B,
SPMAT C 
)

Definition at line 465 of file sparse.c.

◆ sp_col_access()

SPMAT* sp_col_access ( SPMAT A)

Definition at line 376 of file sparse.c.

◆ sp_compact()

SPMAT* sp_compact ( SPMAT A,
double  tol 
)

Definition at line 810 of file sparse.c.

◆ sp_copy()

SPMAT* sp_copy ( SPMAT A)

Definition at line 320 of file sparse.c.

◆ sp_copy2()

SPMAT* sp_copy2 ( SPMAT A,
SPMAT OUT 
)

Definition at line 655 of file sparse.c.

◆ sp_diag_access()

SPMAT* sp_diag_access ( SPMAT A)

Definition at line 417 of file sparse.c.

◆ sp_free()

int sp_free ( SPMAT A)

Definition at line 260 of file sparse.c.

◆ sp_free_vars()

int sp_free_vars ( SPMAT **  va,
  ... 
)

Definition at line 918 of file sparse.c.

◆ sp_get()

SPMAT* sp_get ( int  m,
int  n,
int  maxlen 
)

Definition at line 198 of file sparse.c.

◆ sp_get_val()

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

Definition at line 45 of file sparse.c.

◆ sp_get_vars()

int sp_get_vars ( int  m,
int  n,
int  deg,
  ... 
)

Definition at line 861 of file sparse.c.

◆ sp_m2dense()

MAT* sp_m2dense ( SPMAT A,
MAT out 
)

Definition at line 438 of file sparse.c.

◆ sp_mltadd()

SPMAT* sp_mltadd ( SPMAT A,
SPMAT B,
double  alpha,
SPMAT C 
)

Definition at line 559 of file sparse.c.

◆ sp_mv_mlt()

VEC* sp_mv_mlt ( SPMAT A,
VEC x,
VEC out 
)

Definition at line 123 of file sparse.c.

◆ sp_resize()

SPMAT* sp_resize ( SPMAT A,
int  m,
int  n 
)

Definition at line 727 of file sparse.c.

◆ sp_resize_vars()

int sp_resize_vars ( int  m,
int  n,
  ... 
)

Definition at line 891 of file sparse.c.

◆ sp_set_val()

double sp_set_val ( SPMAT A,
int  i,
int  j,
double  val 
)

Definition at line 66 of file sparse.c.

◆ sp_smlt()

SPMAT* sp_smlt ( SPMAT A,
double  alpha,
SPMAT B 
)

Definition at line 610 of file sparse.c.

◆ sp_sub()

SPMAT* sp_sub ( SPMAT A,
SPMAT B,
SPMAT C 
)

Definition at line 512 of file sparse.c.

◆ sp_vm_mlt()

VEC* sp_vm_mlt ( SPMAT A,
VEC x,
VEC out 
)

Definition at line 159 of file sparse.c.

◆ sp_zero()

SPMAT* sp_zero ( SPMAT A)

Definition at line 633 of file sparse.c.

Variable Documentation

◆ rcsid

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

Definition at line 38 of file sparse.c.