10 #ifndef EIGEN_MISC_IMAGE_H 11 #define EIGEN_MISC_IMAGE_H 20 template<
typename DecompositionType>
23 typedef typename DecompositionType::MatrixType
MatrixType;
25 typename MatrixType::Scalar,
26 MatrixType::RowsAtCompileTime,
30 MatrixType::MaxRowsAtCompileTime,
31 MatrixType::MaxColsAtCompileTime
36 :
public ReturnByValue<image_retval_base<_DecompositionType> >
43 : m_dec(dec), m_rank(dec.rank()),
44 m_cols(m_rank == 0 ? 1 : m_rank),
45 m_originalMatrix(originalMatrix)
51 inline const DecompositionType&
dec()
const {
return m_dec; }
54 template<
typename Dest>
inline void evalTo(Dest& dst)
const 67 #define EIGEN_MAKE_IMAGE_HELPERS(DecompositionType) \ 68 typedef typename DecompositionType::MatrixType MatrixType; \ 69 typedef typename MatrixType::Scalar Scalar; \ 70 typedef typename MatrixType::RealScalar RealScalar; \ 71 typedef Eigen::internal::image_retval_base<DecompositionType> Base; \ 73 using Base::originalMatrix; \ 77 image_retval(const DecompositionType& dec, const MatrixType& originalMatrix) \ 78 : Base(dec, originalMatrix) {} 82 #endif // EIGEN_MISC_IMAGE_H const DecompositionType & dec() const
Matrix< typename MatrixType::Scalar, MatrixType::RowsAtCompileTime, Dynamic, MatrixType::Options, MatrixType::MaxRowsAtCompileTime, MatrixType::MaxColsAtCompileTime > ReturnType
const DecompositionType & m_dec
const MatrixType & originalMatrix() const
DecompositionType::MatrixType MatrixType
DecompositionType::MatrixType MatrixType
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
image_retval_base(const DecompositionType &dec, const MatrixType &originalMatrix)
const MatrixType & m_originalMatrix
void evalTo(Dest &dst) const
_DecompositionType DecompositionType
ReturnByValue< image_retval_base > Base
The matrix class, also used for vectors and row-vectors.