NEURON
sprow.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

void sprow_dump (FILE *fp, SPROW *r)
 
int sprow_idx (SPROW *r, int col)
 
SPROWsprow_get (int maxlen)
 
SPROWsprow_xpd (SPROW *r, int n, int type)
 
SPROWsprow_resize (SPROW *r, int n, int type)
 
int sprow_free (SPROW *r)
 
SPROWsprow_merge (SPROW *r1, SPROW *r2, SPROW *r_out, int type)
 
SPROWsprow_copy (SPROW *r1, SPROW *r2, SPROW *r_out, int type)
 
SPROWsprow_mltadd (SPROW *r1, SPROW *r2, double alpha, int j0, SPROW *r_out, int type)
 
SPROWsprow_add (SPROW *r1, SPROW *r2, int j0, SPROW *r_out, int type)
 
SPROWsprow_sub (SPROW *r1, SPROW *r2, int j0, SPROW *r_out, int type)
 
SPROWsprow_smlt (SPROW *r1, double alpha, int j0, SPROW *r_out, int type)
 
void sprow_foutput (FILE *fp, SPROW *r)
 
double sprow_set_val (SPROW *r, int j, double val)
 

Variables

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

Macro Definition Documentation

◆ MINROWLEN

#define MINROWLEN   10

Definition at line 40 of file sprow.c.

Function Documentation

◆ sprow_add()

SPROW* sprow_add ( SPROW r1,
SPROW r2,
int  j0,
SPROW r_out,
int  type 
)

Definition at line 469 of file sprow.c.

◆ sprow_copy()

SPROW* sprow_copy ( SPROW r1,
SPROW r2,
SPROW r_out,
int  type 
)

Definition at line 343 of file sprow.c.

◆ sprow_dump()

void sprow_dump ( FILE *  fp,
SPROW r 
)

Definition at line 45 of file sprow.c.

◆ sprow_foutput()

void sprow_foutput ( FILE *  fp,
SPROW r 
)

Definition at line 644 of file sprow.c.

◆ sprow_free()

int sprow_free ( SPROW r)

Definition at line 259 of file sprow.c.

◆ sprow_get()

SPROW* sprow_get ( int  maxlen)

Definition at line 122 of file sprow.c.

◆ sprow_idx()

int sprow_idx ( SPROW r,
int  col 
)

Definition at line 75 of file sprow.c.

◆ sprow_merge()

SPROW* sprow_merge ( SPROW r1,
SPROW r2,
SPROW r_out,
int  type 
)

Definition at line 288 of file sprow.c.

◆ sprow_mltadd()

SPROW* sprow_mltadd ( SPROW r1,
SPROW r2,
double  alpha,
int  j0,
SPROW r_out,
int  type 
)

Definition at line 399 of file sprow.c.

◆ sprow_resize()

SPROW* sprow_resize ( SPROW r,
int  n,
int  type 
)

Definition at line 215 of file sprow.c.

◆ sprow_set_val()

double sprow_set_val ( SPROW r,
int  j,
double  val 
)

Definition at line 666 of file sprow.c.

◆ sprow_smlt()

SPROW* sprow_smlt ( SPROW r1,
double  alpha,
int  j0,
SPROW r_out,
int  type 
)

Definition at line 605 of file sprow.c.

◆ sprow_sub()

SPROW* sprow_sub ( SPROW r1,
SPROW r2,
int  j0,
SPROW r_out,
int  type 
)

Definition at line 538 of file sprow.c.

◆ sprow_xpd()

SPROW* sprow_xpd ( SPROW r,
int  n,
int  type 
)

Definition at line 155 of file sprow.c.

Variable Documentation

◆ rcsid

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

Definition at line 38 of file sprow.c.