SolverBase.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) 2015 Gael Guennebaud <gael.guennebaud@inria.fr>
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_SOLVERBASE_H
11 #define EIGEN_SOLVERBASE_H
12 
13 namespace Eigen {
14 
15 namespace internal {
16 
17 
18 
19 } // end namespace internal
20 
40 template<typename Derived>
41 class SolverBase : public EigenBase<Derived>
42 {
43  public:
44 
47  typedef Scalar CoeffReturnType;
48 
49  enum {
60  };
61 
64  {}
65 
67  {}
68 
69  using Base::derived;
70 
73  template<typename Rhs>
74  inline const Solve<Derived, Rhs>
75  solve(const MatrixBase<Rhs>& b) const
76  {
77  eigen_assert(derived().rows()==b.rows() && "solve(): invalid number of rows of the right hand side matrix b");
78  return Solve<Derived, Rhs>(derived(), b.derived());
79  }
80 
90  inline ConstTransposeReturnType transpose() const
91  {
92  return ConstTransposeReturnType(derived());
93  }
94 
97  CwiseUnaryOp<internal::scalar_conjugate_op<Scalar>, ConstTransposeReturnType>,
98  ConstTransposeReturnType
109  inline AdjointReturnType adjoint() const
110  {
111  return AdjointReturnType(derived().transpose());
112  }
113 
114  protected:
115 };
116 
117 namespace internal {
118 
119 template<typename Derived>
121 {
123 
124 };
125 
126 } // end namespace internal
127 
128 } // end namespace Eigen
129 
130 #endif // EIGEN_SOLVERBASE_H
Scalar * b
Definition: benchVecAdd.cpp:17
internal::traits< Derived >::Scalar Scalar
Definition: SolverBase.h:46
AdjointReturnType adjoint() const
Definition: SolverBase.h:109
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
EigenBase< Derived > Base
Definition: SolverBase.h:45
Scalar CoeffReturnType
Definition: SolverBase.h:47
const Solve< Derived, Rhs > solve(const MatrixBase< Rhs > &b) const
Definition: SolverBase.h:75
#define eigen_assert(x)
Definition: Macros.h:579
ConstTransposeReturnType transpose() const
Definition: SolverBase.h:90
DenseIndex ret
Definition: level1_impl.h:59
internal::conditional< NumTraits< Scalar >::IsComplex, CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, ConstTransposeReturnType >, ConstTransposeReturnType >::type AdjointReturnType
Definition: SolverBase.h:99
Pseudo expression representing a solving operation.
Definition: Solve.h:62
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:55
A base class for matrix decomposition and solvers.
Definition: SolverBase.h:41
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48
internal::add_const< Transpose< const Derived > >::type ConstTransposeReturnType
Definition: SolverBase.h:82
Definition: pytypes.h:897


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:44:16