|
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 Eigen::Index | Index |
|
typedef internal::ref_selector< ExpressionType >::non_const_type | ExpressionTypeNested |
|
typedef internal::remove_all< ExpressionTypeNested >::type | ExpressionTypeNestedCleaned |
|
typedef ReturnType< internal::member_minCoeff >::Type | MinCoeffReturnType |
|
typedef ReturnType< internal::member_maxCoeff >::Type | MaxCoeffReturnType |
|
typedef ReturnType< internal::member_squaredNorm, RealScalar >::Type | SquaredNormReturnType |
|
typedef ReturnType< internal::member_norm, RealScalar >::Type | NormReturnType |
|
typedef ReturnType< internal::member_blueNorm, RealScalar >::Type | BlueNormReturnType |
|
typedef ReturnType< internal::member_stableNorm, RealScalar >::Type | StableNormReturnType |
|
typedef ReturnType< internal::member_hypotNorm, RealScalar >::Type | HypotNormReturnType |
|
typedef ReturnType< internal::member_sum >::Type | SumReturnType |
|
typedef ReturnType< internal::member_mean >::Type | MeanReturnType |
|
typedef ReturnType< internal::member_all >::Type | AllReturnType |
|
typedef ReturnType< internal::member_any >::Type | AnyReturnType |
|
typedef PartialReduxExpr< ExpressionType, internal::member_count< Index >, Direction > | CountReturnType |
|
typedef ReturnType< internal::member_prod >::Type | ProdReturnType |
|
typedef Reverse< const ExpressionType, Direction > | ConstReverseReturnType |
|
typedef Reverse< ExpressionType, Direction > | ReverseReturnType |
|
typedef Replicate< ExpressionType,(isVertical?Dynamic:1),(isHorizontal?Dynamic:1)> | ReplicateReturnType |
|
typedef Homogeneous< ExpressionType, Direction > | HomogeneousReturnType |
|
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 |
|
|
EIGEN_DEVICE_FUNC | VectorwiseOp (ExpressionType &matrix) |
|
EIGEN_DEVICE_FUNC const ExpressionType & | _expression () const |
|
template<typename BinaryOp > |
EIGEN_DEVICE_FUNC const ReduxReturnType< BinaryOp >::Type | redux (const BinaryOp &func=BinaryOp()) const |
|
EIGEN_DEVICE_FUNC const MinCoeffReturnType | minCoeff () const |
|
EIGEN_DEVICE_FUNC const MaxCoeffReturnType | maxCoeff () const |
|
EIGEN_DEVICE_FUNC const SquaredNormReturnType | squaredNorm () const |
|
EIGEN_DEVICE_FUNC const NormReturnType | norm () const |
|
template<int p> |
EIGEN_DEVICE_FUNC const LpNormReturnType< p >::Type | lpNorm () const |
|
EIGEN_DEVICE_FUNC const BlueNormReturnType | blueNorm () const |
|
EIGEN_DEVICE_FUNC const StableNormReturnType | stableNorm () const |
|
EIGEN_DEVICE_FUNC const HypotNormReturnType | hypotNorm () const |
|
EIGEN_DEVICE_FUNC const SumReturnType | sum () const |
|
EIGEN_DEVICE_FUNC const MeanReturnType | mean () const |
|
EIGEN_DEVICE_FUNC const AllReturnType | all () const |
|
EIGEN_DEVICE_FUNC const AnyReturnType | any () const |
|
EIGEN_DEVICE_FUNC const CountReturnType | count () const |
|
EIGEN_DEVICE_FUNC const ProdReturnType | prod () const |
|
EIGEN_DEVICE_FUNC const ConstReverseReturnType | reverse () const |
|
EIGEN_DEVICE_FUNC ReverseReturnType | reverse () |
|
EIGEN_DEVICE_FUNC const ReplicateReturnType | replicate (Index factor) const |
|
template<int Factor> |
const Replicate< ExpressionType, isVertical *Factor+isHorizontal, isHorizontal *Factor+isVertical > EIGEN_DEVICE_FUNC | replicate (Index factor=Factor) const |
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC ExpressionType & | operator= (const DenseBase< OtherDerived > &other) |
| Copies the vector other to each subvector of *this .
|
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC ExpressionType & | operator+= (const DenseBase< OtherDerived > &other) |
| Adds the vector other to each subvector of *this .
|
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC ExpressionType & | operator-= (const DenseBase< OtherDerived > &other) |
| Substracts the vector other to each subvector of *this .
|
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC ExpressionType & | operator*= (const DenseBase< OtherDerived > &other) |
| Multiples each subvector of *this by the vector other.
|
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC ExpressionType & | operator/= (const DenseBase< OtherDerived > &other) |
| Divides each subvector of *this by the vector other.
|
|
template<typename OtherDerived > |
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC CwiseBinaryOp< internal::scalar_sum_op< Scalar, typename OtherDerived::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 > |
EIGEN_DEVICE_FUNC CwiseBinaryOp< internal::scalar_difference_op< Scalar, typename OtherDerived::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 EIGEN_DEVICE_FUNC CwiseBinaryOp< internal::scalar_product_op< Scalar >, const ExpressionTypeNestedCleaned, const typename ExtendedType< OtherDerived >::Type > EIGEN_DEVICE_FUNC | 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 > |
EIGEN_DEVICE_FUNC 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.
|
|
EIGEN_DEVICE_FUNC CwiseBinaryOp< internal::scalar_quotient_op< Scalar >, const ExpressionTypeNestedCleaned, const typename OppositeExtendedType< typename ReturnType< internal::member_norm, RealScalar >::Type >::Type > | normalized () const |
|
EIGEN_DEVICE_FUNC void | normalize () |
| Normalize in-place each row or columns of the referenced matrix. More...
|
|
EIGEN_DEVICE_FUNC void | reverseInPlace () |
| This is the "in place" version of VectorwiseOp::reverse: it reverses each column or row of *this . More...
|
|
EIGEN_DEVICE_FUNC HomogeneousReturnType | homogeneous () const |
|
template<typename OtherDerived > |
EIGEN_DEVICE_FUNC const CrossReturnType | cross (const MatrixBase< OtherDerived > &other) const |
|
EIGEN_DEVICE_FUNC const HNormalizedReturnType | hnormalized () const |
|
template<typename ExpressionType, int Direction>
class Eigen::VectorwiseOp< ExpressionType, Direction >
Pseudo expression providing partial reduction operations.
- Template 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