10 #ifndef EIGEN_MISC_IMAGE_H 11 #define EIGEN_MISC_IMAGE_H 20 template<
typename DecompositionType>
23 typedef typename DecompositionType::MatrixType MatrixType;
26 MatrixType::RowsAtCompileTime,
30 MatrixType::MaxRowsAtCompileTime,
31 MatrixType::MaxColsAtCompileTime
36 :
public ReturnByValue<image_retval_base<_DecompositionType> >
38 typedef _DecompositionType DecompositionType;
39 typedef typename DecompositionType::MatrixType MatrixType;
41 typedef typename Base::Index Index;
44 : m_dec(dec), m_rank(dec.rank()),
45 m_cols(m_rank == 0 ? 1 : m_rank),
46 m_originalMatrix(originalMatrix)
49 inline Index rows()
const {
return m_dec.rows(); }
50 inline Index cols()
const {
return m_cols; }
51 inline Index rank()
const {
return m_rank; }
52 inline const DecompositionType& dec()
const {
return m_dec; }
53 inline const MatrixType& originalMatrix()
const {
return m_originalMatrix; }
55 template<
typename Dest>
inline void evalTo(Dest& dst)
const 61 const DecompositionType& m_dec;
63 const MatrixType& m_originalMatrix;
68 #define EIGEN_MAKE_IMAGE_HELPERS(DecompositionType) \ 69 typedef typename DecompositionType::MatrixType MatrixType; \ 70 typedef typename MatrixType::Scalar Scalar; \ 71 typedef typename MatrixType::RealScalar RealScalar; \ 72 typedef typename MatrixType::Index Index; \ 73 typedef Eigen::internal::image_retval_base<DecompositionType> Base; \ 75 using Base::originalMatrix; \ 79 image_retval(const DecompositionType& dec, const MatrixType& originalMatrix) \ 80 : Base(dec, originalMatrix) {} 84 #endif // EIGEN_MISC_IMAGE_H Definition: gtest_unittest.cc:5031
iterative scaling algorithm to equilibrate rows and column norms in matrices
Definition: TestIMU_Common.h:87
Definition: ReturnByValue.h:50
Definition: BandTriangularSolver.h:13
Definition: ForwardDeclarations.h:129
const int Dynamic
This value means that a positive quantity (e.g., a size) is not known at compile-time, and that instead the value is stored in some runtime variable.
Definition: Constants.h:21
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:127
Definition: ForwardDeclarations.h:17
Definition: ForwardDeclarations.h:128
double Scalar
Common scalar type.
Definition: FlexibleKalmanBase.h:48