37 for (
int i = nrl; i <= nrh; ++i)
52 for (
int i=nrl; i<=nrh; i++)
91 cerr <<
" Error allocating in dmatrix::allocate(int, int)\n";
96 cerr <<
" Error allocating in dmatrix::allocate(int, int)\n";
109 allocate(static_cast<int>(nrl), static_cast<int>(nrh));
123 if (value < minimum) minimum =
value;
139 if (value > maximum) maximum =
value;
155 const dvector* pother = &other(min);
156 for (
int i = min; i <=
max; ++i)
190 cerr <<
"Incompatible array bounds in "
191 <<
"dmatrix(int, int, const ivector&,const ivector&)\n";
197 int* pncl = ncl.
get_v() + nrl;
198 int* pnch = nch.
get_v() + nrl;
199 for (
int i = nrl; i <= nrh; ++i)
221 cerr <<
"Incompatible array bounds in "
222 <<
"dmatrix(int nrl, int nrh, int ncl, const ivector& nch)\n";
228 const int* pnch = nch.
get_v() + nrl;
229 for (
int i = nrl; i <= nrh; ++i)
250 cerr <<
"Incompatible array bounds in "
251 <<
"dmatrix(int nrl, int nrh, int ncl, const ivector& nch)\n";
257 const int* pncl = ncl.
get_v() + nrl;
258 for (
int i = nrl; i <= nrh; ++i)
321 cerr <<
"Warning -- Unable to shallow copy an unallocated dmatrix.\n";
342 results(i) =
cube(vec(i));
356 for (
int i = results.
rowmin(); i <= results.
rowmax(); ++i)
358 results(i) =
cube(mat(i));
382 cerr <<
"Warning -- Unable to deallocate an unallocated dmatrix.\n";
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
void allocate(void)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void deallocate()
Deallocate dmatrix memory.
dmatrix(void)
Default constructor.
int allocated(const ivector &v)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
void allocate(int ncl, int ncu)
Allocate memory for a dvector.
dmatrix sub(int, int)
Description not yet available.
d3_array cube(const d3_array &m)
Description not yet available.
bool ivector_check(const ivector &vector, int indexmin, int indexmax)
Return true if vector dimensions match with indexmin and indexmax, otherwise false.
Array of integers(int) with indexes from index_min to indexmax.
int indexmax() const
Get maximum valid index.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
void shallow_copy(const dmatrix &)
Shallow copy values and dimensions from other to dmatrix.
unsigned int rowsize() const
dvector value(const df1_one_vector &v)