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 DenseBase::colwise() and DenseBase::rowwise() and most of the time this is the only way it is used.
Example:
Output:
Classes | |
| struct | ExtendedType |
| struct | ReduxReturnType |
| struct | ReturnType |
Public Types | |
| enum | { IsVertical = (Direction==Vertical) ? 1 : 0, IsHorizontal = (Direction==Horizontal) ? 1 : 0 } |
| enum | { HNormalized_Size, HNormalized_SizeMinusOne = HNormalized_Size==Dynamic ? Dynamic : HNormalized_Size-1 } |
| typedef ExpressionType::Scalar | Scalar |
| typedef ExpressionType::RealScalar | RealScalar |
| typedef ExpressionType::Index | Index |
| typedef internal::conditional < internal::must_nest_by_value < ExpressionType >::ret, ExpressionType, ExpressionType & > ::type | ExpressionTypeNested |
| typedef internal::remove_all < ExpressionTypeNested >::type | ExpressionTypeNestedCleaned |
| typedef Replicate < ExpressionType, Direction==Vertical?Dynamic:1, Direction==Horizontal?Dynamic:1 > | ReplicateReturnType |
| typedef ExpressionType::PlainObject | CrossReturnType |
| typedef Block< const ExpressionType, Direction==Vertical?int(HNormalized_SizeMinusOne):int(internal::traits < ExpressionType > ::RowsAtCompileTime), Direction==Horizontal?int(HNormalized_SizeMinusOne):int(internal::traits < ExpressionType > ::ColsAtCompileTime)> | HNormalized_Block |
| typedef Block< const ExpressionType, Direction==Vertical?1:int(internal::traits < ExpressionType > ::RowsAtCompileTime), Direction==Horizontal?1:int(internal::traits < ExpressionType > ::ColsAtCompileTime)> | HNormalized_Factors |
| typedef CwiseBinaryOp < internal::scalar_quotient_op < typename internal::traits < ExpressionType >::Scalar > , const HNormalized_Block, const Replicate < HNormalized_Factors, Direction==Vertical?HNormalized_SizeMinusOne:1, Direction==Horizontal?HNormalized_SizeMinusOne:1 > > | HNormalizedReturnType |
Public Member Functions | |
| VectorwiseOp (ExpressionType &matrix) | |
| const ExpressionType & | _expression () const |
| template<typename BinaryOp > | |
| const ReduxReturnType < BinaryOp >::Type | redux (const BinaryOp &func=BinaryOp()) const |
| const ReturnType < internal::member_minCoeff > ::Type | minCoeff () const |
| const ReturnType < internal::member_maxCoeff > ::Type | maxCoeff () const |
| const ReturnType < internal::member_squaredNorm, RealScalar >::Type | squaredNorm () const |
| const ReturnType < internal::member_norm, RealScalar >::Type | norm () const |
| const ReturnType < internal::member_blueNorm, RealScalar >::Type | blueNorm () const |
| const ReturnType < internal::member_stableNorm, RealScalar >::Type | stableNorm () const |
| const ReturnType < internal::member_hypotNorm, RealScalar >::Type | hypotNorm () const |
| const ReturnType < internal::member_sum >::Type | sum () const |
| const ReturnType < internal::member_mean > ::Type | mean () const |
| const ReturnType < internal::member_all >::Type | all () const |
| const ReturnType < internal::member_any >::Type | any () const |
| const PartialReduxExpr < ExpressionType, internal::member_count< Index > , Direction > | count () const |
| const ReturnType < internal::member_prod > ::Type | prod () const |
| const Reverse< ExpressionType, Direction > | reverse () const |
| const ReplicateReturnType | replicate (Index factor) const |
| template<int Factor> | |
| const Replicate < ExpressionType,(IsVertical?Factor:1),(IsHorizontal?Factor:1)> | replicate (Index factor=Factor) const |
| template<typename OtherDerived > | |
| ExpressionType & | operator= (const DenseBase< OtherDerived > &other) |
Copies the vector other to each subvector of *this. | |
| template<typename OtherDerived > | |
| ExpressionType & | operator+= (const DenseBase< OtherDerived > &other) |
Adds the vector other to each subvector of *this. | |
| template<typename OtherDerived > | |
| ExpressionType & | operator-= (const DenseBase< OtherDerived > &other) |
Substracts the vector other to each subvector of *this. | |
| template<typename OtherDerived > | |
| EIGEN_STRONG_INLINE CwiseBinaryOp < internal::scalar_sum_op < Scalar >, const ExpressionTypeNestedCleaned, const typename ExtendedType < OtherDerived >::Type > | operator+ (const DenseBase< OtherDerived > &other) const |
Returns the expression of the sum of the vector other to each subvector of *this. | |
| template<typename OtherDerived > | |
| CwiseBinaryOp < internal::scalar_difference_op < Scalar >, const ExpressionTypeNestedCleaned, const typename ExtendedType < OtherDerived >::Type > | operator- (const DenseBase< OtherDerived > &other) const |
Returns the expression of the difference between each subvector of *this and the vector other. | |
| Homogeneous< ExpressionType, Direction > | homogeneous () const |
| | |
| template<typename OtherDerived > | |
| const CrossReturnType | cross (const MatrixBase< OtherDerived > &other) const |
| const HNormalizedReturnType | hnormalized () const |
| | |
Protected Types | |
| typedef internal::conditional < Direction==Vertical, typename ExpressionType::ColXpr, typename ExpressionType::RowXpr >::type | SubVector |
Protected Member Functions | |
| SubVector | subVector (Index i) |
| Index | subVectors () const |
| template<typename OtherDerived > | |
| ExtendedType< OtherDerived >::Type | extendedTo (const DenseBase< OtherDerived > &other) const |
Protected Attributes | |
| ExpressionTypeNested | m_matrix |
| typedef ExpressionType::PlainObject Eigen::VectorwiseOp::CrossReturnType |
| typedef internal::conditional<internal::must_nest_by_value<ExpressionType>::ret, ExpressionType, ExpressionType&>::type Eigen::VectorwiseOp::ExpressionTypeNested |
| typedef Block<const ExpressionType, Direction==Vertical ? int(HNormalized_SizeMinusOne) : int(internal::traits<ExpressionType>::RowsAtCompileTime), Direction==Horizontal ? int(HNormalized_SizeMinusOne) : int(internal::traits<ExpressionType>::ColsAtCompileTime)> Eigen::VectorwiseOp::HNormalized_Block |
| typedef Block<const ExpressionType, Direction==Vertical ? 1 : int(internal::traits<ExpressionType>::RowsAtCompileTime), Direction==Horizontal ? 1 : int(internal::traits<ExpressionType>::ColsAtCompileTime)> Eigen::VectorwiseOp::HNormalized_Factors |
| typedef CwiseBinaryOp<internal::scalar_quotient_op<typename internal::traits<ExpressionType>::Scalar>, const HNormalized_Block, const Replicate<HNormalized_Factors, Direction==Vertical ? HNormalized_SizeMinusOne : 1, Direction==Horizontal ? HNormalized_SizeMinusOne : 1> > Eigen::VectorwiseOp::HNormalizedReturnType |
| typedef ExpressionType::Index Eigen::VectorwiseOp::Index |
| typedef ExpressionType::RealScalar Eigen::VectorwiseOp::RealScalar |
| typedef Replicate<ExpressionType,Direction==Vertical?Dynamic:1,Direction==Horizontal?Dynamic:1> Eigen::VectorwiseOp::ReplicateReturnType |
| typedef ExpressionType::Scalar Eigen::VectorwiseOp::Scalar |
typedef internal::conditional<Direction==Vertical, typename ExpressionType::ColXpr, typename ExpressionType::RowXpr>::type Eigen::VectorwiseOp::SubVector [protected] |
| anonymous enum |
| Eigen::VectorwiseOp::VectorwiseOp | ( | ExpressionType & | matrix | ) | [inline] |
| const ExpressionType& Eigen::VectorwiseOp::_expression | ( | ) | const [inline] |
| const ReturnType<internal::member_all>::Type Eigen::VectorwiseOp::all | ( | void | ) | const [inline] |
true.| const ReturnType<internal::member_any>::Type Eigen::VectorwiseOp::any | ( | void | ) | const [inline] |
true.| const ReturnType<internal::member_blueNorm,RealScalar>::Type Eigen::VectorwiseOp::blueNorm | ( | ) | const [inline] |
| const PartialReduxExpr<ExpressionType, internal::member_count<Index>, Direction> Eigen::VectorwiseOp::count | ( | void | ) | const [inline] |
true coefficients of each respective column (or row).Example:
Output:
| const VectorwiseOp< ExpressionType, Direction >::CrossReturnType Eigen::VectorwiseOp::cross | ( | const MatrixBase< OtherDerived > & | other | ) | const |
The referenced matrix must have one dimension equal to 3. The result matrix has the same dimensions than the referenced one.
| ExtendedType<OtherDerived>::Type Eigen::VectorwiseOp::extendedTo | ( | const DenseBase< OtherDerived > & | other | ) | const [inline, protected] |
| const VectorwiseOp< ExpressionType, Direction >::HNormalizedReturnType Eigen::VectorwiseOp::hnormalized | ( | ) | const [inline] |
*this Example:
Output:
| Homogeneous< ExpressionType, Direction > Eigen::VectorwiseOp::homogeneous | ( | ) | const [inline] |
Example:
Output:
| const ReturnType<internal::member_hypotNorm,RealScalar>::Type Eigen::VectorwiseOp::hypotNorm | ( | ) | const [inline] |
| const ReturnType<internal::member_maxCoeff>::Type Eigen::VectorwiseOp::maxCoeff | ( | ) | const [inline] |
Example:
Output:
| const ReturnType<internal::member_mean>::Type Eigen::VectorwiseOp::mean | ( | ) | const [inline] |
| const ReturnType<internal::member_minCoeff>::Type Eigen::VectorwiseOp::minCoeff | ( | ) | const [inline] |
Example:
Output:
| const ReturnType<internal::member_norm,RealScalar>::Type Eigen::VectorwiseOp::norm | ( | ) | const [inline] |
Example:
Output:
| EIGEN_STRONG_INLINE CwiseBinaryOp<internal::scalar_sum_op<Scalar>, const ExpressionTypeNestedCleaned, const typename ExtendedType<OtherDerived>::Type> Eigen::VectorwiseOp::operator+ | ( | const DenseBase< OtherDerived > & | other | ) | const [inline] |
| ExpressionType& Eigen::VectorwiseOp::operator+= | ( | const DenseBase< OtherDerived > & | other | ) | [inline] |
| CwiseBinaryOp<internal::scalar_difference_op<Scalar>, const ExpressionTypeNestedCleaned, const typename ExtendedType<OtherDerived>::Type> Eigen::VectorwiseOp::operator- | ( | const DenseBase< OtherDerived > & | other | ) | const [inline] |
| ExpressionType& Eigen::VectorwiseOp::operator-= | ( | const DenseBase< OtherDerived > & | other | ) | [inline] |
| ExpressionType& Eigen::VectorwiseOp::operator= | ( | const DenseBase< OtherDerived > & | other | ) | [inline] |
| const ReturnType<internal::member_prod>::Type Eigen::VectorwiseOp::prod | ( | ) | const [inline] |
Example:
Output:
| const ReduxReturnType<BinaryOp>::Type Eigen::VectorwiseOp::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.
| const VectorwiseOp< ExpressionType, Direction >::ReplicateReturnType Eigen::VectorwiseOp::replicate | ( | Index | factor | ) | const |
*this Example:
Output:
| const Replicate<ExpressionType,(IsVertical?Factor:1),(IsHorizontal?Factor:1)> Eigen::VectorwiseOp::replicate | ( | Index | factor = Factor | ) | const [inline] |
*this Example:
Output:
| const Reverse<ExpressionType, Direction> Eigen::VectorwiseOp::reverse | ( | ) | const [inline] |
Example:
Output:
| const ReturnType<internal::member_squaredNorm,RealScalar>::Type Eigen::VectorwiseOp::squaredNorm | ( | ) | const [inline] |
| const ReturnType<internal::member_stableNorm,RealScalar>::Type Eigen::VectorwiseOp::stableNorm | ( | ) | const [inline] |
| Index Eigen::VectorwiseOp::subVectors | ( | ) | const [inline, protected] |
| const ReturnType<internal::member_sum>::Type Eigen::VectorwiseOp::sum | ( | ) | const [inline] |
Example:
Output:
ExpressionTypeNested Eigen::VectorwiseOp::m_matrix [protected] |
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |