44 DOPERATE_RI_VEC)(
const int *opn,
const double *restrict w,
45 const int *opnri,
const int *opri,
46 const int *rimap_inv,
const int *rimap_inv_max,
47 const double *restrict fi,
const int *ldfp,
49 double *restrict fo) {
50 const size_t ldf = ldfp[0];
54 aligned = aligned && (((
long long)fi) % (8 * VEC_SIZE) == 0);
55 aligned = aligned && (((
long long)fo) % (8 * VEC_SIZE) == 0);
56 aligned = aligned && ((1 << ldf) % VEC_SIZE == 0);
58 if (aligned && stream[0]) {
77 DOPERATE_RI_SYM_VEC)(
const int *opn,
const double *restrict wpair,
const double *restrict wcenter,
78 const int *opnri,
const int *opri_pos,
const int *opri_neg,
79 const int *rimap_inv,
const int *rimap_inv_max,
80 const double *restrict fi,
const int *ldfp,
82 double *restrict fo) {
83 const size_t ldf = ldfp[0];
87 aligned = aligned && (((
long long)fi) % (8 * VEC_SIZE) == 0);
88 aligned = aligned && (((
long long)fo) % (8 * VEC_SIZE) == 0);
89 aligned = aligned && ((1 << ldf) % VEC_SIZE == 0);
91 if (aligned && stream[0]) {
109void FC_FUNC_(doperate_ri_antisym_vec,
110 DOPERATE_RI_ANTISYM_VEC)(
const int *opn,
const double *restrict wpair,
111 const int *opnri,
const int *opri_pos,
const int *opri_neg,
112 const int *rimap_inv,
const int *rimap_inv_max,
113 const double *restrict fi,
const int *ldfp,
115 double *restrict fo) {
116 const size_t ldf = ldfp[0];
120 aligned = aligned && (((
long long)fi) % (8 * VEC_SIZE) == 0);
121 aligned = aligned && (((
long long)fo) % (8 * VEC_SIZE) == 0);
122 aligned = aligned && ((1 << ldf) % VEC_SIZE == 0);
124 if (aligned && stream[0]) {
131 }
else if (aligned) {
147 ZOPERATE_RI_VEC)(
const int *opn,
const double *restrict w,
148 const int *opnri,
const int *opri,
149 const int *rimap_inv,
const int *rimap_inv_max,
150 const double *restrict fi,
const int *ldfp,
152 double *restrict fo) {
153 FC_FUNC_(doperate_ri_vec, DOPERATE_RI_VEC)
154 (opn, w, opnri, opri, rimap_inv, rimap_inv_max, fi, ldfp, stream, fo);
158 ZOPERATE_RI_SYM_VEC)(
const int *opn,
const double *restrict w,
159 const double *restrict wcenter,
160 const int *opnri,
const int *opri_pos,
const int *opri_neg,
161 const int *rimap_inv,
const int *rimap_inv_max,
162 const double *restrict fi,
const int *ldfp,
164 double *restrict fo) {
165 FC_FUNC_(doperate_ri_sym_vec, DOPERATE_RI_SYM_VEC)
166 (opn, w, wcenter, opnri, opri_pos, opri_neg, rimap_inv, rimap_inv_max, fi, ldfp, stream, fo);
169void FC_FUNC_(zoperate_ri_antisym_vec,
170 ZOPERATE_RI_ANTISYM_VEC)(
const int *opn,
const double *restrict w,
171 const int *opnri,
const int *opri_pos,
const int *opri_neg,
172 const int *rimap_inv,
const int *rimap_inv_max,
173 const double *restrict fi,
const int *ldfp,
175 double *restrict fo) {
176 FC_FUNC_(doperate_ri_antisym_vec, DOPERATE_RI_SYM_VEC)
177 (opn, w, opnri, opri_pos, opri_neg, rimap_inv, rimap_inv_max, fi, ldfp, stream, fo);
182 DGAUSS_SEIDEL)(
const int *opn,
const double *restrict w,
183 const int *opnri,
const int *opri,
184 const int *rimap_inv,
const int *rimap_inv_max,
185 const double *restrict factor,
double *pot,
186 const double *restrict rho) {
188 const int n = opn[0];
189 const int nri = opnri[0];
194 register const double fac = *factor;
196 for (
l = 0;
l <
nri;
l++) {
200 for (;
i < rimap_inv_max[
l];
i++) {
201 a0 = w[0] * pot[
i +
index[0]];
202 for (
j = 1;
j < n;
j++)
204 pot[
i] += fac * (a0 - rho[
i]);
212 char * vector = VECTORIZATION_LEVEL;
213 size_t len = strlen(vector) + 1;
214 strncpy(level, vector, len);
void FC_FUNC_(doperate_ri_sym_vec, DOPERATE_RI_SYM_VEC) const
void get_vectorization_level(char *level)
const int *restrict index