mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Silenced a number of compilation warnings
This commit is contained in:
parent
fffe63045c
commit
7d41e97fa9
@ -35,10 +35,10 @@ template<typename Index, std::size_t Rank> struct array_size<const DimensionList
|
||||
static const size_t value = Rank;
|
||||
};
|
||||
|
||||
template<DenseIndex n, typename Index, std::size_t Rank> const Index array_get(DimensionList<Index, Rank>& a) {
|
||||
template<DenseIndex n, typename Index, std::size_t Rank> const Index array_get(DimensionList<Index, Rank>&) {
|
||||
return n;
|
||||
}
|
||||
template<DenseIndex n, typename Index, std::size_t Rank> const Index array_get(const DimensionList<Index, Rank>& a) {
|
||||
template<DenseIndex n, typename Index, std::size_t Rank> const Index array_get(const DimensionList<Index, Rank>&a) {
|
||||
return n;
|
||||
}
|
||||
|
||||
@ -177,52 +177,52 @@ struct indices_statically_known_to_increase<const DimensionList<Index, Rank> > {
|
||||
|
||||
template <typename Index, std::size_t Rank>
|
||||
struct index_statically_eq<DimensionList<Index, Rank> > {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
template <typename Index, std::size_t Rank>
|
||||
struct index_statically_eq<const DimensionList<Index, Rank> > {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename Index, std::size_t Rank>
|
||||
struct index_statically_ne<DimensionList<Index, Rank> > {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
template <typename Index, std::size_t Rank>
|
||||
struct index_statically_ne<const DimensionList<Index, Rank> > {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename Index, std::size_t Rank>
|
||||
struct index_statically_gt<DimensionList<Index, Rank> > {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
template <typename Index, std::size_t Rank>
|
||||
struct index_statically_gt<const DimensionList<Index, Rank> > {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename Index, std::size_t Rank>
|
||||
struct index_statically_lt<DimensionList<Index, Rank> > {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
template <typename Index, std::size_t Rank>
|
||||
struct index_statically_lt<const DimensionList<Index, Rank> > {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex i, const DenseIndex value) const {
|
||||
EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
@ -66,8 +66,8 @@ template <typename OutputDims> struct DimInitializer {
|
||||
|
||||
template <> struct DimInitializer<Sizes<1> > {
|
||||
template <typename InputDims, typename Index, size_t Rank> EIGEN_DEVICE_FUNC
|
||||
static void run(const InputDims& input_dims, const array<bool, Rank>& reduced,
|
||||
Sizes<1>* output_dims, array<Index, Rank>* reduced_dims) {
|
||||
static void run(const InputDims& input_dims, const array<bool, Rank>&,
|
||||
Sizes<1>*, array<Index, Rank>* reduced_dims) {
|
||||
const int NumInputDims = internal::array_size<InputDims>::value;
|
||||
for (int i = 0; i < NumInputDims; ++i) {
|
||||
(*reduced_dims)[i] = input_dims[i];
|
||||
|
Loading…
Reference in New Issue
Block a user