mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Silenced a few more compilation warnings
This commit is contained in:
parent
0974a57910
commit
09ea3a7acd
@ -354,7 +354,7 @@ struct h_array_reduce<Reducer, T, N, 0>
|
|||||||
template<typename Reducer, typename T>
|
template<typename Reducer, typename T>
|
||||||
struct h_array_reduce<Reducer, T, 0>
|
struct h_array_reduce<Reducer, T, 0>
|
||||||
{
|
{
|
||||||
constexpr static inline T run(const std::array<T, 0>& arr, T identity)
|
constexpr static inline T run(const std::array<T, 0>&, T identity)
|
||||||
{
|
{
|
||||||
return identity;
|
return identity;
|
||||||
}
|
}
|
||||||
|
@ -219,8 +219,8 @@ struct TensorEvaluator<const TensorFFTOp<FFT, ArgType, FFTResultType, FFTDir>, D
|
|||||||
ComplexScalar* pos_j_base_powered = is_power_of_two ? NULL : (ComplexScalar*)m_device.allocate(sizeof(ComplexScalar) * (line_len + 1));
|
ComplexScalar* pos_j_base_powered = is_power_of_two ? NULL : (ComplexScalar*)m_device.allocate(sizeof(ComplexScalar) * (line_len + 1));
|
||||||
if (!is_power_of_two) {
|
if (!is_power_of_two) {
|
||||||
ComplexScalar pos_j_base = ComplexScalar(std::cos(M_PI/line_len), std::sin(M_PI/line_len));
|
ComplexScalar pos_j_base = ComplexScalar(std::cos(M_PI/line_len), std::sin(M_PI/line_len));
|
||||||
for (int i = 0; i < line_len + 1; ++i) {
|
for (int j = 0; j < line_len + 1; ++j) {
|
||||||
pos_j_base_powered[i] = std::pow(pos_j_base, i * i);
|
pos_j_base_powered[j] = std::pow(pos_j_base, j * j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user