From 616f9cc593fb47e39e0a47b6a749f15d66a5c734 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Tue, 6 Aug 2013 09:49:44 +0100 Subject: doc: Explain type of result for VectorwiseOp member functions. Prompted by a question on the forum. --- Eigen/src/Core/VectorwiseOp.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Eigen/src/Core/VectorwiseOp.h') diff --git a/Eigen/src/Core/VectorwiseOp.h b/Eigen/src/Core/VectorwiseOp.h index 511564875..328b6179b 100644 --- a/Eigen/src/Core/VectorwiseOp.h +++ b/Eigen/src/Core/VectorwiseOp.h @@ -301,6 +301,7 @@ template class VectorwiseOp /** \returns a row (or column) vector expression of the squared norm * of each column (or row) of the referenced expression. + * This is a vector with real entries, even if the original matrix has complex entries. * * Example: \include PartialRedux_squaredNorm.cpp * Output: \verbinclude PartialRedux_squaredNorm.out @@ -311,6 +312,7 @@ template class VectorwiseOp /** \returns a row (or column) vector expression of the norm * of each column (or row) of the referenced expression. + * This is a vector with real entries, even if the original matrix has complex entries. * * Example: \include PartialRedux_norm.cpp * Output: \verbinclude PartialRedux_norm.out @@ -322,7 +324,8 @@ template class VectorwiseOp /** \returns a row (or column) vector expression of the norm * of each column (or row) of the referenced expression, using - * blue's algorithm. + * Blue's algorithm. + * This is a vector with real entries, even if the original matrix has complex entries. * * \sa DenseBase::blueNorm() */ const typename ReturnType::Type blueNorm() const @@ -332,6 +335,7 @@ template class VectorwiseOp /** \returns a row (or column) vector expression of the norm * of each column (or row) of the referenced expression, avoiding * underflow and overflow. + * This is a vector with real entries, even if the original matrix has complex entries. * * \sa DenseBase::stableNorm() */ const typename ReturnType::Type stableNorm() const @@ -341,6 +345,7 @@ template class VectorwiseOp /** \returns a row (or column) vector expression of the norm * of each column (or row) of the referenced expression, avoiding * underflow and overflow using a concatenation of hypot() calls. + * This is a vector with real entries, even if the original matrix has complex entries. * * \sa DenseBase::hypotNorm() */ const typename ReturnType::Type hypotNorm() const @@ -365,6 +370,7 @@ template class VectorwiseOp /** \returns a row (or column) vector expression representing * whether \b all coefficients of each respective column (or row) are \c true. + * This expression can be assigned to a vector with entries of type \c bool. * * \sa DenseBase::all() */ const typename ReturnType::Type all() const @@ -372,6 +378,7 @@ template class VectorwiseOp /** \returns a row (or column) vector expression representing * whether \b at \b least one coefficient of each respective column (or row) is \c true. + * This expression can be assigned to a vector with entries of type \c bool. * * \sa DenseBase::any() */ const typename ReturnType::Type any() const @@ -379,6 +386,8 @@ template class VectorwiseOp /** \returns a row (or column) vector expression representing * the number of \c true coefficients of each respective column (or row). + * This expression can be assigned to a vector whose entries have the same type as is used to + * index entries of the original matrix; for dense matrices, this is \c std::ptrdiff_t . * * Example: \include PartialRedux_count.cpp * Output: \verbinclude PartialRedux_count.out -- cgit v1.2.3