Added the function ptrColumn(), which returns a pointer to the

top of a column of the matrix.
This commit is contained in:
Harry Moffat 2003-07-03 16:23:43 +00:00
parent 6f9256ec0c
commit 916c065a9f

View file

@ -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;