Pseudo expression providing partial reduction operations. More...
#include <PartialRedux.h>
Classes | |
struct | ReduxReturnType |
struct | ReturnType |
Public Types | |
typedef ExpressionType::PlainMatrixType | CrossReturnType |
typedef ei_meta_if < ei_must_nest_by_value < ExpressionType >::ret, ExpressionType, const ExpressionType & >::ret | ExpressionTypeNested |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef ei_traits < ExpressionType >::Scalar | Scalar |
Public Member Functions | |
const ExpressionType & | _expression () const |
const ReturnType < ei_member_all >::Type | all () const |
const ReturnType < ei_member_any >::Type | any () const |
const PartialReduxExpr < ExpressionType, ei_member_count< int > , Direction > | count () const |
template<typename OtherDerived > | |
const CrossReturnType | cross (const MatrixBase< OtherDerived > &other) const |
const ReturnType < ei_member_maxCoeff >::Type | maxCoeff () const |
const ReturnType < ei_member_minCoeff >::Type | minCoeff () const |
const ReturnType < ei_member_norm, RealScalar > ::Type | norm () const |
PartialRedux (const ExpressionType &matrix) | |
template<typename BinaryOp > | |
const ReduxReturnType < BinaryOp >::Type | redux (const BinaryOp &func=BinaryOp()) const |
const ReturnType < ei_member_squaredNorm, RealScalar >::Type | squaredNorm () const |
const ReturnType < ei_member_sum >::Type | sum () const |
Protected Attributes | |
ExpressionTypeNested | m_matrix |
Private Member Functions | |
PartialRedux & | operator= (const PartialRedux &) |
Pseudo expression providing partial reduction operations.
ExpressionType | the type of the object on which to do partial reductions | |
Direction | indicates the direction of the redux (Vertical or Horizontal) |
This class represents a pseudo expression with partial reduction features. It is the return type of MatrixBase::colwise() and MatrixBase::rowwise() and most of the time this is the only way it is used.
Example:
Output:
Definition at line 158 of file PartialRedux.h.
typedef ExpressionType::PlainMatrixType PartialRedux< ExpressionType, Direction >::CrossReturnType |
Definition at line 184 of file PartialRedux.h.
typedef ei_meta_if<ei_must_nest_by_value<ExpressionType>::ret, ExpressionType, const ExpressionType&>::ret PartialRedux< ExpressionType, Direction >::ExpressionTypeNested |
Definition at line 165 of file PartialRedux.h.
typedef NumTraits<Scalar>::Real PartialRedux< ExpressionType, Direction >::RealScalar |
Definition at line 163 of file PartialRedux.h.
typedef ei_traits<ExpressionType>::Scalar PartialRedux< ExpressionType, Direction >::Scalar |
Definition at line 162 of file PartialRedux.h.
PartialRedux< ExpressionType, Direction >::PartialRedux | ( | const ExpressionType & | matrix | ) | [inline] |
Definition at line 186 of file PartialRedux.h.
const ExpressionType& PartialRedux< ExpressionType, Direction >::_expression | ( | ) | const [inline] |
Definition at line 189 of file PartialRedux.h.
const ReturnType<ei_member_all>::Type PartialRedux< ExpressionType, Direction >::all | ( | ) | const [inline] |
true
.Definition at line 249 of file PartialRedux.h.
const ReturnType<ei_member_any>::Type PartialRedux< ExpressionType, Direction >::any | ( | ) | const [inline] |
true
.Definition at line 256 of file PartialRedux.h.
const PartialReduxExpr<ExpressionType, ei_member_count<int>, Direction> PartialRedux< ExpressionType, Direction >::count | ( | ) | const [inline] |
true
coefficients of each respective column (or row).Example:
Output:
Definition at line 266 of file PartialRedux.h.
const CrossReturnType PartialRedux< ExpressionType, Direction >::cross | ( | const MatrixBase< OtherDerived > & | other | ) | const [inline] |
Definition at line 276 of file PartialRedux.h.
const ReturnType<ei_member_maxCoeff>::Type PartialRedux< ExpressionType, Direction >::maxCoeff | ( | ) | const [inline] |
Example:
Output:
Definition at line 212 of file PartialRedux.h.
const ReturnType<ei_member_minCoeff>::Type PartialRedux< ExpressionType, Direction >::minCoeff | ( | ) | const [inline] |
Example:
Output:
Definition at line 202 of file PartialRedux.h.
const ReturnType<ei_member_norm,RealScalar>::Type PartialRedux< ExpressionType, Direction >::norm | ( | ) | const [inline] |
Example:
Output:
Definition at line 232 of file PartialRedux.h.
PartialRedux& PartialRedux< ExpressionType, Direction >::operator= | ( | const PartialRedux< ExpressionType, Direction > & | ) | [private] |
const PartialRedux< ExpressionType, Direction >::template ReduxReturnType< BinaryOp >::Type PartialRedux< ExpressionType, Direction >::redux | ( | const BinaryOp & | func = BinaryOp() |
) | const [inline] |
*this
reduxed by func The template parameter BinaryOp is the type of the functor of the custom redux operator. Note that func must be an associative operator.
Definition at line 344 of file PartialRedux.h.
const ReturnType<ei_member_squaredNorm,RealScalar>::Type PartialRedux< ExpressionType, Direction >::squaredNorm | ( | ) | const [inline] |
Example:
Output:
Definition at line 222 of file PartialRedux.h.
const ReturnType<ei_member_sum>::Type PartialRedux< ExpressionType, Direction >::sum | ( | ) | const [inline] |
Example:
Output:
Definition at line 242 of file PartialRedux.h.
ExpressionTypeNested PartialRedux< ExpressionType, Direction >::m_matrix [protected] |
Definition at line 296 of file PartialRedux.h.