5 #if (__cplusplus > 199711L)
15 #if (__cplusplus <= 199711L)
21 if (
operator!() ==
false)
24 auto end = begin +
size();
25 std::for_each(begin, end, [](
d5_array& darray)
53 cerr <<
"Warning -- Unable to shallow copy an unallocated d6_array.\n";
78 cerr <<
"Warning -- Unable to deallocate an unallocated d6_array.\n";
99 cerr <<
"Incompatible bounds in"
100 <<
" d6_array& d6_array::operator=(const d6_array&).\n";
103 for (
int i = min; i <=
max; ++i)
127 int nrh,
int ncl,
int nch,
int l5,
int u5,
int l6,
int u6)
129 allocate(hsl,hsu,sl,sh,nrl,nrh,ncl,nch,l5,u5,l6,u6);
142 allocate(hsl,hsu,sl,sh,nrl,nrh,ncl,nch,l5,u5,l6,u6);
152 cerr <<
"Error: Unable to allocate d6_array memory in\n"
153 <<
" d6_array::allocate(int, int).\n";
158 cerr <<
"Error: Unable to allocate d6_array memory in\n"
159 <<
" d6_array::allocate(int, int).\n";
163 for (
int i = hsl; i <= hsu; ++i)
173 int nrh,
int ncl,
int nch,
int l5,
int u5,
int l6,
int u6)
177 cerr <<
" Error allocating memory in d5_array contructor\n";
180 unsigned int ss =
size();
183 cerr <<
" Error allocating memory in d5_array contructor\n";
187 for (
int i = hsl; i <= hsu; ++i)
189 t[i].
allocate(sl, sh, nrl, nrh, ncl, nch, l5, u5, l6, u6);
204 cerr <<
" Error allocating memory in d5_array contructor\n";
207 unsigned int ss =
size();
210 cerr <<
" Error allocating memory in d5_array contructor\n";
216 for (
int i = i1; i <= i2; ++i)
219 ncl(i),nch(i), l5(i),u5(i),l6(i),u6(i));
Uses polymorphism to get index information from various data types to be used in constructing and all...
d6_array()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void allocate(void)
Does NOT allocate, but initializes d6_array members.
Description not yet available.
void deallocate(void)
Deallocate d6_array memory.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void shallow_copy(const d6_array &)
Shallow copy other data structure pointers.
d6_array & operator=(const d6_array &)
Assigns element values from other to d6_array.
unsigned int size() const
void initialize()
Initialize all elements of d5_array to zero.
void allocate(int hhsl, int hhsu, int hsl, int hsu, int sl, int sh, int nrl, int nrh, int ncl, int nch)
Allocate d5_array with specified dimensions.
Description not yet available.
void initialize()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.