34 cerr <<
"Warning -- Unable to shallow copy an unallocated i5_array.\n";
72 if ((
t =
new i4_array[static_cast<unsigned int>(hsu - hsl + 1)]) == 0)
74 cerr <<
" Error allocating memory in i5_array::allocate\n";
79 cerr <<
" Error allocating memory in i5_array::allocate\n";
83 for (
int i = hsl; i <= hsu; ++i)
102 t[i].
allocate(sl,sh,nrl,nrh,ncl,nch,aa,bb);
117 static_cast<unsigned int>(hsu < hsl ? 0 : hsu - hsl + 1);
122 cerr <<
" Error allocating memory in i5_array contructor\n";
127 cerr <<
" Error allocating memory in i5_array contructor\n";
131 for (
int i=hsl; i<=hsu; i++)
134 ncl(i),nch(i),aa(i),bb(i));
163 cerr <<
"Warning -- Unable to deallocate an unallocated i5_array.\n";
168 #if !defined (OPT_LIB)
188 return elem(i)(j, k);
193 return elem(i)(j, k, l);
198 return elem(i)(j, k, l, m);
218 return elem(i)(j, k);
223 return elem(i)(j, k, l);
228 return elem(i)(j, k, l, m);
void allocate(void)
Does NOT allocate, but initializes i5_array members.
i4_array & operator()(int)
void shallow_copy(const i5_array &)
Shallow copy other data structure pointers.
Uses polymorphism to get index information from various data types to be used in constructing and all...
i5_array()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
i4_array & operator[](int)
void * get_truepointer(void)
Returns address of first element in the vector.
Description not yet available.
Array of integers(int) with indexes from index_min to indexmax.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void allocate(int hsl, int hsu, int sl, int sh, int nrl, int nrh, int ncl, int nch)
Allocate array with dimensions [hsl to hsu] x [sl to sh] x [nrl to nrh] x [ncl to nch]...
void deallocate(void)
Deallocates i5_array memory if no copies exists.
unsigned int ncopies
Copy counter to enable shallow copies.
Holds "shape" information for vector objects.
Description not yet available.
void initialize()
Initializes elements of i4_array to zero.
Description not yet available.
void initialize()
Initialize i5_array elements with zeros.