Ensure info() implementation across all SolverBase derived types

This commit is contained in:
Damiano Franzò
2025-05-02 09:56:48 +02:00
committed by Rasmus Munk Larsen
parent f3e7d64f3d
commit 6f1a143418
5 changed files with 52 additions and 0 deletions

View File

@@ -82,6 +82,17 @@ class FullPivHouseholderQR : public SolverBase<FullPivHouseholderQR<MatrixType_,
typedef typename internal::plain_col_type<MatrixType>::type ColVectorType;
typedef typename MatrixType::PlainObject PlainObject;
/** \brief Reports whether the QR factorization was successful.
*
* \note This function always returns \c Success. It is provided for compatibility
* with other factorization routines.
* \returns \c Success
*/
ComputationInfo info() const {
eigen_assert(m_isInitialized && "FullPivHouseholderQR is not initialized.");
return Success;
}
/** \brief Default Constructor.
*
* The default constructor is useful in cases in which the user intends to

View File

@@ -75,6 +75,17 @@ class HouseholderQR : public SolverBase<HouseholderQR<MatrixType_>> {
typedef HouseholderSequence<MatrixType, internal::remove_all_t<typename HCoeffsType::ConjugateReturnType>>
HouseholderSequenceType;
/** \brief Reports whether the QR factorization was successful.
*
* \note This function always returns \c Success. It is provided for compatibility
* with other factorization routines.
* \returns \c Success
*/
ComputationInfo info() const {
eigen_assert(m_isInitialized && "HouseHolderQR is not initialized.");
return Success;
}
/**
* \brief Default Constructor.
*