Eigen  3.2.7
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
VectorwiseOp.h
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2008-2010 Gael Guennebaud <[email protected]>
5 // Copyright (C) 2006-2008 Benoit Jacob <[email protected]>
6 //
7 // This Source Code Form is subject to the terms of the Mozilla
8 // Public License v. 2.0. If a copy of the MPL was not distributed
9 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 
11 #ifndef EIGEN_PARTIAL_REDUX_H
12 #define EIGEN_PARTIAL_REDUX_H
13 
14 namespace Eigen {
15 
32 template< typename MatrixType, typename MemberOp, int Direction>
33 class PartialReduxExpr;
34 
35 namespace internal {
36 template<typename MatrixType, typename MemberOp, int Direction>
37 struct traits<PartialReduxExpr<MatrixType, MemberOp, Direction> >
38  : traits<MatrixType>
39 {
40  typedef typename MemberOp::result_type Scalar;
41  typedef typename traits<MatrixType>::StorageKind StorageKind;
42  typedef typename traits<MatrixType>::XprKind XprKind;
43  typedef typename MatrixType::Scalar InputScalar;
44  typedef typename nested<MatrixType>::type MatrixTypeNested;
45  typedef typename remove_all<MatrixTypeNested>::type _MatrixTypeNested;
46  enum {
47  RowsAtCompileTime = Direction==Vertical ? 1 : MatrixType::RowsAtCompileTime,
48  ColsAtCompileTime = Direction==Horizontal ? 1 : MatrixType::ColsAtCompileTime,
49  MaxRowsAtCompileTime = Direction==Vertical ? 1 : MatrixType::MaxRowsAtCompileTime,
50  MaxColsAtCompileTime = Direction==Horizontal ? 1 : MatrixType::MaxColsAtCompileTime,
51  Flags0 = (unsigned int)_MatrixTypeNested::Flags & HereditaryBits,
52  Flags = (Flags0 & ~RowMajorBit) | (RowsAtCompileTime == 1 ? RowMajorBit : 0),
53  TraversalSize = Direction==Vertical ? MatrixType::RowsAtCompileTime : MatrixType::ColsAtCompileTime
54  };
55  #if EIGEN_GNUC_AT_LEAST(3,4)
56  typedef typename MemberOp::template Cost<InputScalar,int(TraversalSize)> CostOpType;
57  #else
58  typedef typename MemberOp::template Cost<InputScalar,TraversalSize> CostOpType;
59  #endif
60  enum {
61  CoeffReadCost = TraversalSize==Dynamic ? Dynamic
62  : TraversalSize * traits<_MatrixTypeNested>::CoeffReadCost + int(CostOpType::value)
63  };
64 };
65 }
66 
67 template< typename MatrixType, typename MemberOp, int Direction>
68 class PartialReduxExpr : internal::no_assignment_operator,
69  public internal::dense_xpr_base< PartialReduxExpr<MatrixType, MemberOp, Direction> >::type
70 {
71  public:
72 
73  typedef typename internal::dense_xpr_base<PartialReduxExpr>::type Base;
74  EIGEN_DENSE_PUBLIC_INTERFACE(PartialReduxExpr)
75  typedef typename internal::traits<PartialReduxExpr>::MatrixTypeNested MatrixTypeNested;
76  typedef typename internal::traits<PartialReduxExpr>::_MatrixTypeNested _MatrixTypeNested;
77 
78  PartialReduxExpr(const MatrixType& mat, const MemberOp& func = MemberOp())
79  : m_matrix(mat), m_functor(func) {}
80 
81  Index rows() const { return (Direction==Vertical ? 1 : m_matrix.rows()); }
82  Index cols() const { return (Direction==Horizontal ? 1 : m_matrix.cols()); }
83 
84  EIGEN_STRONG_INLINE const Scalar coeff(Index i, Index j) const
85  {
86  if (Direction==Vertical)
87  return m_functor(m_matrix.col(j));
88  else
89  return m_functor(m_matrix.row(i));
90  }
91 
92  const Scalar coeff(Index index) const
93  {
94  if (Direction==Vertical)
95  return m_functor(m_matrix.col(index));
96  else
97  return m_functor(m_matrix.row(index));
98  }
99 
100  protected:
101  MatrixTypeNested m_matrix;
102  const MemberOp m_functor;
103 };
104 
105 #define EIGEN_MEMBER_FUNCTOR(MEMBER,COST) \
106  template <typename ResultType> \
107  struct member_##MEMBER { \
108  EIGEN_EMPTY_STRUCT_CTOR(member_##MEMBER) \
109  typedef ResultType result_type; \
110  template<typename Scalar, int Size> struct Cost \
111  { enum { value = COST }; }; \
112  template<typename XprType> \
113  EIGEN_STRONG_INLINE ResultType operator()(const XprType& mat) const \
114  { return mat.MEMBER(); } \
115  }
116 
117 namespace internal {
118 
119 EIGEN_MEMBER_FUNCTOR(squaredNorm, Size * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::AddCost);
120 EIGEN_MEMBER_FUNCTOR(norm, (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::AddCost);
121 EIGEN_MEMBER_FUNCTOR(stableNorm, (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::AddCost);
122 EIGEN_MEMBER_FUNCTOR(blueNorm, (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::AddCost);
123 EIGEN_MEMBER_FUNCTOR(hypotNorm, (Size-1) * functor_traits<scalar_hypot_op<Scalar> >::Cost );
124 EIGEN_MEMBER_FUNCTOR(sum, (Size-1)*NumTraits<Scalar>::AddCost);
125 EIGEN_MEMBER_FUNCTOR(mean, (Size-1)*NumTraits<Scalar>::AddCost + NumTraits<Scalar>::MulCost);
126 EIGEN_MEMBER_FUNCTOR(minCoeff, (Size-1)*NumTraits<Scalar>::AddCost);
127 EIGEN_MEMBER_FUNCTOR(maxCoeff, (Size-1)*NumTraits<Scalar>::AddCost);
128 EIGEN_MEMBER_FUNCTOR(all, (Size-1)*NumTraits<Scalar>::AddCost);
129 EIGEN_MEMBER_FUNCTOR(any, (Size-1)*NumTraits<Scalar>::AddCost);
130 EIGEN_MEMBER_FUNCTOR(count, (Size-1)*NumTraits<Scalar>::AddCost);
131 EIGEN_MEMBER_FUNCTOR(prod, (Size-1)*NumTraits<Scalar>::MulCost);
132 
133 
134 template <typename BinaryOp, typename Scalar>
135 struct member_redux {
136  typedef typename result_of<
137  BinaryOp(Scalar)
138  >::type result_type;
139  template<typename _Scalar, int Size> struct Cost
140  { enum { value = (Size-1) * functor_traits<BinaryOp>::Cost }; };
141  member_redux(const BinaryOp func) : m_functor(func) {}
142  template<typename Derived>
143  inline result_type operator()(const DenseBase<Derived>& mat) const
144  { return mat.redux(m_functor); }
145  const BinaryOp m_functor;
146 };
147 }
148 
166 template<typename ExpressionType, int Direction> class VectorwiseOp
167 {
168  public:
169 
170  typedef typename ExpressionType::Scalar Scalar;
171  typedef typename ExpressionType::RealScalar RealScalar;
172  typedef typename ExpressionType::Index Index;
173  typedef typename internal::conditional<internal::must_nest_by_value<ExpressionType>::ret,
174  ExpressionType, ExpressionType&>::type ExpressionTypeNested;
175  typedef typename internal::remove_all<ExpressionTypeNested>::type ExpressionTypeNestedCleaned;
176 
177  template<template<typename _Scalar> class Functor,
178  typename Scalar=typename internal::traits<ExpressionType>::Scalar> struct ReturnType
179  {
180  typedef PartialReduxExpr<ExpressionType,
181  Functor<Scalar>,
182  Direction
183  > Type;
184  };
185 
186  template<typename BinaryOp> struct ReduxReturnType
187  {
188  typedef PartialReduxExpr<ExpressionType,
189  internal::member_redux<BinaryOp,typename internal::traits<ExpressionType>::Scalar>,
190  Direction
191  > Type;
192  };
193 
194  enum {
195  IsVertical = (Direction==Vertical) ? 1 : 0,
196  IsHorizontal = (Direction==Horizontal) ? 1 : 0
197  };
198 
199  protected:
200 
203  typedef typename internal::conditional<Direction==Vertical,
204  typename ExpressionType::ColXpr,
205  typename ExpressionType::RowXpr>::type SubVector;
206  SubVector subVector(Index i)
207  {
208  return SubVector(m_matrix.derived(),i);
209  }
210 
213  Index subVectors() const
214  { return Direction==Vertical?m_matrix.cols():m_matrix.rows(); }
215 
216  template<typename OtherDerived> struct ExtendedType {
217  typedef Replicate<OtherDerived,
218  Direction==Vertical ? 1 : ExpressionType::RowsAtCompileTime,
219  Direction==Horizontal ? 1 : ExpressionType::ColsAtCompileTime> Type;
220  };
221 
224  template<typename OtherDerived>
225  typename ExtendedType<OtherDerived>::Type
226  extendedTo(const DenseBase<OtherDerived>& other) const
227  {
228  EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(Direction==Vertical, OtherDerived::MaxColsAtCompileTime==1),
229  YOU_PASSED_A_ROW_VECTOR_BUT_A_COLUMN_VECTOR_WAS_EXPECTED)
230  EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(Direction==Horizontal, OtherDerived::MaxRowsAtCompileTime==1),
231  YOU_PASSED_A_COLUMN_VECTOR_BUT_A_ROW_VECTOR_WAS_EXPECTED)
232  return typename ExtendedType<OtherDerived>::Type
233  (other.derived(),
234  Direction==Vertical ? 1 : m_matrix.rows(),
235  Direction==Horizontal ? 1 : m_matrix.cols());
236  }
237 
238  template<typename OtherDerived> struct OppositeExtendedType {
239  typedef Replicate<OtherDerived,
240  Direction==Horizontal ? 1 : ExpressionType::RowsAtCompileTime,
241  Direction==Vertical ? 1 : ExpressionType::ColsAtCompileTime> Type;
242  };
243 
246  template<typename OtherDerived>
247  typename OppositeExtendedType<OtherDerived>::Type
248  extendedToOpposite(const DenseBase<OtherDerived>& other) const
249  {
250  EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(Direction==Horizontal, OtherDerived::MaxColsAtCompileTime==1),
251  YOU_PASSED_A_ROW_VECTOR_BUT_A_COLUMN_VECTOR_WAS_EXPECTED)
252  EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(Direction==Vertical, OtherDerived::MaxRowsAtCompileTime==1),
253  YOU_PASSED_A_COLUMN_VECTOR_BUT_A_ROW_VECTOR_WAS_EXPECTED)
254  return typename OppositeExtendedType<OtherDerived>::Type
255  (other.derived(),
256  Direction==Horizontal ? 1 : m_matrix.rows(),
257  Direction==Vertical ? 1 : m_matrix.cols());
258  }
259 
260  public:
261 
262  inline VectorwiseOp(ExpressionType& matrix) : m_matrix(matrix) {}
263 
265  inline const ExpressionType& _expression() const { return m_matrix; }
266 
274  template<typename BinaryOp>
275  const typename ReduxReturnType<BinaryOp>::Type
276  redux(const BinaryOp& func = BinaryOp()) const
277  { return typename ReduxReturnType<BinaryOp>::Type(_expression(), func); }
278 
289  { return _expression(); }
290 
301  { return _expression(); }
302 
311  { return _expression(); }
312 
321  { return _expression(); }
322 
323 
330  { return _expression(); }
331 
332 
339  { return _expression(); }
340 
341 
348  { return _expression(); }
349 
358  { return _expression(); }
359 
365  { return _expression(); }
366 
372  { return _expression(); }
373 
379  { return _expression(); }
380 
389  { return _expression(); }
390 
399  { return _expression(); }
400 
401 
410  { return Reverse<ExpressionType, Direction>( _expression() ); }
411 
413  const ReplicateReturnType replicate(Index factor) const;
414 
423  // NOTE implemented here because of sunstudio's compilation errors
425  replicate(Index factor = Factor) const
426  {
428  (_expression(),Direction==Vertical?factor:1,Direction==Horizontal?factor:1);
429  }
430 
432 
434  template<typename OtherDerived>
435  ExpressionType& operator=(const DenseBase<OtherDerived>& other)
436  {
437  EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived)
438  EIGEN_STATIC_ASSERT_SAME_XPR_KIND(ExpressionType, OtherDerived)
439  //eigen_assert((m_matrix.isNull()) == (other.isNull())); FIXME
440  return const_cast<ExpressionType&>(m_matrix = extendedTo(other.derived()));
441  }
442 
444  template<typename OtherDerived>
445  ExpressionType& operator+=(const DenseBase<OtherDerived>& other)
446  {
447  EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived)
448  EIGEN_STATIC_ASSERT_SAME_XPR_KIND(ExpressionType, OtherDerived)
449  return const_cast<ExpressionType&>(m_matrix += extendedTo(other.derived()));
450  }
451 
453  template<typename OtherDerived>
454  ExpressionType& operator-=(const DenseBase<OtherDerived>& other)
455  {
456  EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived)
457  EIGEN_STATIC_ASSERT_SAME_XPR_KIND(ExpressionType, OtherDerived)
458  return const_cast<ExpressionType&>(m_matrix -= extendedTo(other.derived()));
459  }
460 
462  template<typename OtherDerived>
463  ExpressionType& operator*=(const DenseBase<OtherDerived>& other)
464  {
465  EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived)
466  EIGEN_STATIC_ASSERT_ARRAYXPR(ExpressionType)
467  EIGEN_STATIC_ASSERT_SAME_XPR_KIND(ExpressionType, OtherDerived)
468  m_matrix *= extendedTo(other.derived());
469  return const_cast<ExpressionType&>(m_matrix);
470  }
471 
473  template<typename OtherDerived>
474  ExpressionType& operator/=(const DenseBase<OtherDerived>& other)
475  {
476  EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived)
477  EIGEN_STATIC_ASSERT_ARRAYXPR(ExpressionType)
478  EIGEN_STATIC_ASSERT_SAME_XPR_KIND(ExpressionType, OtherDerived)
479  m_matrix /= extendedTo(other.derived());
480  return const_cast<ExpressionType&>(m_matrix);
481  }
482 
484  template<typename OtherDerived> EIGEN_STRONG_INLINE
486  const ExpressionTypeNestedCleaned,
487  const typename ExtendedType<OtherDerived>::Type>
488  operator+(const DenseBase<OtherDerived>& other) const
489  {
490  EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived)
491  EIGEN_STATIC_ASSERT_SAME_XPR_KIND(ExpressionType, OtherDerived)
492  return m_matrix + extendedTo(other.derived());
493  }
494 
496  template<typename OtherDerived>
498  const ExpressionTypeNestedCleaned,
499  const typename ExtendedType<OtherDerived>::Type>
500  operator-(const DenseBase<OtherDerived>& other) const
501  {
502  EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived)
503  EIGEN_STATIC_ASSERT_SAME_XPR_KIND(ExpressionType, OtherDerived)
504  return m_matrix - extendedTo(other.derived());
505  }
506 
509  template<typename OtherDerived> EIGEN_STRONG_INLINE
511  const ExpressionTypeNestedCleaned,
512  const typename ExtendedType<OtherDerived>::Type>
513  operator*(const DenseBase<OtherDerived>& other) const
514  {
515  EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived)
516  EIGEN_STATIC_ASSERT_ARRAYXPR(ExpressionType)
517  EIGEN_STATIC_ASSERT_SAME_XPR_KIND(ExpressionType, OtherDerived)
518  return m_matrix * extendedTo(other.derived());
519  }
520 
523  template<typename OtherDerived>
525  const ExpressionTypeNestedCleaned,
526  const typename ExtendedType<OtherDerived>::Type>
527  operator/(const DenseBase<OtherDerived>& other) const
528  {
529  EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived)
530  EIGEN_STATIC_ASSERT_ARRAYXPR(ExpressionType)
531  EIGEN_STATIC_ASSERT_SAME_XPR_KIND(ExpressionType, OtherDerived)
532  return m_matrix / extendedTo(other.derived());
533  }
534 
540  const ExpressionTypeNestedCleaned,
541  const typename OppositeExtendedType<typename ReturnType<internal::member_norm,RealScalar>::Type>::Type>
542  normalized() const { return m_matrix.cwiseQuotient(extendedToOpposite(this->norm())); }
543 
544 
548  void normalize() {
549  m_matrix = this->normalized();
550  }
551 
553 
554  #if EIGEN2_SUPPORT_STAGE > STAGE20_RESOLVE_API_CONFLICTS
555  Homogeneous<ExpressionType,Direction> homogeneous() const;
556  #endif
557 
558  typedef typename ExpressionType::PlainObject CrossReturnType;
559  template<typename OtherDerived>
560  const CrossReturnType cross(const MatrixBase<OtherDerived>& other) const;
561 
562  enum {
563  HNormalized_Size = Direction==Vertical ? internal::traits<ExpressionType>::RowsAtCompileTime
564  : internal::traits<ExpressionType>::ColsAtCompileTime,
565  HNormalized_SizeMinusOne = HNormalized_Size==Dynamic ? Dynamic : HNormalized_Size-1
566  };
567  typedef Block<const ExpressionType,
568  Direction==Vertical ? int(HNormalized_SizeMinusOne)
569  : int(internal::traits<ExpressionType>::RowsAtCompileTime),
570  Direction==Horizontal ? int(HNormalized_SizeMinusOne)
571  : int(internal::traits<ExpressionType>::ColsAtCompileTime)>
572  HNormalized_Block;
573  typedef Block<const ExpressionType,
574  Direction==Vertical ? 1 : int(internal::traits<ExpressionType>::RowsAtCompileTime),
575  Direction==Horizontal ? 1 : int(internal::traits<ExpressionType>::ColsAtCompileTime)>
576  HNormalized_Factors;
577  typedef CwiseBinaryOp<internal::scalar_quotient_op<typename internal::traits<ExpressionType>::Scalar>,
578  const HNormalized_Block,
579  const Replicate<HNormalized_Factors,
580  Direction==Vertical ? HNormalized_SizeMinusOne : 1,
581  Direction==Horizontal ? HNormalized_SizeMinusOne : 1> >
582  HNormalizedReturnType;
583 
584  const HNormalizedReturnType hnormalized() const;
585 
586  protected:
587  ExpressionTypeNested m_matrix;
588 };
589 
597 template<typename Derived>
598 inline const typename DenseBase<Derived>::ConstColwiseReturnType
600 {
601  return derived();
602 }
603 
608 template<typename Derived>
611 {
612  return derived();
613 }
614 
622 template<typename Derived>
623 inline const typename DenseBase<Derived>::ConstRowwiseReturnType
625 {
626  return derived();
627 }
628 
633 template<typename Derived>
636 {
637  return derived();
638 }
639 
640 } // end namespace Eigen
641 
642 #endif // EIGEN_PARTIAL_REDUX_H
const ReturnType< internal::member_hypotNorm, RealScalar >::Type hypotNorm() const
Definition: VectorwiseOp.h:347
const ReturnType< internal::member_prod >::Type prod() const
Definition: VectorwiseOp.h:398
const ReturnType< internal::member_blueNorm, RealScalar >::Type blueNorm() const
Definition: VectorwiseOp.h:329
void normalize()
Definition: VectorwiseOp.h:548
CwiseBinaryOp< internal::scalar_product_op< Scalar >, const ExpressionTypeNestedCleaned, const typename ExtendedType< OtherDerived >::Type > operator*(const DenseBase< OtherDerived > &other) const
Definition: VectorwiseOp.h:513
const ReturnType< internal::member_mean >::Type mean() const
Definition: VectorwiseOp.h:364
Generic expression of a partially reduxed matrix.
Definition: ForwardDeclarations.h:211
const ReturnType< internal::member_any >::Type any() const
Definition: VectorwiseOp.h:378
const int Dynamic
Definition: Constants.h:21
Pseudo expression providing partial reduction operations.
Definition: ForwardDeclarations.h:212
const ReturnType< internal::member_norm, RealScalar >::Type norm() const
Definition: VectorwiseOp.h:320
ExpressionType & operator*=(const DenseBase< OtherDerived > &other)
Definition: VectorwiseOp.h:463
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:41
const Replicate< ExpressionType,(IsVertical?Factor:1),(IsHorizontal?Factor:1)> replicate(Index factor=Factor) const
Definition: VectorwiseOp.h:425
const ReturnType< internal::member_sum >::Type sum() const
Definition: VectorwiseOp.h:357
const Reverse< ExpressionType, Direction > reverse() const
Definition: VectorwiseOp.h:409
CwiseBinaryOp< internal::scalar_quotient_op< Scalar >, const ExpressionTypeNestedCleaned, const typename ExtendedType< OtherDerived >::Type > operator/(const DenseBase< OtherDerived > &other) const
Definition: VectorwiseOp.h:527
Definition: Constants.h:212
const ReturnType< internal::member_maxCoeff >::Type maxCoeff() const
Definition: VectorwiseOp.h:300
const ReturnType< internal::member_squaredNorm, RealScalar >::Type squaredNorm() const
Definition: VectorwiseOp.h:310
CwiseBinaryOp< internal::scalar_difference_op< Scalar >, const ExpressionTypeNestedCleaned, const typename ExtendedType< OtherDerived >::Type > operator-(const DenseBase< OtherDerived > &other) const
Definition: VectorwiseOp.h:500
Generic expression where a coefficient-wise binary operator is applied to two expressions.
Definition: CwiseBinaryOp.h:107
const ReturnType< internal::member_stableNorm, RealScalar >::Type stableNorm() const
Definition: VectorwiseOp.h:338
ExpressionType & operator-=(const DenseBase< OtherDerived > &other)
Definition: VectorwiseOp.h:454
const ReduxReturnType< BinaryOp >::Type redux(const BinaryOp &func=BinaryOp()) const
Definition: VectorwiseOp.h:276
ExpressionType & operator+=(const DenseBase< OtherDerived > &other)
Definition: VectorwiseOp.h:445
Expression of the multiple replication of a matrix or vector.
Definition: Replicate.h:62
const ReturnType< internal::member_all >::Type all() const
Definition: VectorwiseOp.h:371
Definition: Constants.h:209
CwiseBinaryOp< internal::scalar_sum_op< Scalar >, const ExpressionTypeNestedCleaned, const typename ExtendedType< OtherDerived >::Type > operator+(const DenseBase< OtherDerived > &other) const
Definition: VectorwiseOp.h:488
ExpressionType & operator/=(const DenseBase< OtherDerived > &other)
Definition: VectorwiseOp.h:474
const PartialReduxExpr< ExpressionType, internal::member_count< Index >, Direction > count() const
Definition: VectorwiseOp.h:388
const unsigned int RowMajorBit
Definition: Constants.h:53
const ReturnType< internal::member_minCoeff >::Type minCoeff() const
Definition: VectorwiseOp.h:288
Expression of the reverse of a vector or matrix.
Definition: Reverse.h:70
ConstColwiseReturnType colwise() const
Definition: VectorwiseOp.h:599
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48
ConstRowwiseReturnType rowwise() const
Definition: VectorwiseOp.h:624
CwiseBinaryOp< internal::scalar_quotient_op< Scalar >, const ExpressionTypeNestedCleaned, const typename OppositeExtendedType< typename ReturnType< internal::member_norm, RealScalar >::Type >::Type > normalized() const
Definition: VectorwiseOp.h:542
Expression of one (or a set of) homogeneous vector(s)
Definition: ForwardDeclarations.h:268
ExpressionType & operator=(const DenseBase< OtherDerived > &other)
Definition: VectorwiseOp.h:435