Added the function ptrColumn(), which returns a pointer to the
top of a column of the matrix.
This commit is contained in:
parent
6f9256ec0c
commit
916c065a9f
1 changed files with 4 additions and 0 deletions
|
|
@ -179,6 +179,10 @@ namespace Cantera {
|
|||
const vector_fp& data() const { return m_data; }
|
||||
|
||||
|
||||
/// Return a pointer to the top of column j, columns are contiguous
|
||||
// in memory
|
||||
doublereal * ptrColumn(int j) { return &(m_data[m_nrows*j]); }
|
||||
|
||||
protected:
|
||||
|
||||
vector_fp m_data;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue