CompleteOrthogonalDecomposition.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) 2016 Rasmus Munk Larsen <rmlarsen@google.com>
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_COMPLETEORTHOGONALDECOMPOSITION_H
11 #define EIGEN_COMPLETEORTHOGONALDECOMPOSITION_H
12 
13 namespace Eigen {
14 
15 namespace internal {
16 template <typename _MatrixType>
18  : traits<_MatrixType> {
19  typedef MatrixXpr XprKind;
21  typedef int StorageIndex;
22  enum { Flags = 0 };
23 };
24 
25 } // end namespace internal
26 
50 template <typename _MatrixType> class CompleteOrthogonalDecomposition
51  : public SolverBase<CompleteOrthogonalDecomposition<_MatrixType> >
52 {
53  public:
54  typedef _MatrixType MatrixType;
56 
57  template<typename Derived>
59 
61  enum {
62  MaxRowsAtCompileTime = MatrixType::MaxRowsAtCompileTime,
63  MaxColsAtCompileTime = MatrixType::MaxColsAtCompileTime
64  };
73  typedef HouseholderSequence<
77  typedef typename MatrixType::PlainObject PlainObject;
78 
79  private:
81 
82  public:
91 
100 
117  template <typename InputType>
119  : m_cpqr(matrix.rows(), matrix.cols()),
120  m_zCoeffs((std::min)(matrix.rows(), matrix.cols())),
121  m_temp(matrix.cols())
122  {
123  compute(matrix.derived());
124  }
125 
132  template<typename InputType>
134  : m_cpqr(matrix.derived()),
135  m_zCoeffs((std::min)(matrix.rows(), matrix.cols())),
136  m_temp(matrix.cols())
137  {
138  computeInPlace();
139  }
140 
141  #ifdef EIGEN_PARSED_BY_DOXYGEN
142 
151  template <typename Rhs>
153  const MatrixBase<Rhs>& b) const;
154  #endif
155 
158 
161  MatrixType matrixZ() const {
162  MatrixType Z = MatrixType::Identity(m_cpqr.cols(), m_cpqr.cols());
163  applyZOnTheLeftInPlace<false>(Z);
164  return Z;
165  }
166 
170  const MatrixType& matrixQTZ() const { return m_cpqr.matrixQR(); }
171 
183  const MatrixType& matrixT() const { return m_cpqr.matrixQR(); }
184 
185  template <typename InputType>
187  // Compute the column pivoted QR factorization A P = Q R.
189  computeInPlace();
190  return *this;
191  }
192 
195  return m_cpqr.colsPermutation();
196  }
197 
211  typename MatrixType::RealScalar absDeterminant() const;
212 
226  typename MatrixType::RealScalar logAbsDeterminant() const;
227 
235  inline Index rank() const { return m_cpqr.rank(); }
236 
244  inline Index dimensionOfKernel() const { return m_cpqr.dimensionOfKernel(); }
245 
253  inline bool isInjective() const { return m_cpqr.isInjective(); }
254 
262  inline bool isSurjective() const { return m_cpqr.isSurjective(); }
263 
271  inline bool isInvertible() const { return m_cpqr.isInvertible(); }
272 
279  {
280  eigen_assert(m_cpqr.m_isInitialized && "CompleteOrthogonalDecomposition is not initialized.");
282  }
283 
284  inline Index rows() const { return m_cpqr.rows(); }
285  inline Index cols() const { return m_cpqr.cols(); }
286 
292  inline const HCoeffsType& hCoeffs() const { return m_cpqr.hCoeffs(); }
293 
299  const HCoeffsType& zCoeffs() const { return m_zCoeffs; }
300 
322  return *this;
323  }
324 
335  return *this;
336  }
337 
342  RealScalar threshold() const { return m_cpqr.threshold(); }
343 
351  inline Index nonzeroPivots() const { return m_cpqr.nonzeroPivots(); }
352 
356  inline RealScalar maxPivot() const { return m_cpqr.maxPivot(); }
357 
367  eigen_assert(m_cpqr.m_isInitialized && "Decomposition is not initialized.");
368  return Success;
369  }
370 
371 #ifndef EIGEN_PARSED_BY_DOXYGEN
372  template <typename RhsType, typename DstType>
373  void _solve_impl(const RhsType& rhs, DstType& dst) const;
374 
375  template<bool Conjugate, typename RhsType, typename DstType>
376  void _solve_impl_transposed(const RhsType &rhs, DstType &dst) const;
377 #endif
378 
379  protected:
382  }
383 
384  template<bool Transpose_, typename Rhs>
385  void _check_solve_assertion(const Rhs& b) const {
387  eigen_assert(m_cpqr.m_isInitialized && "CompleteOrthogonalDecomposition is not initialized.");
388  eigen_assert((Transpose_?derived().cols():derived().rows())==b.rows() && "CompleteOrthogonalDecomposition::solve(): invalid number of rows of the right hand side matrix b");
389  }
390 
391  void computeInPlace();
392 
397  template <bool Conjugate, typename Rhs>
398  void applyZOnTheLeftInPlace(Rhs& rhs) const;
399 
402  template <typename Rhs>
403  void applyZAdjointOnTheLeftInPlace(Rhs& rhs) const;
404 
408 };
409 
410 template <typename MatrixType>
411 typename MatrixType::RealScalar
413  return m_cpqr.absDeterminant();
414 }
415 
416 template <typename MatrixType>
417 typename MatrixType::RealScalar
419  return m_cpqr.logAbsDeterminant();
420 }
421 
429 template <typename MatrixType>
431 {
432  check_template_parameters();
433 
434  // the column permutation is stored as int indices, so just to be sure:
435  eigen_assert(m_cpqr.cols() <= NumTraits<int>::highest());
436 
437  const Index rank = m_cpqr.rank();
438  const Index cols = m_cpqr.cols();
439  const Index rows = m_cpqr.rows();
440  m_zCoeffs.resize((std::min)(rows, cols));
441  m_temp.resize(cols);
442 
443  if (rank < cols) {
444  // We have reduced the (permuted) matrix to the form
445  // [R11 R12]
446  // [ 0 R22]
447  // where R11 is r-by-r (r = rank) upper triangular, R12 is
448  // r-by-(n-r), and R22 is empty or the norm of R22 is negligible.
449  // We now compute the complete orthogonal decomposition by applying
450  // Householder transformations from the right to the upper trapezoidal
451  // matrix X = [R11 R12] to zero out R12 and obtain the factorization
452  // [R11 R12] = [T11 0] * Z, where T11 is r-by-r upper triangular and
453  // Z = Z(0) * Z(1) ... Z(r-1) is an n-by-n orthogonal matrix.
454  // We store the data representing Z in R12 and m_zCoeffs.
455  for (Index k = rank - 1; k >= 0; --k) {
456  if (k != rank - 1) {
457  // Given the API for Householder reflectors, it is more convenient if
458  // we swap the leading parts of columns k and r-1 (zero-based) to form
459  // the matrix X_k = [X(0:k, k), X(0:k, r:n)]
460  m_cpqr.m_qr.col(k).head(k + 1).swap(
461  m_cpqr.m_qr.col(rank - 1).head(k + 1));
462  }
463  // Construct Householder reflector Z(k) to zero out the last row of X_k,
464  // i.e. choose Z(k) such that
465  // [X(k, k), X(k, r:n)] * Z(k) = [beta, 0, .., 0].
467  m_cpqr.m_qr.row(k)
468  .tail(cols - rank + 1)
469  .makeHouseholderInPlace(m_zCoeffs(k), beta);
470  m_cpqr.m_qr(k, rank - 1) = beta;
471  if (k > 0) {
472  // Apply Z(k) to the first k rows of X_k
473  m_cpqr.m_qr.topRightCorner(k, cols - rank + 1)
474  .applyHouseholderOnTheRight(
475  m_cpqr.m_qr.row(k).tail(cols - rank).adjoint(), m_zCoeffs(k),
476  &m_temp(0));
477  }
478  if (k != rank - 1) {
479  // Swap X(0:k,k) back to its proper location.
480  m_cpqr.m_qr.col(k).head(k + 1).swap(
481  m_cpqr.m_qr.col(rank - 1).head(k + 1));
482  }
483  }
484  }
485 }
486 
487 template <typename MatrixType>
488 template <bool Conjugate, typename Rhs>
490  Rhs& rhs) const {
491  const Index cols = this->cols();
492  const Index nrhs = rhs.cols();
493  const Index rank = this->rank();
495  for (Index k = rank-1; k >= 0; --k) {
496  if (k != rank - 1) {
497  rhs.row(k).swap(rhs.row(rank - 1));
498  }
499  rhs.middleRows(rank - 1, cols - rank + 1)
500  .applyHouseholderOnTheLeft(
501  matrixQTZ().row(k).tail(cols - rank).transpose().template conjugateIf<!Conjugate>(), zCoeffs().template conjugateIf<Conjugate>()(k),
502  &temp(0));
503  if (k != rank - 1) {
504  rhs.row(k).swap(rhs.row(rank - 1));
505  }
506  }
507 }
508 
509 template <typename MatrixType>
510 template <typename Rhs>
512  Rhs& rhs) const {
513  const Index cols = this->cols();
514  const Index nrhs = rhs.cols();
515  const Index rank = this->rank();
517  for (Index k = 0; k < rank; ++k) {
518  if (k != rank - 1) {
519  rhs.row(k).swap(rhs.row(rank - 1));
520  }
521  rhs.middleRows(rank - 1, cols - rank + 1)
522  .applyHouseholderOnTheLeft(
523  matrixQTZ().row(k).tail(cols - rank).adjoint(), zCoeffs()(k),
524  &temp(0));
525  if (k != rank - 1) {
526  rhs.row(k).swap(rhs.row(rank - 1));
527  }
528  }
529 }
530 
531 #ifndef EIGEN_PARSED_BY_DOXYGEN
532 template <typename _MatrixType>
533 template <typename RhsType, typename DstType>
535  const RhsType& rhs, DstType& dst) const {
536  const Index rank = this->rank();
537  if (rank == 0) {
538  dst.setZero();
539  return;
540  }
541 
542  // Compute c = Q^* * rhs
543  typename RhsType::PlainObject c(rhs);
544  c.applyOnTheLeft(matrixQ().setLength(rank).adjoint());
545 
546  // Solve T z = c(1:rank, :)
547  dst.topRows(rank) = matrixT()
548  .topLeftCorner(rank, rank)
549  .template triangularView<Upper>()
550  .solve(c.topRows(rank));
551 
552  const Index cols = this->cols();
553  if (rank < cols) {
554  // Compute y = Z^* * [ z ]
555  // [ 0 ]
556  dst.bottomRows(cols - rank).setZero();
557  applyZAdjointOnTheLeftInPlace(dst);
558  }
559 
560  // Undo permutation to get x = P^{-1} * y.
561  dst = colsPermutation() * dst;
562 }
563 
564 template<typename _MatrixType>
565 template<bool Conjugate, typename RhsType, typename DstType>
567 {
568  const Index rank = this->rank();
569 
570  if (rank == 0) {
571  dst.setZero();
572  return;
573  }
574 
575  typename RhsType::PlainObject c(colsPermutation().transpose()*rhs);
576 
577  if (rank < cols()) {
578  applyZOnTheLeftInPlace<!Conjugate>(c);
579  }
580 
581  matrixT().topLeftCorner(rank, rank)
582  .template triangularView<Upper>()
583  .transpose().template conjugateIf<Conjugate>()
584  .solveInPlace(c.topRows(rank));
585 
586  dst.topRows(rank) = c.topRows(rank);
587  dst.bottomRows(rows()-rank).setZero();
588 
589  dst.applyOnTheLeft(householderQ().setLength(rank).template conjugateIf<!Conjugate>() );
590 }
591 #endif
592 
593 namespace internal {
594 
595 template<typename MatrixType>
597  : traits<typename Transpose<typename MatrixType::PlainObject>::PlainObject>
598 {
599  enum { Flags = 0 };
600 };
601 
602 template<typename DstXprType, typename MatrixType>
603 struct Assignment<DstXprType, Inverse<CompleteOrthogonalDecomposition<MatrixType> >, internal::assign_op<typename DstXprType::Scalar,typename CompleteOrthogonalDecomposition<MatrixType>::Scalar>, Dense2Dense>
604 {
608  {
610  dst = src.nestedExpression().solve(IdentityMatrixType::Identity(src.cols(), src.cols()));
611  }
612 };
613 
614 } // end namespace internal
615 
617 template <typename MatrixType>
620  return m_cpqr.householderQ();
621 }
622 
627 template <typename Derived>
631 }
632 
633 } // end namespace Eigen
634 
635 #endif // EIGEN_COMPLETEORTHOGONALDECOMPOSITION_H
Eigen::Inverse
Expression of the inverse of another expression.
Definition: Inverse.h:43
Eigen::ColPivHouseholderQR::setThreshold
ColPivHouseholderQR & setThreshold(const RealScalar &threshold)
Definition: ColPivHouseholderQR.h:353
Eigen::CompleteOrthogonalDecomposition::colsPermutation
const PermutationType & colsPermutation() const
Definition: CompleteOrthogonalDecomposition.h:194
Eigen::MatrixXpr
Definition: Constants.h:522
Eigen::internal::traits< CompleteOrthogonalDecomposition< _MatrixType > >::StorageIndex
int StorageIndex
Definition: CompleteOrthogonalDecomposition.h:21
tail
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE FixedSegmentReturnType< internal::get_fixed_value< NType >::value >::Type tail(NType n)
Definition: BlockMethods.h:1257
Eigen::CompleteOrthogonalDecomposition::computeInPlace
void computeInPlace()
Definition: CompleteOrthogonalDecomposition.h:430
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Eigen::ColPivHouseholderQR::dimensionOfKernel
Index dimensionOfKernel() const
Definition: ColPivHouseholderQR.h:272
Eigen::CompleteOrthogonalDecomposition::threshold
RealScalar threshold() const
Definition: CompleteOrthogonalDecomposition.h:342
Eigen::CompleteOrthogonalDecomposition::hCoeffs
const HCoeffsType & hCoeffs() const
Definition: CompleteOrthogonalDecomposition.h:292
Eigen::CompleteOrthogonalDecomposition::m_cpqr
ColPivHouseholderQR< MatrixType > m_cpqr
Definition: CompleteOrthogonalDecomposition.h:405
Eigen::internal::Assignment< DstXprType, Inverse< CompleteOrthogonalDecomposition< MatrixType > >, internal::assign_op< typename DstXprType::Scalar, typename CompleteOrthogonalDecomposition< MatrixType >::Scalar >, Dense2Dense >::SrcXprType
Inverse< CodType > SrcXprType
Definition: CompleteOrthogonalDecomposition.h:606
Eigen::CompleteOrthogonalDecomposition::logAbsDeterminant
MatrixType::RealScalar logAbsDeterminant() const
Definition: CompleteOrthogonalDecomposition.h:418
Eigen::CompleteOrthogonalDecomposition::pseudoInverse
const Inverse< CompleteOrthogonalDecomposition > pseudoInverse() const
Definition: CompleteOrthogonalDecomposition.h:278
Eigen::CompleteOrthogonalDecomposition::cols
Index cols() const
Definition: CompleteOrthogonalDecomposition.h:285
Eigen::EigenBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > >::Index
Eigen::Index Index
The interface type of indices.
Definition: EigenBase.h:39
MatrixType
MatrixXf MatrixType
Definition: benchmark-blocking-sizes.cpp:52
Eigen::ColPivHouseholderQR::rank
Index rank() const
Definition: ColPivHouseholderQR.h:255
Eigen::CompleteOrthogonalDecomposition::rank
Index rank() const
Definition: CompleteOrthogonalDecomposition.h:235
Eigen::ColPivHouseholderQR::hCoeffs
const HCoeffsType & hCoeffs() const
Definition: ColPivHouseholderQR.h:334
Eigen::CompleteOrthogonalDecomposition::isInvertible
bool isInvertible() const
Definition: CompleteOrthogonalDecomposition.h:271
Eigen::CompleteOrthogonalDecomposition::PlainObject
MatrixType::PlainObject PlainObject
Definition: CompleteOrthogonalDecomposition.h:77
Eigen::internal::remove_all
Definition: Meta.h:126
c
Scalar Scalar * c
Definition: benchVecAdd.cpp:17
b
Scalar * b
Definition: benchVecAdd.cpp:17
Eigen::EigenBase
Definition: EigenBase.h:29
eigen_assert
#define eigen_assert(x)
Definition: Macros.h:1037
Eigen::CompleteOrthogonalDecomposition::zCoeffs
const HCoeffsType & zCoeffs() const
Definition: CompleteOrthogonalDecomposition.h:299
Eigen::CompleteOrthogonalDecomposition::applyZOnTheLeftInPlace
void applyZOnTheLeftInPlace(Rhs &rhs) const
Definition: CompleteOrthogonalDecomposition.h:489
Eigen::internal::Dense2Dense
Definition: AssignEvaluator.h:814
Eigen::Success
@ Success
Definition: Constants.h:442
type
Definition: pytypes.h:1525
Eigen::CompleteOrthogonalDecomposition::_check_solve_assertion
void _check_solve_assertion(const Rhs &b) const
Definition: CompleteOrthogonalDecomposition.h:385
Eigen::internal::solve_assertion
Definition: SolverBase.h:18
Eigen::ColPivHouseholderQR::rows
Index rows() const
Definition: ColPivHouseholderQR.h:327
Eigen::ColPivHouseholderQR::cols
Index cols() const
Definition: ColPivHouseholderQR.h:328
beta
double beta(double a, double b)
Definition: beta.c:61
Eigen::ColPivHouseholderQR::m_isInitialized
bool m_isInitialized
Definition: ColPivHouseholderQR.h:443
Eigen::CompleteOrthogonalDecomposition::PermIndexType
PermutationType::Index PermIndexType
Definition: CompleteOrthogonalDecomposition.h:80
Eigen::CompleteOrthogonalDecomposition::MaxRowsAtCompileTime
@ MaxRowsAtCompileTime
Definition: CompleteOrthogonalDecomposition.h:62
rows
int rows
Definition: Tutorial_commainit_02.cpp:1
Eigen::Inverse::cols
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: Inverse.h:58
Eigen::CompleteOrthogonalDecomposition::CompleteOrthogonalDecomposition
CompleteOrthogonalDecomposition(Index rows, Index cols)
Default Constructor with memory preallocation.
Definition: CompleteOrthogonalDecomposition.h:98
Eigen::CompleteOrthogonalDecomposition::HouseholderSequenceType
HouseholderSequence< MatrixType, typename internal::remove_all< typename HCoeffsType::ConjugateReturnType >::type > HouseholderSequenceType
Definition: CompleteOrthogonalDecomposition.h:76
Eigen::ColPivHouseholderQR::maxPivot
RealScalar maxPivot() const
Definition: ColPivHouseholderQR.h:403
Eigen::CompleteOrthogonalDecomposition::isSurjective
bool isSurjective() const
Definition: CompleteOrthogonalDecomposition.h:262
Eigen::CompleteOrthogonalDecomposition::CompleteOrthogonalDecomposition
CompleteOrthogonalDecomposition(EigenBase< InputType > &matrix)
Constructs a complete orthogonal decomposition from a given matrix.
Definition: CompleteOrthogonalDecomposition.h:133
EIGEN_ONLY_USED_FOR_DEBUG
#define EIGEN_ONLY_USED_FOR_DEBUG(x)
Definition: Macros.h:1049
Eigen::CompleteOrthogonalDecomposition::compute
CompleteOrthogonalDecomposition & compute(const EigenBase< InputType > &matrix)
Definition: CompleteOrthogonalDecomposition.h:186
Eigen::ColPivHouseholderQR::isInjective
bool isInjective() const
Definition: ColPivHouseholderQR.h:285
Eigen::internal::Assignment< DstXprType, Inverse< CompleteOrthogonalDecomposition< MatrixType > >, internal::assign_op< typename DstXprType::Scalar, typename CompleteOrthogonalDecomposition< MatrixType >::Scalar >, Dense2Dense >::run
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op< typename DstXprType::Scalar, typename CodType::Scalar > &)
Definition: CompleteOrthogonalDecomposition.h:607
Eigen::CompleteOrthogonalDecomposition::householderQ
HouseholderSequenceType householderQ(void) const
Definition: CompleteOrthogonalDecomposition.h:619
Eigen::internal::true_type
Definition: Meta.h:96
Eigen::internal::traits< CompleteOrthogonalDecomposition< _MatrixType > >::StorageKind
SolverStorage StorageKind
Definition: CompleteOrthogonalDecomposition.h:20
EIGEN_GENERIC_PUBLIC_INTERFACE
#define EIGEN_GENERIC_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1264
Eigen::CompleteOrthogonalDecomposition::matrixT
const MatrixType & matrixT() const
Definition: CompleteOrthogonalDecomposition.h:183
Eigen::CompleteOrthogonalDecomposition::IntRowVectorType
internal::plain_row_type< MatrixType, Index >::type IntRowVectorType
Definition: CompleteOrthogonalDecomposition.h:69
Eigen::CompleteOrthogonalDecomposition::setThreshold
CompleteOrthogonalDecomposition & setThreshold(const RealScalar &threshold)
Definition: CompleteOrthogonalDecomposition.h:320
Eigen::CompleteOrthogonalDecomposition::matrixQTZ
const MatrixType & matrixQTZ() const
Definition: CompleteOrthogonalDecomposition.h:170
Eigen::SolverStorage
Definition: Constants.h:513
Eigen::CompleteOrthogonalDecomposition::Base
SolverBase< CompleteOrthogonalDecomposition > Base
Definition: CompleteOrthogonalDecomposition.h:55
Eigen::ColPivHouseholderQR::compute
ColPivHouseholderQR & compute(const EigenBase< InputType > &matrix)
Eigen::CompleteOrthogonalDecomposition::maxPivot
RealScalar maxPivot() const
Definition: CompleteOrthogonalDecomposition.h:356
Eigen::CompleteOrthogonalDecomposition::m_temp
RowVectorType m_temp
Definition: CompleteOrthogonalDecomposition.h:407
Eigen::CompleteOrthogonalDecomposition::applyZAdjointOnTheLeftInPlace
void applyZAdjointOnTheLeftInPlace(Rhs &rhs) const
Definition: CompleteOrthogonalDecomposition.h:511
Eigen::Inverse::nestedExpression
const EIGEN_DEVICE_FUNC XprTypeNestedCleaned & nestedExpression() const
Definition: Inverse.h:60
Eigen::CompleteOrthogonalDecomposition::absDeterminant
MatrixType::RealScalar absDeterminant() const
Definition: CompleteOrthogonalDecomposition.h:412
Eigen::CompleteOrthogonalDecomposition::MatrixType
_MatrixType MatrixType
Definition: CompleteOrthogonalDecomposition.h:54
Eigen::CompleteOrthogonalDecomposition::CompleteOrthogonalDecomposition
CompleteOrthogonalDecomposition(const EigenBase< InputType > &matrix)
Constructs a complete orthogonal decomposition from a given matrix.
Definition: CompleteOrthogonalDecomposition.h:118
Eigen::CompleteOrthogonalDecomposition
Complete orthogonal decomposition (COD) of a matrix.
Definition: ForwardDeclarations.h:276
Eigen::CompleteOrthogonalDecomposition::isInjective
bool isInjective() const
Definition: CompleteOrthogonalDecomposition.h:253
Eigen::CompleteOrthogonalDecomposition::MaxColsAtCompileTime
@ MaxColsAtCompileTime
Definition: CompleteOrthogonalDecomposition.h:63
Eigen::CompleteOrthogonalDecomposition::matrixZ
MatrixType matrixZ() const
Definition: CompleteOrthogonalDecomposition.h:161
Eigen::CompleteOrthogonalDecomposition::dimensionOfKernel
Index dimensionOfKernel() const
Definition: CompleteOrthogonalDecomposition.h:244
Eigen::ColPivHouseholderQR< MatrixType >
Eigen::CompleteOrthogonalDecomposition::RowVectorType
internal::plain_row_type< MatrixType >::type RowVectorType
Definition: CompleteOrthogonalDecomposition.h:70
matrix
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
Definition: gtsam/3rdparty/Eigen/blas/common.h:110
Eigen::CompleteOrthogonalDecomposition::info
ComputationInfo info() const
Reports whether the complete orthogonal decomposition was successful.
Definition: CompleteOrthogonalDecomposition.h:366
Eigen::internal::assign_op
Definition: AssignmentFunctors.h:21
Eigen::CompleteOrthogonalDecomposition::check_template_parameters
static void check_template_parameters()
Definition: CompleteOrthogonalDecomposition.h:380
RealScalar
NumTraits< Scalar >::Real RealScalar
Definition: bench_gemm.cpp:47
Eigen::CompleteOrthogonalDecomposition::PermutationType
PermutationMatrix< ColsAtCompileTime, MaxColsAtCompileTime > PermutationType
Definition: CompleteOrthogonalDecomposition.h:67
Eigen::MatrixBase::completeOrthogonalDecomposition
const CompleteOrthogonalDecomposition< PlainObject > completeOrthogonalDecomposition() const
Definition: CompleteOrthogonalDecomposition.h:629
Eigen::CompleteOrthogonalDecomposition::_solve_impl
void _solve_impl(const RhsType &rhs, DstType &dst) const
Definition: CompleteOrthogonalDecomposition.h:534
Eigen::Solve
Pseudo expression representing a solving operation.
Definition: Solve.h:62
Eigen::internal::traits
Definition: ForwardDeclarations.h:17
Eigen::Default_t
Default_t
Definition: Constants.h:362
Eigen::internal::Rhs
@ Rhs
Definition: TensorContractionMapper.h:18
row
m row(1)
std
Definition: BFloat16.h:88
Eigen::PermutationMatrix< ColsAtCompileTime, MaxColsAtCompileTime >
Eigen::ColPivHouseholderQR::isInvertible
bool isInvertible() const
Definition: ColPivHouseholderQR.h:310
Eigen::ColPivHouseholderQR::matrixQR
const MatrixType & matrixQR() const
Definition: ColPivHouseholderQR.h:189
Eigen::internal::Assignment
Definition: AssignEvaluator.h:824
Eigen::CompleteOrthogonalDecomposition::rows
Index rows() const
Definition: CompleteOrthogonalDecomposition.h:284
Eigen::ColPivHouseholderQR::nonzeroPivots
Index nonzeroPivots() const
Definition: ColPivHouseholderQR.h:394
ConjugateReturnType
internal::conditional< NumTraits< Scalar >::IsComplex, const CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, const Derived >, const Derived & >::type ConjugateReturnType
Definition: CommonCwiseUnaryOps.h:19
Eigen::ColPivHouseholderQR::threshold
RealScalar threshold() const
Definition: ColPivHouseholderQR.h:378
min
#define min(a, b)
Definition: datatypes.h:19
Eigen::Default
@ Default
Definition: Constants.h:362
Eigen::Matrix
The matrix class, also used for vectors and row-vectors.
Definition: 3rdparty/Eigen/Eigen/src/Core/Matrix.h:178
internal
Definition: BandTriangularSolver.h:13
Eigen::CompleteOrthogonalDecomposition::nonzeroPivots
Index nonzeroPivots() const
Definition: CompleteOrthogonalDecomposition.h:351
Eigen::MatrixBase
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48
Eigen::min
CleanedUpDerType< DerType >::type() min(const AutoDiffScalar< DerType > &x, const T &y)
Definition: AutoDiffScalar.h:580
cols
int cols
Definition: Tutorial_commainit_02.cpp:1
Eigen::ComputationInfo
ComputationInfo
Definition: Constants.h:440
Eigen::CompleteOrthogonalDecomposition::HCoeffsType
internal::plain_diag_type< MatrixType >::type HCoeffsType
Definition: CompleteOrthogonalDecomposition.h:65
Eigen::ColPivHouseholderQR::isSurjective
bool isSurjective() const
Definition: ColPivHouseholderQR.h:298
max
#define max(a, b)
Definition: datatypes.h:20
Z
#define Z
Definition: icosphere.cpp:21
Eigen::CompleteOrthogonalDecomposition::_solve_impl_transposed
void _solve_impl_transposed(const RhsType &rhs, DstType &dst) const
Definition: CompleteOrthogonalDecomposition.h:566
Eigen::internal::traits< CompleteOrthogonalDecomposition< _MatrixType > >::XprKind
MatrixXpr XprKind
Definition: CompleteOrthogonalDecomposition.h:19
Eigen::CompleteOrthogonalDecomposition::matrixQ
HouseholderSequenceType matrixQ(void) const
Definition: CompleteOrthogonalDecomposition.h:157
Eigen::NumTraits
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Definition: NumTraits.h:232
adjoint
void adjoint(const MatrixType &m)
Definition: adjoint.cpp:67
eval
internal::nested_eval< T, 1 >::type eval(const T &xpr)
Definition: sparse_permutations.cpp:38
Eigen::ColPivHouseholderQR::householderQ
HouseholderSequenceType householderQ() const
Definition: ColPivHouseholderQR.h:655
Eigen::ColPivHouseholderQR::colsPermutation
const PermutationType & colsPermutation() const
Definition: ColPivHouseholderQR.h:214
Eigen::CompleteOrthogonalDecomposition::RealRowVectorType
internal::plain_row_type< MatrixType, RealScalar >::type RealRowVectorType
Definition: CompleteOrthogonalDecomposition.h:72
Eigen::CompleteOrthogonalDecomposition::CompleteOrthogonalDecomposition
CompleteOrthogonalDecomposition()
Default Constructor.
Definition: CompleteOrthogonalDecomposition.h:90
Eigen::SolverBase
A base class for matrix decomposition and solvers.
Definition: SolverBase.h:68
Scalar
SCALAR Scalar
Definition: bench_gemm.cpp:46
Eigen::Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Eigen::CompleteOrthogonalDecomposition::setThreshold
CompleteOrthogonalDecomposition & setThreshold(Default_t)
Definition: CompleteOrthogonalDecomposition.h:333
Eigen::HouseholderSequence
Sequence of Householder reflections acting on subspaces with decreasing size.
Definition: ForwardDeclarations.h:282
Eigen::CompleteOrthogonalDecomposition::m_zCoeffs
HCoeffsType m_zCoeffs
Definition: CompleteOrthogonalDecomposition.h:406
EIGEN_STATIC_ASSERT_NON_INTEGER
#define EIGEN_STATIC_ASSERT_NON_INTEGER(TYPE)
Definition: StaticAssert.h:187
Eigen::internal::Assignment< DstXprType, Inverse< CompleteOrthogonalDecomposition< MatrixType > >, internal::assign_op< typename DstXprType::Scalar, typename CompleteOrthogonalDecomposition< MatrixType >::Scalar >, Dense2Dense >::CodType
CompleteOrthogonalDecomposition< MatrixType > CodType
Definition: CompleteOrthogonalDecomposition.h:605


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:00