mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Silenced a few compilation warnings
This commit is contained in:
parent
37357a310f
commit
1a7b84dc75
@ -225,7 +225,7 @@ struct DSizes : array<DenseIndex, NumDims> {
|
|||||||
return NumDims;
|
return NumDims;
|
||||||
}
|
}
|
||||||
|
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE size_t TotalSize() const {
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex TotalSize() const {
|
||||||
return internal::array_prod(*static_cast<const Base*>(this));
|
return internal::array_prod(*static_cast<const Base*>(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,31 +64,31 @@ class TensorStorage
|
|||||||
// pure-dynamic, but without specification of all dimensions explicitly
|
// pure-dynamic, but without specification of all dimensions explicitly
|
||||||
template<typename T, DenseIndex NumIndices_, int Options_>
|
template<typename T, DenseIndex NumIndices_, int Options_>
|
||||||
class TensorStorage<T, NumIndices_, Dynamic, Options_, void>
|
class TensorStorage<T, NumIndices_, Dynamic, Options_, void>
|
||||||
: public TensorStorage<T, NumIndices_, Dynamic, Options_, typename internal::gen_numeric_list_repeated<DenseIndex, NumIndices_, Dynamic>::type>
|
: public TensorStorage<T, NumIndices_, Dynamic, Options_, typename internal::gen_numeric_list_repeated<typename internal::compute_index_type<static_cast<bool>(Options_ & Index32Bit)>::type, NumIndices_, Dynamic>::type>
|
||||||
{
|
{
|
||||||
typedef typename internal::compute_index_type<static_cast<bool>(Options_ & Index32Bit)>::type Index;
|
typedef typename internal::compute_index_type<static_cast<bool>(Options_ & Index32Bit)>::type Index;
|
||||||
typedef DSizes<Index, NumIndices_> Dimensions;
|
typedef DSizes<Index, NumIndices_> Dimensions;
|
||||||
typedef TensorStorage<T, NumIndices_, Dynamic, Options_, typename internal::gen_numeric_list_repeated<DenseIndex, NumIndices_, Dynamic>::type> Base_;
|
typedef TensorStorage<T, NumIndices_, Dynamic, Options_, typename internal::gen_numeric_list_repeated<Index, NumIndices_, Dynamic>::type> Base_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
EIGEN_DEVICE_FUNC TensorStorage() { }
|
EIGEN_DEVICE_FUNC TensorStorage() { }
|
||||||
EIGEN_DEVICE_FUNC TensorStorage(const TensorStorage<T, NumIndices_, Dynamic, Options_, void>& other) : Base_(other) { }
|
EIGEN_DEVICE_FUNC TensorStorage(const TensorStorage<T, NumIndices_, Dynamic, Options_, void>& other) : Base_(other) { }
|
||||||
|
|
||||||
EIGEN_DEVICE_FUNC TensorStorage(internal::constructor_without_unaligned_array_assert) : Base_(internal::constructor_without_unaligned_array_assert()) {}
|
EIGEN_DEVICE_FUNC TensorStorage(internal::constructor_without_unaligned_array_assert) : Base_(internal::constructor_without_unaligned_array_assert()) {}
|
||||||
EIGEN_DEVICE_FUNC TensorStorage(DenseIndex size, const array<Index, NumIndices_>& dimensions) : Base_(size, dimensions) {}
|
EIGEN_DEVICE_FUNC TensorStorage(Index size, const array<Index, NumIndices_>& dimensions) : Base_(size, dimensions) {}
|
||||||
|
|
||||||
// TensorStorage<T, NumIndices_, Dynamic, Options_, void>& operator=(const TensorStorage<T, NumIndices_, Dynamic, Options_, void>&) = default;
|
// TensorStorage<T, NumIndices_, Dynamic, Options_, void>& operator=(const TensorStorage<T, NumIndices_, Dynamic, Options_, void>&) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
// pure dynamic
|
// pure dynamic
|
||||||
template<typename T, DenseIndex NumIndices_, int Options_>
|
template<typename T, DenseIndex NumIndices_, int Options_>
|
||||||
class TensorStorage<T, NumIndices_, Dynamic, Options_, typename internal::gen_numeric_list_repeated<DenseIndex, NumIndices_, Dynamic>::type>
|
class TensorStorage<T, NumIndices_, Dynamic, Options_, typename internal::gen_numeric_list_repeated<typename internal::compute_index_type<static_cast<bool>(Options_ & Index32Bit)>::type, NumIndices_, Dynamic>::type>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef typename internal::compute_index_type<static_cast<bool>(Options_&Index32Bit)>::type Index;
|
typedef typename internal::compute_index_type<static_cast<bool>(Options_&Index32Bit)>::type Index;
|
||||||
typedef DSizes<Index, NumIndices_> Dimensions;
|
typedef DSizes<Index, NumIndices_> Dimensions;
|
||||||
|
|
||||||
typedef TensorStorage<T, NumIndices_, Dynamic, Options_, typename internal::gen_numeric_list_repeated<DenseIndex, NumIndices_, Dynamic>::type> Self_;
|
typedef TensorStorage<T, NumIndices_, Dynamic, Options_, typename internal::gen_numeric_list_repeated<Index, NumIndices_, Dynamic>::type> Self_;
|
||||||
|
|
||||||
EIGEN_DEVICE_FUNC TensorStorage() : m_data(0), m_dimensions() {}
|
EIGEN_DEVICE_FUNC TensorStorage() : m_data(0), m_dimensions() {}
|
||||||
EIGEN_DEVICE_FUNC TensorStorage(internal::constructor_without_unaligned_array_assert)
|
EIGEN_DEVICE_FUNC TensorStorage(internal::constructor_without_unaligned_array_assert)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user