aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/XprHelper.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-05-18 13:59:55 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-05-18 13:59:55 +0200
commit4dd767f455f1adfea7cb2febeab3efaa81246845 (patch)
tree4849b77657771fa8d74beea18cc3968bfe2ccbc4 /Eigen/src/Core/util/XprHelper.h
parent345c0ab450d623b79868ea60253db9d0d8bdd5c7 (diff)
add some internal checks
Diffstat (limited to 'Eigen/src/Core/util/XprHelper.h')
-rw-r--r--Eigen/src/Core/util/XprHelper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/XprHelper.h b/Eigen/src/Core/util/XprHelper.h
index 10328be0d..1217404d6 100644
--- a/Eigen/src/Core/util/XprHelper.h
+++ b/Eigen/src/Core/util/XprHelper.h
@@ -47,6 +47,12 @@ template<typename T> struct is_valid_index_type
};
};
+// true if both types are not valid index types
+template<typename RowIndices, typename ColIndices>
+struct valid_indexed_view_overload {
+ enum { value = !(internal::is_valid_index_type<RowIndices>::value && internal::is_valid_index_type<ColIndices>::value) };
+};
+
// promote_scalar_arg is an helper used in operation between an expression and a scalar, like:
// expression * scalar
// Its role is to determine how the type T of the scalar operand should be promoted given the scalar type ExprScalar of the given expression.