71 Array2D(
const size_t m,
const size_t n,
const doublereal v = 0.0)
87 Array2D(
const size_t m,
const size_t n,
const doublereal* values)
128 void resize(
size_t n,
size_t m, doublereal v = 0.0) {
156 for (m = 0; m <
m_nrows; m++) {
157 value(m_ncols, m) = c[m];
173 for (m = 0; m <
m_nrows; m++) {
174 value(m_ncols, m) = c[m];
183 void setRow(
size_t n,
const doublereal*
const rw) {
184 for (
size_t j = 0; j <
m_ncols; j++) {
195 void getRow(
size_t n, doublereal*
const rw) {
196 for (
size_t j = 0; j <
m_ncols; j++) {
210 for (
size_t i = 0; i <
m_nrows; i++) {
211 m_data[m_nrows*m + i] = col[i];
223 for (
size_t i = 0; i <
m_nrows; i++) {
224 col[i] =
m_data[m_nrows*m + i];
250 for (; b !=
end(); ++b, ++xb, ++yb) {
263 (void) memset((
void*) &
m_data[0], 0, nn *
sizeof(doublereal));
300 doublereal&
value(
size_t i,
size_t j) {
312 doublereal
value(
size_t i,
size_t j)
const {
400 inline std::ostream& operator<<(std::ostream& s,
const Array2D& m)
402 size_t nr = m.
nRows();
405 for (i = 0; i < nr; i++) {
406 for (j = 0; j < nc; j++) {