MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
KinSparseMatrix.h
Go to the documentation of this file.
1 /**********************************************************************
2 ** This program is part of 'MOOSE', the
3 ** Messaging Object Oriented Simulation Environment.
4 ** Copyright (C) 2003-2010 Upinder S. Bhalla. and NCBS
5 ** It is made available under the terms of the
6 ** GNU Lesser General Public License version 2.1
7 ** See the file COPYING.LIB for the full notice.
8 **********************************************************************/
9 
10 #ifndef _KIN_SPARSE_MATRIX_H
11 #define _KIN_SPARSE_MATRIX_H
12 
13 class KinSparseMatrix: public SparseMatrix< int >
14 {
15  public:
16 // KinSparseMatrix();
17 // KinSparseMatrix( unsigned int nrows, unsigned int ncolumns );
18 
33  double computeRowRate(
34  unsigned int row, const vector< double >& v
35  ) const;
36 
37 
45  unsigned int row, vector< unsigned int >& cols
46  ) const;
47 
53  void fireReac( unsigned int reacIndex, vector< double >& S,
54  double direction ) const;
55 
62  void truncateRow( unsigned int maxColumnIndex );
63 
64  private:
69  vector< unsigned int > rowTruncated_;
70 };
71 
72 #endif // _KIN_SPARSE_MATRIX_H
void fireReac(unsigned int reacIndex, vector< double > &S, double direction) const
void getGillespieDependence(unsigned int row, vector< unsigned int > &cols) const
vector< unsigned int > rowTruncated_
double computeRowRate(unsigned int row, const vector< double > &v) const
void truncateRow(unsigned int maxColumnIndex)