Build and test pass for GCC 7.5.0

topic/cross-compile
Vincent Samy 2020-03-30 17:23:23 +09:00
rodzic e6e370642e
commit 213be7549b
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -191,7 +191,7 @@ template <typename T, int N, typename CNRCoeffs> vectN_t<T, N> GetCNRISDCoeffs()
vectN_t<T, N> v{};
const vectN_t<T, N> v0 = CNRCoeffs{}();
v(M) = 0;
for (Eigen::Index k = 1; k < M + 1; ++k) {
for (int k = 1; k < M + 1; ++k) {
v(M - k) = T(2) * k * v0(M - k);
v(M + k) = T(2) * k * v0(M + k);
}

Wyświetl plik

@ -77,11 +77,11 @@ FunctionGenerator<T> polyGenerator(int nrSteps, std::array<T, N> coeffs, T dt)
std::array<T, N - 1> dCoeffs;
for (size_t i = 1; i < N; ++i)
dCoeffs[i - 1] = i * coeffs[i];
dCoeffs[i - 1] = static_cast<T>(i) * coeffs[i];
std::array<T, N - 2> ddCoeffs;
for (size_t i = 1; i < N - 1; ++i)
ddCoeffs[i - 1] = i * dCoeffs[i];
ddCoeffs[i - 1] = static_cast<T>(i) * dCoeffs[i];
vectX_t<T> f(nrSteps);
vectX_t<T> df(nrSteps);
@ -160,11 +160,11 @@ TVFunctionGenerator<T> tvPolyGenerator(int nrSteps, std::array<T, N> coeffs, T m
std::array<T, N - 1> dCoeffs;
for (size_t i = 1; i < N; ++i)
dCoeffs[i - 1] = i * coeffs[i];
dCoeffs[i - 1] = static_cast<T>(i) * coeffs[i];
std::array<T, N - 2> ddCoeffs;
for (size_t i = 1; i < N - 1; ++i)
ddCoeffs[i - 1] = i * dCoeffs[i];
ddCoeffs[i - 1] = static_cast<T>(i) * dCoeffs[i];
vectX_t<T> t(nrSteps);
vectX_t<T> f(nrSteps);