mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix bugs exposed by enabling GPU asserts.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
ab8725d947
commit
17ae83a966
@@ -745,7 +745,7 @@ template<typename ExpressionType, int Direction> class VectorwiseOp
|
||||
# endif
|
||||
|
||||
protected:
|
||||
Index redux_length() const
|
||||
EIGEN_DEVICE_FUNC Index redux_length() const
|
||||
{
|
||||
return Direction==Vertical ? m_matrix.rows() : m_matrix.cols();
|
||||
}
|
||||
|
||||
@@ -586,7 +586,7 @@ struct extract_data_selector {
|
||||
|
||||
template<typename T>
|
||||
struct extract_data_selector<T,false> {
|
||||
static typename T::Scalar* run(const T&) { return 0; }
|
||||
EIGEN_DEVICE_FUNC static typename T::Scalar* run(const T&) { return 0; }
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user