From 915587d03dd03ba4229fa42a0d230e94a21347d3 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 3 Jun 2008 15:50:09 +0000 Subject: * add CommaInitializer::finished to allow the use of (Matrix3() << v0, v1, v2).finished() as an argument of a function. Other possibilities for the name could be "end" or "matrix" ?? * various update in Quaternion, in particular I added a lot of FIXME about the API options, these have to be discussed and fixed. --- Eigen/src/Core/CommaInitializer.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Eigen/src/Core/CommaInitializer.h') diff --git a/Eigen/src/Core/CommaInitializer.h b/Eigen/src/Core/CommaInitializer.h index 0a555e1b7..61a004780 100644 --- a/Eigen/src/Core/CommaInitializer.h +++ b/Eigen/src/Core/CommaInitializer.h @@ -93,6 +93,15 @@ struct MatrixBase::CommaInitializer && "Too few coefficients passed to Matrix::operator<<"); } + /** \returns the built matrix once all its coefficients have been set. + * Calling finished is 100% optional. Its purpose is to write expressions + * like this: + * \code + * quaternion.fromRotationMatrix((Matrix3f() << axis0, axis1, axis2).finished()); + * \endcode + */ + inline Derived& finished() { return m_matrix; } + Derived& m_matrix; int m_row; // current row id int m_col; // current col id -- cgit v1.2.3