![]() |
NEURON
|
#include <ocmatrix.h>
Public Member Functions | |
OcSparseMatrix (int, int) | |
~OcSparseMatrix () override=default | |
double & | coeff (int, int) override |
int | nrow () const override |
int | ncol () const override |
double | getval (int, int) const override |
void | ident () override |
void | mulv (Vect *in, Vect *out) const override |
void | solv (Vect *vin, Vect *vout, bool use_lu) override |
void | setrow (int, Vect *in) override |
void | setcol (int, Vect *in) override |
void | setdiag (int, Vect *in) override |
void | setrow (int, double in) override |
void | setcol (int, double in) override |
void | setdiag (int, double in) override |
std::vector< std::pair< int, int > > | nonzeros () const override |
int | sprowlen (int) const override |
double | spgetrowval (int i, int jindx, int *j) const override |
void | zero () override |
![]() | |
virtual | ~OcMatrix ()=default |
double * | mep (int i, int j) |
double | operator() (int i, int j) const |
double & | operator() (int i, int j) |
virtual void | resize (int, int) |
OcFullMatrix * | full () |
void | mulv (Vect &in, Vect &out) const |
virtual void | mulm (Matrix *in, Matrix *out) const |
virtual void | muls (double, Matrix *out) const |
virtual void | add (Matrix *, Matrix *out) const |
virtual void | getrow (int, Vect *out) const |
virtual void | getcol (int, Vect *out) const |
virtual void | getdiag (int, Vect *out) const |
virtual void | exp (Matrix *out) const |
virtual void | pow (int, Matrix *out) const |
virtual void | inverse (Matrix *out) const |
virtual void | copy (Matrix *out) const |
virtual void | bcopy (Matrix *mout, int i0, int j0, int n0, int m0, int i1, int j1) const |
virtual void | transpose (Matrix *out) |
virtual void | symmeigen (Matrix *mout, Vect *vout) const |
virtual void | svd1 (Matrix *u, Matrix *v, Vect *d) const |
virtual double | det (int *e) const |
void | unimp () const |
Private Attributes | |
Eigen::SparseMatrix< double, Eigen::RowMajor > | m_ {} |
std::unique_ptr< Eigen::SparseLU< decltype(m_)> > | lu_ {} |
Additional Inherited Members | |
![]() | |
enum | { MFULL = 1 , MSPARSE , MBAND } |
![]() | |
static OcMatrix * | instance (int nrow, int ncol, int type=MFULL) |
![]() | |
Object * | obj_ {} |
![]() | |
OcMatrix (int type) | |
Definition at line 208 of file ocmatrix.h.
OcSparseMatrix::OcSparseMatrix | ( | int | nrow, |
int | ncol | ||
) |
Definition at line 246 of file ocmatrix.cpp.
|
overridedefault |
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 250 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 262 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 332 of file ocmatrix.cpp.
Reimplemented from OcMatrix.
Definition at line 274 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 270 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 370 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 266 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 325 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 297 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 336 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 304 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 318 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 290 of file ocmatrix.cpp.
Reimplemented from OcMatrix.
Definition at line 280 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 358 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 350 of file ocmatrix.cpp.
|
overridevirtual |
Reimplemented from OcMatrix.
Definition at line 254 of file ocmatrix.cpp.
|
private |
Definition at line 237 of file ocmatrix.h.
|
private |
Definition at line 236 of file ocmatrix.h.