From 916c065a9f9a1df43911e422f985748774fb3f01 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Thu, 3 Jul 2003 16:23:43 +0000 Subject: [PATCH] Added the function ptrColumn(), which returns a pointer to the top of a column of the matrix. --- Cantera/src/Array.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cantera/src/Array.h b/Cantera/src/Array.h index 1fbdfd8ea..02b888304 100755 --- a/Cantera/src/Array.h +++ b/Cantera/src/Array.h @@ -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;