|
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 |
|
|
| 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 > |
ExpressionType & | operator*= (const DenseBase< OtherDerived > &other) |
| Multiples each subvector of *this by the vector other.
|
|
template<typename OtherDerived > |
ExpressionType & | operator/= (const DenseBase< OtherDerived > &other) |
| Divides each subvector of *this by the vector other.
|
|
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.
|
|
template<typename OtherDerived > |
EIGEN_STRONG_INLINE CwiseBinaryOp< internal::scalar_product_op< Scalar >, const ExpressionTypeNestedCleaned, const typename ExtendedType< OtherDerived >::Type > | operator* (const DenseBase< OtherDerived > &other) const |
| Returns the expression where each subvector is the product of the vector other by the corresponding subvector of *this .
|
|
template<typename OtherDerived > |
CwiseBinaryOp< internal::scalar_quotient_op< Scalar >, const ExpressionTypeNestedCleaned, const typename ExtendedType< OtherDerived >::Type > | operator/ (const DenseBase< OtherDerived > &other) const |
| Returns the expression where each subvector is the quotient of the corresponding subvector of *this by the vector other.
|
|
CwiseBinaryOp< internal::scalar_quotient_op< Scalar >, const ExpressionTypeNestedCleaned, const typename OppositeExtendedType< typename ReturnType< internal::member_norm, RealScalar >::Type >::Type > | normalized () const |
|
void | normalize () |
| Normalize in-place each row or columns of the referenced matrix. More...
|
|
template<typename OtherDerived > |
const CrossReturnType | cross (const MatrixBase< OtherDerived > &other) const |
|
const HNormalizedReturnType | hnormalized () const |
|
template<typename ExpressionType, int Direction>
class Eigen::VectorwiseOp< ExpressionType, Direction >
Pseudo expression providing partial reduction operations.
- Parameters
-
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:
- See also
- DenseBase::colwise(), DenseBase::rowwise(), class PartialReduxExpr