NEURON
MatrixMap Class Reference

#include <matrixmap.h>

Public Member Functions

 MatrixMap (Matrix *)
 
 MatrixMap (Matrix &)
 
void alloc (int, int, Node **, int *)
 
void mmfree ()
 
void add (double fac)
 
void mulv (Vect &in, Vect &out)
 
void mulv (Vect *in, Vect *out)
 
void mulm (Matrix *in, Matrix *out)
 
void muls (double a, Matrix *out)
 
void add (Matrix *a, Matrix *out)
 
void getrow (int r, Vect *out)
 
void getcol (int c, Vect *out)
 
double & operator() (int i, int j)
 
int nrow ()
 
int ncol ()
 
double * mep (int i, int j)
 
void getdiag (int d, Vect *out)
 
void setrow (int r, Vect *in)
 
void setcol (int c, Vect *in)
 
void setdiag (int d, Vect *in)
 
void setrow (int r, double in)
 
void setcol (int c, double in)
 
void setdiag (int d, double in)
 
void zero ()
 
void ident ()
 
void exp (Matrix *out)
 
void pow (int p, Matrix *out)
 
void inverse (Matrix *out)
 
void solv (Vect *vin, Vect *vout, bool use_lu)
 
void copy (Matrix *out)
 
void bcopy (Matrix *mout, int i0, int j0, int n0, int m0, int i1, int j1)
 
void transpose (Matrix *out)
 
void symmeigen (Matrix *mout, Vect *vout)
 
void svd1 (Matrix *u, Matrix *v, Vect *d)
 
double det (int *e)
 
int sprowlen (int a)
 
double spgetrowval (int i, int jindx, int *j)
 

Private Member Functions

int compute_index (int, int, int, Node **, int *) const
 

Private Attributes

Matrixm_
 
std::vector< std::pair< int, int > > pm_ {}
 
std::vector< double * > ptree_ {}
 

Detailed Description

Definition at line 6 of file matrixmap.h.

Constructor & Destructor Documentation

◆ MatrixMap() [1/2]

MatrixMap::MatrixMap ( Matrix mat)

Definition at line 10 of file matrixmap.cpp.

◆ MatrixMap() [2/2]

MatrixMap::MatrixMap ( Matrix mat)

Definition at line 7 of file matrixmap.cpp.

Member Function Documentation

◆ add() [1/2]

void MatrixMap::add ( double  fac)

Definition at line 20 of file matrixmap.cpp.

◆ add() [2/2]

void MatrixMap::add ( Matrix a,
Matrix out 
)
inline

Definition at line 28 of file matrixmap.h.

◆ alloc()

void MatrixMap::alloc ( int  start,
int  nnode,
Node **  nodes,
int *  layer 
)

Definition at line 40 of file matrixmap.cpp.

◆ bcopy()

void MatrixMap::bcopy ( Matrix mout,
int  i0,
int  j0,
int  n0,
int  m0,
int  i1,
int  j1 
)
inline

Definition at line 91 of file matrixmap.h.

◆ compute_index()

int MatrixMap::compute_index ( int  i,
int  start,
int  nnode,
Node **  nodes,
int *  layer 
) const
private

Definition at line 27 of file matrixmap.cpp.

◆ copy()

void MatrixMap::copy ( Matrix out)
inline

Definition at line 88 of file matrixmap.h.

◆ det()

double MatrixMap::det ( int *  e)
inline

Definition at line 103 of file matrixmap.h.

◆ exp()

void MatrixMap::exp ( Matrix out)
inline

Definition at line 76 of file matrixmap.h.

◆ getcol()

void MatrixMap::getcol ( int  c,
Vect out 
)
inline

Definition at line 34 of file matrixmap.h.

◆ getdiag()

void MatrixMap::getdiag ( int  d,
Vect out 
)
inline

Definition at line 49 of file matrixmap.h.

◆ getrow()

void MatrixMap::getrow ( int  r,
Vect out 
)
inline

Definition at line 31 of file matrixmap.h.

