27 IntArray(
const int d1 = 1,
const int d2 = 1);
28 IntArray(
const int d1,
const int d2,
const int d3);
29 IntArray(
const int d1,
const int d2,
const int d3,
const int d4);
30 IntArray(
const int d1,
const int d2,
const int d3,
const int d4,
const int d5);
31 IntArray(
const int d1,
const int d2,
const int d3,
const int d4,
const int d5,
const int d6);
45 void create(
const int d1,
const int d2);
46 void create(
const int d1,
const int d2,
const int d3);
47 void create(
const int d1,
const int d2,
const int d3,
const int d4);
48 void create(
const int d1,
const int d2,
const int d3,
const int d4,
const int d5);
49 void create(
const int d1,
const int d2,
const int d3,
const int d4,
const int d5,
const int d6);
78 catch (
const std::bad_alloc& e)
80 std::cerr <<
"Allocation error in IntArray copy assignment: " << e.what() << std::endl;
102 if (
ptr !=
nullptr &&
size > 0) {
120 assert( d1 >= 0 && d1 <
bound1 );
121 assert( d2 >= 0 && d2 <
bound2 );
126 assert( d1 >= 0 && d1 <
bound1 );
127 assert( d2 >= 0 && d2 <
bound2 );
128 assert( d3 >= 0 && d3 <
bound3 );
131 int &
operator()(
const int d1,
const int d2,
const int d3,
const int d4)
133 assert( d1 >= 0 && d1 <
bound1 );
134 assert( d2 >= 0 && d2 <
bound2 );
135 assert( d3 >= 0 && d3 <
bound3 );
136 assert( d4 >= 0 && d4 <
bound4 );
139 int &
operator()(
const int d1,
const int d2,
const int d3,
const int d4,
const int d5)
141 assert( d1 >= 0 && d1 <
bound1 );
142 assert( d2 >= 0 && d2 <
bound2 );
143 assert( d3 >= 0 && d3 <
bound3 );
144 assert( d4 >= 0 && d4 <
bound4 );
145 assert( d5 >= 0 && d5 <
bound5 );
148 int &
operator()(
const int d1,
const int d2,
const int d3,
const int d4,
const int d5,
const int d6)
150 assert( d1 >= 0 && d1 <
bound1 );
151 assert( d2 >= 0 && d2 <
bound2 );
152 assert( d3 >= 0 && d3 <
bound3 );
153 assert( d4 >= 0 && d4 <
bound4 );
154 assert( d5 >= 0 && d5 <
bound5 );
155 assert( d6 >= 0 && d6 <
bound6 );
169 assert( d1 >= 0 && d1 <
bound1 );
170 assert( d2 >= 0 && d2 <
bound2 );
173 const int &
operator()(
const int d1,
const int d2,
const int d3)
const
175 assert( d1 >= 0 && d1 <
bound1 );
176 assert( d2 >= 0 && d2 <
bound2 );
177 assert( d3 >= 0 && d3 <
bound3 );
180 const int &
operator()(
const int d1,
const int d2,
const int d3,
const int d4)
const
182 assert( d1 >= 0 && d1 <
bound1 );
183 assert( d2 >= 0 && d2 <
bound2 );
184 assert( d3 >= 0 && d3 <
bound3 );
185 assert( d4 >= 0 && d4 <
bound4 );
188 const int &
operator()(
const int d1,
const int d2,
const int d3,
const int d4,
const int d5)
const
190 assert( d1 >= 0 && d1 <
bound1 );
191 assert( d2 >= 0 && d2 <
bound2 );
192 assert( d3 >= 0 && d3 <
bound3 );
193 assert( d4 >= 0 && d4 <
bound4 );
194 assert( d5 >= 0 && d5 <
bound5 );
197 const int &
operator()(
const int d1,
const int d2,
const int d3,
const int d4,
const int d5,
const int d6)
const
199 assert( d1 >= 0 && d1 <
bound1 );
200 assert( d2 >= 0 && d2 <
bound2 );
201 assert( d3 >= 0 && d3 <
bound3 );
202 assert( d4 >= 0 && d4 <
bound4 );
203 assert( d5 >= 0 && d5 <
bound5 );
204 assert( d6 >= 0 && d6 <
bound6 );
const std::complex< double > i
Definition cal_pLpR.cpp:46
Integer array.
Definition intarray.h:17
void freemem()
Definition intarray.cpp:191
int getBound5() const
Definition intarray.h:238
const IntArray & operator=(const int &right)
Equal all elements of an IntArray to an integer.
Definition intarray.h:100
int getBound6() const
Definition intarray.h:242
const int & operator()(const int d1, const int d2) const
Access elements by using "()" through pointer without changing its elements.
Definition intarray.h:167
int bound1
Definition intarray.h:250
~IntArray()
Definition intarray.cpp:186
const int & operator()(const int d1, const int d2, const int d3, const int d4) const
Definition intarray.h:180
int * ptr
Definition intarray.h:19
int dim
Definition intarray.h:249
int bound5
Definition intarray.h:254
void create(const int d1, const int d2)
Create integer arrays.
Definition intarray.cpp:307
int & operator()(const int d1, const int d2, const int d3, const int d4, const int d5)
Definition intarray.h:139
int getDim() const
Definition intarray.h:218
int getBound3() const
Definition intarray.h:230
int bound6
Definition intarray.h:255
int & operator()(const int d1, const int d2, const int d3, const int d4)
Definition intarray.h:131
int getBound4() const
Definition intarray.h:234
const int & operator()(const int d1, const int d2, const int d3) const
Definition intarray.h:173
int bound3
Definition intarray.h:252
int getSize() const
Definition intarray.h:214
const int & operator()(const int d1, const int d2, const int d3, const int d4, const int d5) const
Definition intarray.h:188
void zero_out(void)
Set all elements of an IntArray to zero.
Definition intarray.cpp:331
int getBound2() const
Definition intarray.h:226
IntArray & operator=(const IntArray &other)
copy assignment
Definition intarray.h:57
int & operator()(const int d1, const int d2, const int d3, const int d4, const int d5, const int d6)
Definition intarray.h:148
int & operator()(const int d1, const int d2, const int d3)
Definition intarray.h:124
int getBound1() const
Definition intarray.h:222
int size
Definition intarray.h:248
int & operator()(const int d1, const int d2)
Access elements by using operator "()".
Definition intarray.h:118
int bound2
Definition intarray.h:251
int bound4
Definition intarray.h:253
const int & operator()(const int d1, const int d2, const int d3, const int d4, const int d5, const int d6) const
Definition intarray.h:197
Definition clebsch_gordan_coeff.cpp:8