Skip to content

Commit

Permalink
fix centring
Browse files Browse the repository at this point in the history
  • Loading branch information
dariosanfilippo authored and sletz committed Apr 7, 2021
1 parent 86d6db8 commit 7c67bc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions interpolators.lib
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,10 @@ declare frdtable copyright "Copyright (C) 2021 Dario Sanfilippo
<[email protected]>";
declare frdtable license "LGPL v3.0 license";
frdtable(N, S, init, idx) =
lagrangeN(N, f_idx, par(i, N + 1, table(i_idx - int((N - 1) / 2) + i)))
lagrangeN(N, f_idx, par(i, N + 1, table(i_idx - int(N / 2) + i)))
with {
table(j) = rdtable(S, init, int(ma.modulo(j, S)));
f_idx = ma.frac(idx) + int((N - 1) / 2);
f_idx = ma.frac(idx) + int(N / 2);
i_idx = int(idx);
};
// -----------------------------------------------------------------------------
Expand Down Expand Up @@ -563,10 +563,10 @@ declare frwtable copyright "Copyright (C) 2021 Dario Sanfilippo
<[email protected]>";
declare frwtable license "LGPL v3.0 license";
frwtable(N, S, init, w_idx, x, r_idx) =
lagrangeN(N, f_idx, par(i, N + 1, table(i_idx - int((N - 1) / 2) + i)))
lagrangeN(N, f_idx, par(i, N + 1, table(i_idx - int(N / 2) + i)))
with {
table(j) = rwtable(S, init, w_idx, x, int(ma.modulo(j, S)));
f_idx = ma.frac(r_idx) + int((N - 1) / 2);
f_idx = ma.frac(r_idx) + int(N / 2);
i_idx = int(r_idx);
};
// -----------------------------------------------------------------------------

0 comments on commit 7c67bc8

Please sign in to comment.