16 #ifndef EIGEN_SVDBASE_H 17 #define EIGEN_SVDBASE_H 47 template<
typename Derived>
53 typedef typename MatrixType::Scalar
Scalar;
71 Derived&
derived() {
return *
static_cast<Derived*
>(
this); }
72 const Derived&
derived()
const {
return *
static_cast<const Derived*
>(
this); }
135 RealScalar premultiplied_threshold = numext::maxi<RealScalar>(
m_singularValues.coeff(0) *
threshold(), (std::numeric_limits<RealScalar>::min)());
204 template<
typename Rhs>
213 #ifndef EIGEN_PARSED_BY_DOXYGEN 214 template<
typename RhsType,
typename DstType>
216 void _solve_impl(
const RhsType &rhs, DstType &dst)
const;
244 : m_isInitialized(false),
245 m_isAllocated(false),
246 m_usePrescribedThreshold(false),
247 m_computationOptions(0),
248 m_rows(-1), m_cols(-1), m_diagSize(0)
256 #ifndef EIGEN_PARSED_BY_DOXYGEN 257 template<
typename Derived>
258 template<
typename RhsType,
typename DstType>
268 tmp.noalias() =
m_matrixU.leftCols(l_rank).adjoint() * rhs;
274 template<
typename MatrixType>
299 "SVDBase: thin U and V are only available when your matrix has a dynamic number of columns.");
313 #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
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
NumTraits< typename MatrixType::Scalar >::Real RealScalar
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const AbsReturnType abs() const
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)
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)
EIGEN_DEVICE_FUNC const Scalar & 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