◆ ident()

void MatrixMap::ident ( )
inline

Definition at line 73 of file matrixmap.h.

◆ inverse()

void MatrixMap::inverse ( Matrix out)
inline

Definition at line 82 of file matrixmap.h.

◆ mep()

double* MatrixMap::mep ( int  i,
int  j 
)
inline

Definition at line 46 of file matrixmap.h.

◆ mmfree()

void MatrixMap::mmfree ( )

Definition at line 13 of file matrixmap.cpp.

◆ mulm()

void MatrixMap::mulm ( Matrix in,
Matrix out 
)
inline

Definition at line 22 of file matrixmap.h.

◆ muls()

void MatrixMap::muls ( double  a,
Matrix out 
)
inline

Definition at line 25 of file matrixmap.h.

◆ mulv() [1/2]

void MatrixMap::mulv ( Vect in,
Vect out 
)
inline

Definition at line 16 of file matrixmap.h.

◆ mulv() [2/2]

void MatrixMap::mulv ( Vect in,
Vect out 
)
inline

Definition at line 19 of file matrixmap.h.

◆ ncol()

int MatrixMap::ncol ( )
inline

Definition at line 43 of file matrixmap.h.

◆ nrow()

int MatrixMap::nrow ( )
inline

Definition at line 40 of file matrixmap.h.

◆ operator()()

double& MatrixMap::operator() ( int  i,
int  j 
)
inline

Definition at line 37 of file matrixmap.h.

◆ pow()

void MatrixMap::pow ( int  p,
Matrix out 
)
inline

Definition at line 79 of file matrixmap.h.

◆ setcol() [1/2]

void MatrixMap::setcol ( int  c,
double  in 
)
inline

Definition at line 64 of file matrixmap.h.

◆ setcol() [2/2]

void MatrixMap::setcol ( int  c,
Vect in 
)
inline

Definition at line 55 of file matrixmap.h.

◆ setdiag() [1/2]

void MatrixMap::setdiag ( int  d,
double  in 
)
inline

Definition at line 67 of file matrixmap.h.

◆ setdiag() [2/2]

void MatrixMap::setdiag ( int  d,
Vect in 
)
inline

Definition at line 58 of file matrixmap.h.

◆ setrow() [1/2]

void MatrixMap::setrow ( int  r,
double  in 
)
inline

Definition at line 61 of file matrixmap.h.

◆ setrow() [2/2]

void MatrixMap::setrow ( int  r,
Vect in 
)
inline

Definition at line 52 of file matrixmap.h.

◆ solv()

void MatrixMap::solv ( Vect vin,
Vect vout,
bool  use_lu 
)
inline

Definition at line 85 of file matrixmap.h.

◆ spgetrowval()

double MatrixMap::spgetrowval ( int  i,
int  jindx,
int *  j 
)
inline

Definition at line 109 of file matrixmap.h.

◆ sprowlen()

int MatrixMap::sprowlen ( int  a)
inline

Definition at line 106 of file matrixmap.h.

◆ svd1()

void MatrixMap::svd1 ( Matrix u,
Matrix v,
Vect d 
)
inline

Definition at line 100 of file matrixmap.h.

◆ symmeigen()

void MatrixMap::symmeigen ( Matrix mout,
Vect vout 
)
inline

Definition at line 97 of file matrixmap.h.

◆ transpose()

void MatrixMap::transpose ( Matrix out)
inline

Definition at line 94 of file matrixmap.h.

◆ zero()

void MatrixMap::zero ( )
inline

Definition at line 70 of file matrixmap.h.

Member Data Documentation

◆ m_

Matrix& MatrixMap::m_
private

Definition at line 115 of file matrixmap.h.

◆ pm_

std::vector<std::pair<int, int> > MatrixMap::pm_ {}
private

Definition at line 118 of file matrixmap.h.

◆ ptree_

std::vector<double*> MatrixMap::ptree_ {}
private

Definition at line 119 of file matrixmap.h.


The documentation for this class was generated from the following files: