aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Select.h
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-04-12 22:34:16 +0100
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-04-12 22:34:16 +0100
commit12a30a982feab745d36d647ab88dfb0a51da2213 (patch)
tree5042422112605946ecd39dfbb0b5453f70d8a97d /Eigen/src/Core/Select.h
parent88b3116b9932ac8fecb5f72bf590e2b44fc9d0ff (diff)
Implement evaluator for Select.
Diffstat (limited to 'Eigen/src/Core/Select.h')
-rw-r--r--Eigen/src/Core/Select.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Eigen/src/Core/Select.h b/Eigen/src/Core/Select.h
index d0cd66a26..87a071fc7 100644
--- a/Eigen/src/Core/Select.h
+++ b/Eigen/src/Core/Select.h
@@ -101,6 +101,21 @@ class Select : internal::no_assignment_operator,
return m_else.coeff(i);
}
+ const ConditionMatrixType& conditionMatrix() const
+ {
+ return m_condition;
+ }
+
+ const ThenMatrixType& thenMatrix() const
+ {
+ return m_then;
+ }
+
+ const ElseMatrixType& elseMatrix() const
+ {
+ return m_else;
+ }
+
protected:
const typename ConditionMatrixType::Nested m_condition;
const typename ThenMatrixType::Nested m_then;