NEURON
spmatrix.h File Reference
#include "spconfig.h"

Go to the source code of this file.

Classes

struct  spTemplate
 

Macros

#define spOKAY   0
 
#define spSMALL_PIVOT   1
 
#define spZERO_DIAG   2
 
#define spSINGULAR   3
 
#define spNO_MEMORY   4
 
#define spPANIC   5
 
#define spFATAL   2
 
#define spREAL   double
 
#define spDEFAULT_PARTITION   0
 
#define spDIRECT_PARTITION   1
 
#define spINDIRECT_PARTITION   2
 
#define spAUTO_PARTITION   3
 
#define spADD_REAL_ELEMENT(element, real)   *(element) += real
 
#define spADD_IMAG_ELEMENT(element, imag)   *(element+1) += imag
 
#define spADD_COMPLEX_ELEMENT(element, real, imag)
 
#define spADD_REAL_QUAD(template, real)
 
#define spADD_IMAG_QUAD(template, imag)
 
#define spADD_COMPLEX_QUAD(template, real, imag)
 

Functions

void spClear ()
 
spREAL spCondition ()
 
char * spCreate ()
 
void spDeleteRowAndCol ()
 
void spDestroy ()
 
void spDeterminant ()
 
int spElementCount ()
 
int spError ()
 
int spFactor ()
 
int spFileMatrix ()
 
int spFileStats ()
 
int spFileVector ()
 
int spFillinCount ()
 
int spGetAdmittance ()
 
spREALspGetElement (char *, int, int)
 
char * spGetInitInfo ()
 
int spGetOnes ()
 
int spGetQuad ()
 
int spGetSize ()
 
int spInitialize ()
 
void spInstallInitInfo ()
 
spREAL spLargestElement ()
 
void spMNA_Preorder ()
 
void spMultiply ()
 
void spMultTransposed ()
 
spREAL spNorm ()
 
int spOrderAndFactor ()
 
void spPartition ()
 
void spPrint ()
 
spREAL spPseudoCondition ()
 
spREAL spRoundoff ()
 
void spScale ()
 
void spSetComplex ()
 
void spSetReal ()
 
void spSolve ()
 
void spSolveTransposed ()
 
void spStripFills ()
 
void spWhereSingular ()
 

Macro Definition Documentation

◆ spADD_COMPLEX_ELEMENT

#define spADD_COMPLEX_ELEMENT (   element,
  real,
  imag 
)
Value:
{ *(element) += real; \
*(element+1) += imag; \
}

Definition at line 195 of file spmatrix.h.

◆ spADD_COMPLEX_QUAD

#define spADD_COMPLEX_QUAD (   template,
  real,
  imag 
)
Value:
{ *((template).Element1) += real; \
*((template).Element2) += real; \
*((template).Element3Negated) -= real; \
*((template).Element4Negated) -= real; \
*((template).Element1+1) += imag; \
*((template).Element2+1) += imag; \
*((template).Element3Negated+1) -= imag; \
*((template).Element4Negated+1) -= imag; \
}

Definition at line 214 of file spmatrix.h.

◆ spADD_IMAG_ELEMENT

#define spADD_IMAG_ELEMENT (   element,
  imag 
)    *(element+1) += imag

Definition at line 193 of file spmatrix.h.

◆ spADD_IMAG_QUAD

#define spADD_IMAG_QUAD (   template,
  imag 
)
Value:
{ *((template).Element1+1) += imag; \
*((template).Element2+1) += imag; \
*((template).Element3Negated+1) -= imag; \
*((template).Element4Negated+1) -= imag; \
}

Definition at line 207 of file spmatrix.h.

◆ spADD_REAL_ELEMENT

#define spADD_REAL_ELEMENT (   element,
  real 
)    *(element) += real

Definition at line 191 of file spmatrix.h.

◆ spADD_REAL_QUAD

#define spADD_REAL_QUAD (   template,
  real 
)
Value:
{ *((template).Element1) += real; \
*((template).Element2) += real; \
*((template).Element3Negated) -= real; \
*((template).Element4Negated) -= real; \
}

Definition at line 200 of file spmatrix.h.

◆ spAUTO_PARTITION

#define spAUTO_PARTITION   3

Definition at line 160 of file spmatrix.h.

◆ spDEFAULT_PARTITION

#define spDEFAULT_PARTITION   0

Definition at line 157 of file spmatrix.h.

◆ spDIRECT_PARTITION

#define spDIRECT_PARTITION   1

Definition at line 158 of file spmatrix.h.

◆ spFATAL

#define spFATAL   2

Definition at line 104 of file spmatrix.h.

◆ spINDIRECT_PARTITION

#define spINDIRECT_PARTITION   2

Definition at line 159 of file spmatrix.h.

◆ spNO_MEMORY

#define spNO_MEMORY   4

Definition at line 101 of file spmatrix.h.

◆ spOKAY

#define spOKAY   0

Definition at line 97 of file spmatrix.h.

◆ spPANIC

#define spPANIC   5

Definition at line 102 of file spmatrix.h.

◆ spREAL

#define spREAL   double

Definition at line 127 of file spmatrix.h.

◆ spSINGULAR

#define spSINGULAR   3

Definition at line 100 of file spmatrix.h.

◆ spSMALL_PIVOT

#define spSMALL_PIVOT   1

Definition at line 98 of file spmatrix.h.

◆ spZERO_DIAG

#define spZERO_DIAG   2

Definition at line 99 of file spmatrix.h.

Function Documentation

◆ spClear()

void spClear ( )

◆ spCondition()

spREAL spCondition ( )

◆ spCreate()

char* spCreate ( )

◆ spDeleteRowAndCol()

void spDeleteRowAndCol ( )

◆ spDestroy()

void spDestroy ( )

◆ spDeterminant()

void spDeterminant ( )

◆ spElementCount()

int spElementCount ( )

◆ spError()

int spError ( )

◆ spFactor()

int spFactor ( )

◆ spFileMatrix()

int spFileMatrix ( )

◆ spFileStats()

int spFileStats ( )

◆ spFileVector()

int spFileVector ( )

◆ spFillinCount()

int spFillinCount ( )

◆ spGetAdmittance()

int spGetAdmittance ( )

◆ spGetElement()

spREAL* spGetElement ( char *  ,
int  ,
int   
)

Definition at line 195 of file spbuild.c.

◆ spGetInitInfo()

char* spGetInitInfo ( )

◆ spGetOnes()

int spGetOnes ( )

◆ spGetQuad()

int spGetQuad ( )

◆ spGetSize()

int spGetSize ( )

◆ spInitialize()

int spInitialize ( )

◆ spInstallInitInfo()

void spInstallInitInfo ( )

◆ spLargestElement()

spREAL spLargestElement ( )

◆ spMNA_Preorder()

void spMNA_Preorder ( )

◆ spMultiply()

void spMultiply ( )

◆ spMultTransposed()

void spMultTransposed ( )

◆ spNorm()

spREAL spNorm ( )

◆ spOrderAndFactor()

int spOrderAndFactor ( )

◆ spPartition()

void spPartition ( )

◆ spPrint()

void spPrint ( )

◆ spPseudoCondition()

spREAL spPseudoCondition ( )

◆ spRoundoff()

spREAL spRoundoff ( )

◆ spScale()

void spScale ( )

◆ spSetComplex()

void spSetComplex ( )

◆ spSetReal()

void spSetReal ( )

◆ spSolve()

void spSolve ( )

◆ spSolveTransposed()

void spSolveTransposed ( )

◆ spStripFills()

void spStripFills ( )

◆ spWhereSingular()

void spWhereSingular ( )