16 #ifndef EIGEN_SVDBASE_H 17 #define EIGEN_SVDBASE_H 47 template<
typename Derived>
71 Derived&
derived() {
return *
static_cast<Derived*
>(
this); }
72 const Derived&
derived()
const {
return *
static_cast<const Derived*
>(
this); }
184 Index diagSize = (std::max<Index>)(1,
m_diagSize);
206 template<
typename Rhs>
215 #ifndef EIGEN_PARSED_BY_DOXYGEN 216 template<
typename RhsType,
typename DstType>
218 void _solve_impl(
const RhsType &rhs, DstType &dst)
const;
246 : m_isInitialized(false),
247 m_isAllocated(false),
248 m_usePrescribedThreshold(false),
249 m_computationOptions(0),
250 m_rows(-1), m_cols(-1), m_diagSize(0)
258 #ifndef EIGEN_PARSED_BY_DOXYGEN 259 template<
typename Derived>
260 template<
typename RhsType,
typename DstType>
270 tmp.noalias() =
m_matrixU.leftCols(l_rank).adjoint() * rhs;
276 template<
typename MatrixType>
301 "SVDBase: thin U and V are only available when your matrix has a dynamic number of columns.");
315 #endif // EIGEN_SVDBASE_H
Derived & setThreshold(Default_t)
unsigned int m_computationOptions
Matrix< Scalar, ColsAtCompileTime, ColsAtCompileTime, MatrixOptions, MaxColsAtCompileTime, MaxColsAtCompileTime > MatrixVType
const SingularValuesType & singularValues() const
MatrixType::StorageIndex StorageIndex
RealScalar threshold() const
Namespace containing all symbols from the Eigen library.
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
NumTraits< typename MatrixType::Scalar >::Real RealScalar
EIGEN_DEVICE_FUNC void _solve_impl(const RhsType &rhs, DstType &dst) const
#define EIGEN_IMPLIES(a, b)
#define EIGEN_SIZE_MIN_PREFER_FIXED(a, b)
bool allocate(Index rows, Index cols, unsigned int computationOptions)
virtual EIGEN_DEVICE_FUNC const Scalar coeff(DenseIndex index) const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void resize(Index rows, Index cols)
bool m_usePrescribedThreshold
Base class of SVD algorithms.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
SVDBase()
Default Constructor.
Matrix< Scalar, RowsAtCompileTime, RowsAtCompileTime, MatrixOptions, MaxRowsAtCompileTime, MaxRowsAtCompileTime > MatrixUType
SingularValuesType m_singularValues
#define EIGEN_STATIC_ASSERT_NON_INTEGER(TYPE)
const MatrixVType & matrixV() const
RealScalar m_prescribedThreshold
const MatrixUType & matrixU() const
Derived & setThreshold(const RealScalar &threshold)
const Derived & derived() const
internal::plain_diag_type< MatrixType, RealScalar >::type SingularValuesType
static void check_template_parameters()
Index nonzeroSingularValues() const
Index m_nonzeroSingularValues
Pseudo expression representing a solving operation.
#define EIGEN_SIZE_MIN_PREFER_DYNAMIC(a, b)
internal::traits< Derived >::MatrixType MatrixType
Base class for all dense matrices, vectors, and expressions.
const Solve< Derived, Rhs > solve(const MatrixBase< Rhs > &b) const
MatrixType::Scalar Scalar