MatrixBase.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2006-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
5 // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
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_MATRIXBASE_H
12 #define EIGEN_MATRIXBASE_H
13 
14 namespace Eigen {
15 
48 template<typename Derived> class MatrixBase
49  : public DenseBase<Derived>
50 {
51  public:
52 #ifndef EIGEN_PARSED_BY_DOXYGEN
59 
68  using Base::Flags;
69 
70  using Base::derived;
71  using Base::const_cast_derived;
72  using Base::rows;
73  using Base::cols;
74  using Base::size;
75  using Base::coeff;
76  using Base::coeffRef;
77  using Base::lazyAssign;
78  using Base::eval;
79  using Base::operator+=;
80  using Base::operator-=;
81  using Base::operator*=;
82  using Base::operator/=;
83 
86  typedef typename Base::RowXpr RowXpr;
87  typedef typename Base::ColXpr ColXpr;
88 #endif // not EIGEN_PARSED_BY_DOXYGEN
89 
90 
91 
92 #ifndef EIGEN_PARSED_BY_DOXYGEN
93 
96 #endif // not EIGEN_PARSED_BY_DOXYGEN
97 
100  EIGEN_DEVICE_FUNC
101  inline Index diagonalSize() const { return (numext::mini)(rows(),cols()); }
102 
103  typedef typename Base::PlainObject PlainObject;
104 
105 #ifndef EIGEN_PARSED_BY_DOXYGEN
106 
110  CwiseUnaryOp<internal::scalar_conjugate_op<Scalar>, ConstTransposeReturnType>,
111  ConstTransposeReturnType
120  internal::traits<Derived>::ColsAtCompileTime> BasisReturnType;
121 #endif // not EIGEN_PARSED_BY_DOXYGEN
123 #define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::MatrixBase
124 #define EIGEN_DOC_UNARY_ADDONS(X,Y)
125 # include "../plugins/CommonCwiseUnaryOps.h"
126 # include "../plugins/CommonCwiseBinaryOps.h"
127 # include "../plugins/MatrixCwiseUnaryOps.h"
128 # include "../plugins/MatrixCwiseBinaryOps.h"
129 # ifdef EIGEN_MATRIXBASE_PLUGIN
130 # include EIGEN_MATRIXBASE_PLUGIN
131 # endif
132 #undef EIGEN_CURRENT_STORAGE_BASE_CLASS
133 #undef EIGEN_DOC_UNARY_ADDONS
134 
138  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
139  Derived& operator=(const MatrixBase& other);
140 
141  // We cannot inherit here via Base::operator= since it is causing
142  // trouble with MSVC.
144  template <typename OtherDerived>
145  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
146  Derived& operator=(const DenseBase<OtherDerived>& other);
147 
148  template <typename OtherDerived>
149  EIGEN_DEVICE_FUNC
150  Derived& operator=(const EigenBase<OtherDerived>& other);
151 
152  template<typename OtherDerived>
153  EIGEN_DEVICE_FUNC
154  Derived& operator=(const ReturnByValue<OtherDerived>& other);
156  template<typename OtherDerived>
157  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
158  Derived& operator+=(const MatrixBase<OtherDerived>& other);
159  template<typename OtherDerived>
160  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
161  Derived& operator-=(const MatrixBase<OtherDerived>& other);
162 
163 #ifdef __CUDACC__
164  template<typename OtherDerived>
165  EIGEN_DEVICE_FUNC
167  operator*(const MatrixBase<OtherDerived> &other) const
168  { return this->lazyProduct(other); }
169 #else
170 
171  template<typename OtherDerived>
173  operator*(const MatrixBase<OtherDerived> &other) const;
174 
175 #endif
176 
177  template<typename OtherDerived>
178  EIGEN_DEVICE_FUNC
180  lazyProduct(const MatrixBase<OtherDerived> &other) const;
181 
182  template<typename OtherDerived>
183  Derived& operator*=(const EigenBase<OtherDerived>& other);
184 
185  template<typename OtherDerived>
186  void applyOnTheLeft(const EigenBase<OtherDerived>& other);
187 
188  template<typename OtherDerived>
189  void applyOnTheRight(const EigenBase<OtherDerived>& other);
190 
191  template<typename DiagonalDerived>
192  EIGEN_DEVICE_FUNC
195 
196  template<typename OtherDerived>
197  EIGEN_DEVICE_FUNC
199  dot(const MatrixBase<OtherDerived>& other) const;
200 
201  EIGEN_DEVICE_FUNC RealScalar squaredNorm() const;
202  EIGEN_DEVICE_FUNC RealScalar norm() const;
203  RealScalar stableNorm() const;
204  RealScalar blueNorm() const;
205  RealScalar hypotNorm() const;
206  EIGEN_DEVICE_FUNC const PlainObject normalized() const;
207  EIGEN_DEVICE_FUNC const PlainObject stableNormalized() const;
208  EIGEN_DEVICE_FUNC void normalize();
209  EIGEN_DEVICE_FUNC void stableNormalize();
210 
211  EIGEN_DEVICE_FUNC const AdjointReturnType adjoint() const;
212  EIGEN_DEVICE_FUNC void adjointInPlace();
213 
215  EIGEN_DEVICE_FUNC
216  DiagonalReturnType diagonal();
217 
219  EIGEN_DEVICE_FUNC
220  ConstDiagonalReturnType diagonal() const;
221 
222  template<int Index> struct DiagonalIndexReturnType { typedef Diagonal<Derived,Index> Type; };
223  template<int Index> struct ConstDiagonalIndexReturnType { typedef const Diagonal<const Derived,Index> Type; };
224 
225  template<int Index>
226  EIGEN_DEVICE_FUNC
228 
229  template<int Index>
230  EIGEN_DEVICE_FUNC
232 
235 
236  EIGEN_DEVICE_FUNC
237  DiagonalDynamicIndexReturnType diagonal(Index index);
238  EIGEN_DEVICE_FUNC
239  ConstDiagonalDynamicIndexReturnType diagonal(Index index) const;
240 
241  template<unsigned int Mode> struct TriangularViewReturnType { typedef TriangularView<Derived, Mode> Type; };
242  template<unsigned int Mode> struct ConstTriangularViewReturnType { typedef const TriangularView<const Derived, Mode> Type; };
243 
244  template<unsigned int Mode>
245  EIGEN_DEVICE_FUNC
247  template<unsigned int Mode>
248  EIGEN_DEVICE_FUNC
250 
251  template<unsigned int UpLo> struct SelfAdjointViewReturnType { typedef SelfAdjointView<Derived, UpLo> Type; };
252  template<unsigned int UpLo> struct ConstSelfAdjointViewReturnType { typedef const SelfAdjointView<const Derived, UpLo> Type; };
253 
254  template<unsigned int UpLo>
255  EIGEN_DEVICE_FUNC
257  template<unsigned int UpLo>
258  EIGEN_DEVICE_FUNC
260 
261  const SparseView<Derived> sparseView(const Scalar& m_reference = Scalar(0),
262  const typename NumTraits<Scalar>::Real& m_epsilon = NumTraits<Scalar>::dummy_precision()) const;
263  EIGEN_DEVICE_FUNC static const IdentityReturnType Identity();
264  EIGEN_DEVICE_FUNC static const IdentityReturnType Identity(Index rows, Index cols);
265  EIGEN_DEVICE_FUNC static const BasisReturnType Unit(Index size, Index i);
266  EIGEN_DEVICE_FUNC static const BasisReturnType Unit(Index i);
267  EIGEN_DEVICE_FUNC static const BasisReturnType UnitX();
268  EIGEN_DEVICE_FUNC static const BasisReturnType UnitY();
269  EIGEN_DEVICE_FUNC static const BasisReturnType UnitZ();
270  EIGEN_DEVICE_FUNC static const BasisReturnType UnitW();
271 
272  EIGEN_DEVICE_FUNC
275 
276  EIGEN_DEVICE_FUNC
277  Derived& setIdentity();
278  EIGEN_DEVICE_FUNC
279  Derived& setIdentity(Index rows, Index cols);
280 
281  bool isIdentity(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
282  bool isDiagonal(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
283 
284  bool isUpperTriangular(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
285  bool isLowerTriangular(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
286 
287  template<typename OtherDerived>
288  bool isOrthogonal(const MatrixBase<OtherDerived>& other,
289  const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
290  bool isUnitary(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
291 
296  template<typename OtherDerived>
297  EIGEN_DEVICE_FUNC inline bool operator==(const MatrixBase<OtherDerived>& other) const
298  { return cwiseEqual(other).all(); }
299 
304  template<typename OtherDerived>
305  EIGEN_DEVICE_FUNC inline bool operator!=(const MatrixBase<OtherDerived>& other) const
306  { return cwiseNotEqual(other).any(); }
307 
309 
310  // TODO forceAlignedAccess is temporarily disabled
311  // Need to find a nicer workaround.
312  inline const Derived& forceAlignedAccess() const { return derived(); }
313  inline Derived& forceAlignedAccess() { return derived(); }
314  template<bool Enable> inline const Derived& forceAlignedAccessIf() const { return derived(); }
315  template<bool Enable> inline Derived& forceAlignedAccessIf() { return derived(); }
316 
317  EIGEN_DEVICE_FUNC Scalar trace() const;
318 
319  template<int p> EIGEN_DEVICE_FUNC RealScalar lpNorm() const;
320 
321  EIGEN_DEVICE_FUNC MatrixBase<Derived>& matrix() { return *this; }
322  EIGEN_DEVICE_FUNC const MatrixBase<Derived>& matrix() const { return *this; }
323 
326  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper<Derived> array() { return ArrayWrapper<Derived>(derived()); }
329  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArrayWrapper<const Derived> array() const { return ArrayWrapper<const Derived>(derived()); }
330 
332 
333  inline const FullPivLU<PlainObject> fullPivLu() const;
334  inline const PartialPivLU<PlainObject> partialPivLu() const;
335 
336  inline const PartialPivLU<PlainObject> lu() const;
337 
338  inline const Inverse<Derived> inverse() const;
339 
340  template<typename ResultType>
341  inline void computeInverseAndDetWithCheck(
342  ResultType& inverse,
343  typename ResultType::Scalar& determinant,
344  bool& invertible,
345  const RealScalar& absDeterminantThreshold = NumTraits<Scalar>::dummy_precision()
346  ) const;
347  template<typename ResultType>
348  inline void computeInverseWithCheck(
349  ResultType& inverse,
350  bool& invertible,
351  const RealScalar& absDeterminantThreshold = NumTraits<Scalar>::dummy_precision()
352  ) const;
353  Scalar determinant() const;
354 
356 
357  inline const LLT<PlainObject> llt() const;
358  inline const LDLT<PlainObject> ldlt() const;
359 
361 
362  inline const HouseholderQR<PlainObject> householderQr() const;
366 
368 
369  inline EigenvaluesReturnType eigenvalues() const;
370  inline RealScalar operatorNorm() const;
371 
373 
374  inline JacobiSVD<PlainObject> jacobiSvd(unsigned int computationOptions = 0) const;
375  inline BDCSVD<PlainObject> bdcSvd(unsigned int computationOptions = 0) const;
376 
378 
379  #ifndef EIGEN_PARSED_BY_DOXYGEN
380  template<typename OtherDerived> struct cross_product_return_type {
382  typedef typename ScalarBinaryOpTraits<typename internal::traits<Derived>::Scalar,typename internal::traits<OtherDerived>::Scalar>::ReturnType Scalar;
384  };
385  #endif // EIGEN_PARSED_BY_DOXYGEN
386  template<typename OtherDerived>
387  EIGEN_DEVICE_FUNC
388 #ifndef EIGEN_PARSED_BY_DOXYGEN
390 #else
391  inline PlainObject
392 #endif
393  cross(const MatrixBase<OtherDerived>& other) const;
394 
395  template<typename OtherDerived>
396  EIGEN_DEVICE_FUNC
397  inline PlainObject cross3(const MatrixBase<OtherDerived>& other) const;
398 
399  EIGEN_DEVICE_FUNC
400  inline PlainObject unitOrthogonal(void) const;
401 
402  EIGEN_DEVICE_FUNC
403  inline Matrix<Scalar,3,1> eulerAngles(Index a0, Index a1, Index a2) const;
404 
405  // put this as separate enum value to work around possible GCC 4.3 bug (?)
407  : ColsAtCompileTime==1 ? Vertical : Horizontal };
409  EIGEN_DEVICE_FUNC
410  inline HomogeneousReturnType homogeneous() const;
411 
412  enum {
414  };
415  typedef Block<const Derived,
416  internal::traits<Derived>::ColsAtCompileTime==1 ? SizeMinusOne : 1,
417  internal::traits<Derived>::ColsAtCompileTime==1 ? 1 : SizeMinusOne> ConstStartMinusOne;
418  typedef EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(ConstStartMinusOne,Scalar,quotient) HNormalizedReturnType;
419  EIGEN_DEVICE_FUNC
420  inline const HNormalizedReturnType hnormalized() const;
421 
423 
424  void makeHouseholderInPlace(Scalar& tau, RealScalar& beta);
425  template<typename EssentialPart>
426  void makeHouseholder(EssentialPart& essential,
427  Scalar& tau, RealScalar& beta) const;
428  template<typename EssentialPart>
429  void applyHouseholderOnTheLeft(const EssentialPart& essential,
430  const Scalar& tau,
431  Scalar* workspace);
432  template<typename EssentialPart>
433  void applyHouseholderOnTheRight(const EssentialPart& essential,
434  const Scalar& tau,
435  Scalar* workspace);
436 
438 
439  template<typename OtherScalar>
440  void applyOnTheLeft(Index p, Index q, const JacobiRotation<OtherScalar>& j);
441  template<typename OtherScalar>
442  void applyOnTheRight(Index p, Index q, const JacobiRotation<OtherScalar>& j);
443 
445 
446  template<typename OtherDerived>
447  EIGEN_STRONG_INLINE const typename SparseMatrixBase<OtherDerived>::template CwiseProductDenseReturnType<Derived>::Type
448  cwiseProduct(const SparseMatrixBase<OtherDerived> &other) const
449  {
450  return other.cwiseProduct(derived());
451  }
452 
454 
457  const MatrixFunctionReturnValue<Derived> matrixFunction(StemFunction f) const;
464  const MatrixPowerReturnValue<Derived> pow(const RealScalar& p) const;
465  const MatrixComplexPowerReturnValue<Derived> pow(const std::complex<RealScalar>& p) const;
466 
467  protected:
468  EIGEN_DEVICE_FUNC MatrixBase() : Base() {}
469 
470  private:
471  EIGEN_DEVICE_FUNC explicit MatrixBase(int);
472  EIGEN_DEVICE_FUNC MatrixBase(int,int);
473  template<typename OtherDerived> EIGEN_DEVICE_FUNC explicit MatrixBase(const MatrixBase<OtherDerived>&);
474  protected:
475  // mixing arrays and matrices is not legal
476  template<typename OtherDerived> Derived& operator+=(const ArrayBase<OtherDerived>& )
477  {EIGEN_STATIC_ASSERT(std::ptrdiff_t(sizeof(typename OtherDerived::Scalar))==-1,YOU_CANNOT_MIX_ARRAYS_AND_MATRICES); return *this;}
478  // mixing arrays and matrices is not legal
479  template<typename OtherDerived> Derived& operator-=(const ArrayBase<OtherDerived>& )
480  {EIGEN_STATIC_ASSERT(std::ptrdiff_t(sizeof(typename OtherDerived::Scalar))==-1,YOU_CANNOT_MIX_ARRAYS_AND_MATRICES); return *this;}
481 };
482 
483 
484 /***************************************************************************
485 * Implementation of matrix base methods
486 ***************************************************************************/
487 
495 template<typename Derived>
496 template<typename OtherDerived>
497 inline Derived&
499 {
500  other.derived().applyThisOnTheRight(derived());
501  return derived();
502 }
503 
509 template<typename Derived>
510 template<typename OtherDerived>
512 {
513  other.derived().applyThisOnTheRight(derived());
514 }
515 
521 template<typename Derived>
522 template<typename OtherDerived>
524 {
525  other.derived().applyThisOnTheLeft(derived());
526 }
527 
528 } // end namespace Eigen
529 
530 #endif // EIGEN_MATRIXBASE_H
static EIGEN_DEVICE_FUNC const IdentityReturnType Identity()
EIGEN_DEVICE_FUNC ScalarBinaryOpTraits< typename internal::traits< Derived >::Scalar, typename internal::traits< OtherDerived >::Scalar >::ReturnType dot(const MatrixBase< OtherDerived > &other) const
Definition: Dot.h:69
Generic expression of a matrix where all coefficients are defined by a functor.
Robust Cholesky decomposition of a matrix with pivoting.
Definition: LDLT.h:50
static EIGEN_DEVICE_FUNC const BasisReturnType Unit(Index size, Index i)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator+=(const MatrixBase< OtherDerived > &other)
#define EIGEN_STRONG_INLINE
Definition: Macros.h:493
static EIGEN_DEVICE_FUNC const BasisReturnType UnitY()
Scalar determinant() const
Definition: Determinant.h:92
const LDLT< PlainObject > ldlt() const
Definition: LDLT.h:662
EIGEN_DEVICE_FUNC const CwiseBinaryOp< std::not_equal_to< Scalar >, const Derived, const OtherDerived > cwiseNotEqual(const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const
Definition: MatrixBase.h:64
Matrix< Scalar, MatrixBase::RowsAtCompileTime, MatrixBase::ColsAtCompileTime > type
Definition: MatrixBase.h:383
EIGEN_DEVICE_FUNC Index diagonalSize() const
Definition: MatrixBase.h:101
Expression of the product of two arbitrary matrices or vectors.
Definition: Product.h:71
Expression of a mathematical vector or matrix as an array object.
Definition: ArrayWrapper.h:42
Householder rank-revealing QR decomposition of a matrix with full pivoting.
Base::CoeffReturnType CoeffReturnType
Definition: DenseBase.h:96
CwiseNullaryOp< internal::scalar_identity_op< Scalar >, PlainObject > IdentityReturnType
Definition: MatrixBase.h:116
void applyOnTheLeft(const EigenBase< OtherDerived > &other)
Definition: MatrixBase.h:523
Pseudo expression providing an operator = assuming no aliasing.
Definition: NoAlias.h:31
EIGEN_DEVICE_FUNC Scalar trace() const
Definition: Redux.h:498
internal::stem_function< Scalar >::type StemFunction
Definition: MatrixBase.h:455
Diagonal< Derived, Index > Type
Definition: MatrixBase.h:222
ScalarBinaryOpTraits< typename internal::traits< Derived >::Scalar, typename internal::traits< OtherDerived >::Scalar >::ReturnType Scalar
Definition: MatrixBase.h:382
SelfAdjointView< Derived, UpLo > Type
Definition: MatrixBase.h:251
Proxy for the matrix square root of some matrix (expression).
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator-=(const MatrixBase< OtherDerived > &other)
MatrixBase StorageBaseType
Definition: MatrixBase.h:53
internal::add_const< Transpose< const Derived > >::type ConstTransposeReturnType
Definition: DenseBase.h:322
static int f(const TensorMap< Tensor< int, 3 > > &tensor)
RealScalar operatorNorm() const
Computes the L2 operator norm.
bool isLowerTriangular(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
void applyOnTheRight(const EigenBase< OtherDerived > &other)
Definition: MatrixBase.h:511
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArrayWrapper< const Derived > array() const
Definition: MatrixBase.h:329
LU decomposition of a matrix with partial pivoting, and related features.
const MatrixLogarithmReturnValue< Derived > log() const
Definition: LDLT.h:16
Block< const Derived, internal::traits< Derived >::ColsAtCompileTime==1?SizeMinusOne:1, internal::traits< Derived >::ColsAtCompileTime==1?1:SizeMinusOne > ConstStartMinusOne
Definition: MatrixBase.h:417
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
Rotation given by a cosine-sine pair.
EIGEN_DEVICE_FUNC MatrixBase< Derived > & matrix()
Definition: MatrixBase.h:321
const Derived & forceAlignedAccess() const
Definition: MatrixBase.h:312
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
Definition: NumTraits.h:150
void makeHouseholder(EssentialPart &essential, Scalar &tau, RealScalar &beta) const
Definition: Householder.h:65
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:122
EIGEN_DEVICE_FUNC const PlainObject stableNormalized() const
Definition: Dot.h:164
EIGEN_DEVICE_FUNC HomogeneousReturnType homogeneous() const
Definition: Homogeneous.h:130
EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
static EIGEN_DEVICE_FUNC const BasisReturnType UnitW()
Base::ConstTransposeReturnType ConstTransposeReturnType
Definition: MatrixBase.h:85
internal::traits< Derived >::Scalar Scalar
Definition: MatrixBase.h:56
static EIGEN_DEVICE_FUNC const BasisReturnType UnitZ()
Complete orthogonal decomposition (COD) of a matrix.
const unsigned int RowMajorBit
Definition: Constants.h:61
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:41
const MatrixFunctionReturnValue< Derived > sinh() const
EIGEN_DEVICE_FUNC SelfAdjointViewReturnType< UpLo >::Type selfadjointView()
const SparseView< Derived > sparseView(const Scalar &m_reference=Scalar(0), const typename NumTraits< Scalar >::Real &m_epsilon=NumTraits< Scalar >::dummy_precision()) const
Definition: SparseView.h:225
const TriangularView< const Derived, Mode > Type
Definition: MatrixBase.h:242
Proxy for the matrix function of some matrix (expression).
Proxy for the matrix power of some matrix (expression).
Block< Derived, internal::traits< Derived >::RowsAtCompileTime, 1,!IsRowMajor > ColXpr
Definition: DenseBase.h:15
internal::packet_traits< Scalar >::type PacketScalar
Definition: MatrixBase.h:57
Base::ColXpr ColXpr
Definition: MatrixBase.h:87
const PartialPivLU< PlainObject > partialPivLu() const
Definition: PartialPivLU.h:589
BDCSVD< PlainObject > bdcSvd(unsigned int computationOptions=0) const
Definition: BDCSVD.h:1223
const MatrixFunctionReturnValue< Derived > cos() const
void applyHouseholderOnTheLeft(const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
Definition: Householder.h:113
EIGEN_DEVICE_FUNC void normalize()
Definition: Dot.h:142
const MatrixExponentialReturnValue< Derived > exp() const
Expression of the inverse of another expression.
Definition: Inverse.h:43
EIGEN_DEVICE_FUNC const HNormalizedReturnType hnormalized() const
homogeneous normalization
Definition: Homogeneous.h:172
Base::RowXpr RowXpr
Definition: MatrixBase.h:86
EIGEN_DEVICE_FUNC void stableNormalize()
Definition: Dot.h:188
static EIGEN_DEVICE_FUNC const BasisReturnType UnitX()
Base class of any sparse matrices or sparse expressions.
const MatrixPowerReturnValue< Derived > pow(const RealScalar &p) const
Definition: MatrixPower.h:700
RealScalar blueNorm() const
Definition: StableNorm.h:202
CwiseNullaryOp< internal::scalar_constant_op< Scalar >, PlainObject > ConstantReturnType
Definition: MatrixBase.h:107
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EvalReturnType eval() const
Definition: DenseBase.h:401
EIGEN_DEVICE_FUNC PlainObject unitOrthogonal(void) const
Definition: OrthoMethods.h:226
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ArrayWrapper< Derived > array()
Definition: MatrixBase.h:326
Householder rank-revealing QR decomposition of a matrix with column-pivoting.
const Diagonal< const Derived, Index > Type
Definition: MatrixBase.h:223
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
Definition: LLT.h:52
const MatrixFunctionReturnValue< Derived > cosh() const
Block< const CwiseNullaryOp< internal::scalar_identity_op< Scalar >, SquareMatrixType >, internal::traits< Derived >::RowsAtCompileTime, internal::traits< Derived >::ColsAtCompileTime > BasisReturnType
Definition: MatrixBase.h:120
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
const SelfAdjointView< const Derived, UpLo > Type
Definition: MatrixBase.h:252
DenseBase< Derived > Base
Definition: MatrixBase.h:60
NumTraits< Scalar >::Real RealScalar
Definition: MatrixBase.h:58
Homogeneous< Derived, HomogeneousReturnTypeDirection > HomogeneousReturnType
Definition: MatrixBase.h:408
EIGEN_DEVICE_FUNC const PlainObject normalized() const
Definition: Dot.h:121
EIGEN_DEVICE_FUNC const Product< Derived, OtherDerived, LazyProduct > lazyProduct(const MatrixBase< OtherDerived > &other) const
internal::traits< Derived >::StorageKind StorageKind
Definition: MatrixBase.h:54
EIGEN_DEVICE_FUNC TriangularViewReturnType< Mode >::Type triangularView()
Base::PlainObject PlainObject
Definition: MatrixBase.h:103
void computeInverseAndDetWithCheck(ResultType &inverse, typename ResultType::Scalar &determinant, bool &invertible, const RealScalar &absDeterminantThreshold=NumTraits< Scalar >::dummy_precision()) const
Definition: InverseImpl.h:362
Expression of a selfadjoint matrix from a triangular part of a dense matrix.
typedef EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE(ConstStartMinusOne, Scalar, quotient) HNormalizedReturnType
EIGEN_DEVICE_FUNC const Scalar & q
Expression of a dense or sparse matrix with zero or too small values removed.
const CompleteOrthogonalDecomposition< PlainObject > completeOrthogonalDecomposition() const
Diagonal< Derived, DynamicIndex > DiagonalDynamicIndexReturnType
Definition: MatrixBase.h:233
Block< Derived, 1, internal::traits< Derived >::ColsAtCompileTime, IsRowMajor > RowXpr
Definition: DenseBase.h:18
internal::conditional< NumTraits< Scalar >::IsComplex, CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, ConstTransposeReturnType >, ConstTransposeReturnType >::type AdjointReturnType
Definition: MatrixBase.h:112
EIGEN_DEVICE_FUNC const MatrixBase< Derived > & matrix() const
Definition: MatrixBase.h:322
Base class for all 1D and 2D array, and related expressions.
Definition: ArrayBase.h:39
Class to view a vector of integers as a permutation matrix.
EIGEN_DEVICE_FUNC void adjointInPlace()
Definition: Transpose.h:315
const MatrixSquareRootReturnValue< Derived > sqrt() const
RealScalar stableNorm() const
Definition: StableNorm.h:157
const ColPivHouseholderQR< PlainObject > colPivHouseholderQr() const
bool isIdentity(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
const Derived & forceAlignedAccessIf() const
Definition: MatrixBase.h:314
Derived & operator+=(const ArrayBase< OtherDerived > &)
Definition: MatrixBase.h:476
class Bidiagonal Divide and Conquer SVD
EIGEN_DEVICE_FUNC RealScalar squaredNorm() const
Definition: Dot.h:93
Derived & forceAlignedAccessIf()
Definition: MatrixBase.h:315
Derived & operator-=(const ArrayBase< OtherDerived > &)
Definition: MatrixBase.h:479
const PermutationWrapper< const Derived > asPermutation() const
internal::add_const< Diagonal< const Derived > >::type ConstDiagonalReturnType
Definition: MatrixBase.h:218
EIGEN_DEVICE_FUNC Matrix< Scalar, 3, 1 > eulerAngles(Index a0, Index a1, Index a2) const
void computeInverseWithCheck(ResultType &inverse, bool &invertible, const RealScalar &absDeterminantThreshold=NumTraits< Scalar >::dummy_precision()) const
Definition: InverseImpl.h:401
internal::conditional< internal::is_same< typename internal::traits< Derived >::XprKind, MatrixXpr >::value, PlainMatrix, PlainArray >::type PlainObject
The plain matrix or array type corresponding to this expression.
Definition: DenseBase.h:205
bool isUnitary(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: Dot.h:299
EIGEN_DEVICE_FUNC cross_product_return_type< OtherDerived >::type cross(const MatrixBase< OtherDerived > &other) const
Expression of a fixed-size or dynamic-size block.
Definition: Block.h:103
EIGEN_DEVICE_FUNC bool operator==(const MatrixBase< OtherDerived > &other) const
Definition: MatrixBase.h:297
Matrix< std::complex< RealScalar >, internal::traits< Derived >::ColsAtCompileTime, 1, ColMajor > EigenvaluesReturnType
Definition: MatrixBase.h:114
internal::add_const< Diagonal< const Derived, DynamicIndex > >::type ConstDiagonalDynamicIndexReturnType
Definition: MatrixBase.h:234
EIGEN_DEVICE_FUNC RealScalar lpNorm() const
RealScalar hypotNorm() const
Definition: StableNorm.h:214
LU decomposition of a matrix with complete pivoting, and related features.
void applyHouseholderOnTheRight(const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
Definition: Householder.h:150
const FullPivLU< PlainObject > fullPivLu() const
Definition: FullPivLU.h:884
Householder QR decomposition of a matrix.
bool isUpperTriangular(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Two-sided Jacobi SVD decomposition of a rectangular matrix.
Expression of a triangular part in a matrix.
EIGEN_DEVICE_FUNC MatrixBase()
Definition: MatrixBase.h:468
Expression of a diagonal matrix.
Derived & forceAlignedAccess()
Definition: MatrixBase.h:313
Proxy for the matrix exponential of some matrix (expression).
Derived & operator*=(const EigenBase< OtherDerived > &other)
Definition: MatrixBase.h:498
EIGEN_DEVICE_FUNC DiagonalReturnType diagonal()
Definition: Diagonal.h:188
EIGEN_DEVICE_FUNC PlainObject cross3(const MatrixBase< OtherDerived > &other) const
Definition: OrthoMethods.h:82
Determines whether the given binary operation of two numeric types is allowed and what the scalar ret...
Definition: XprHelper.h:766
NoAlias< Derived, Eigen::MatrixBase > noalias()
Definition: NoAlias.h:101
EIGEN_STRONG_INLINE const SparseMatrixBase< OtherDerived >::template CwiseProductDenseReturnType< Derived >::Type cwiseProduct(const SparseMatrixBase< OtherDerived > &other) const
Definition: MatrixBase.h:448
bool isOrthogonal(const MatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition: Dot.h:280
Expression of a diagonal/subdiagonal/superdiagonal in a matrix.
Definition: Diagonal.h:63
const MatrixFunctionReturnValue< Derived > matrixFunction(StemFunction f) const
const LLT< PlainObject > llt() const
Definition: LLT.h:516
void makeHouseholderInPlace(Scalar &tau, RealScalar &beta)
Definition: Householder.h:42
const int Dynamic
Definition: Constants.h:21
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:55
const Product< Derived, OtherDerived > operator*(const MatrixBase< OtherDerived > &other) const
bool isDiagonal(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_DEVICE_FUNC const DiagonalWrapper< const Derived > asDiagonal() const
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:178
Diagonal< Derived > DiagonalReturnType
Definition: MatrixBase.h:214
EIGEN_DEVICE_FUNC const AdjointReturnType adjoint() const
Definition: Transpose.h:210
internal::traits< Derived >::StorageIndex StorageIndex
Definition: MatrixBase.h:55
TriangularView< Derived, Mode > Type
Definition: MatrixBase.h:241
#define EIGEN_SIZE_MAX(a, b)
Definition: Macros.h:894
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const MatrixBase &other)
Definition: Assign.h:55
Proxy for the matrix power of some matrix (expression).
EIGEN_DEVICE_FUNC Derived & derived()
Definition: EigenBase.h:45
const Inverse< Derived > inverse() const
Definition: InverseImpl.h:335
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48
EIGEN_DEVICE_FUNC bool operator!=(const MatrixBase< OtherDerived > &other) const
Definition: MatrixBase.h:305
Base::CoeffReturnType CoeffReturnType
Definition: MatrixBase.h:84
EIGEN_DEVICE_FUNC Derived & setIdentity()
EIGEN_DEVICE_FUNC const CwiseBinaryOp< std::equal_to< Scalar >, const Derived, const OtherDerived > cwiseEqual(const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const
Definition: MatrixBase.h:44
Proxy for the matrix logarithm of some matrix (expression).
EIGEN_DEVICE_FUNC RealScalar norm() const
Definition: Dot.h:105
const HouseholderQR< PlainObject > householderQr() const
JacobiSVD< PlainObject > jacobiSvd(unsigned int computationOptions=0) const
Definition: JacobiSVD.h:797
const MatrixFunctionReturnValue< Derived > sin() const
const FullPivHouseholderQR< PlainObject > fullPivHouseholderQr() const
const PartialPivLU< PlainObject > lu() const
Definition: PartialPivLU.h:604
Matrix< Scalar, EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime), EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime)> SquareMatrixType
Definition: MatrixBase.h:95
Expression of one (or a set of) homogeneous vector(s)
EIGEN_DEVICE_FUNC Derived & lazyAssign(const DenseBase< OtherDerived > &other)


hebiros
Author(s): Xavier Artache , Matthew Tesch
autogenerated on Thu Sep 3 2020 04:08:27