mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-17 20:03:17 +08:00
mark LLT/LDLT solveInPlace func internal and rm their boolean returned value
This commit is contained in:
parent
2334291157
commit
01fad14d78
@ -363,7 +363,9 @@ struct ei_solve_retval<LDLT<_MatrixType,_UpLo>, Rhs>
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/** This is the \em in-place version of solve().
|
/** \internal use x = ldlt_object.solve(x);
|
||||||
|
*
|
||||||
|
* This is the \em in-place version of solve().
|
||||||
*
|
*
|
||||||
* \param bAndX represents both the right-hand side matrix b and result x.
|
* \param bAndX represents both the right-hand side matrix b and result x.
|
||||||
*
|
*
|
||||||
|
@ -134,7 +134,7 @@ template<typename _MatrixType, int _UpLo> class LLT
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
bool solveInPlace(MatrixBase<Derived> &bAndX) const;
|
void solveInPlace(MatrixBase<Derived> &bAndX) const;
|
||||||
|
|
||||||
LLT& compute(const MatrixType& matrix);
|
LLT& compute(const MatrixType& matrix);
|
||||||
|
|
||||||
@ -309,7 +309,9 @@ struct ei_solve_retval<LLT<_MatrixType, UpLo>, Rhs>
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/** This is the \em in-place version of solve().
|
/** \internal use x = llt_object.solve(x);
|
||||||
|
*
|
||||||
|
* This is the \em in-place version of solve().
|
||||||
*
|
*
|
||||||
* \param bAndX represents both the right-hand side matrix b and result x.
|
* \param bAndX represents both the right-hand side matrix b and result x.
|
||||||
*
|
*
|
||||||
@ -322,13 +324,12 @@ struct ei_solve_retval<LLT<_MatrixType, UpLo>, Rhs>
|
|||||||
*/
|
*/
|
||||||
template<typename MatrixType, int _UpLo>
|
template<typename MatrixType, int _UpLo>
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
bool LLT<MatrixType,_UpLo>::solveInPlace(MatrixBase<Derived> &bAndX) const
|
void LLT<MatrixType,_UpLo>::solveInPlace(MatrixBase<Derived> &bAndX) const
|
||||||
{
|
{
|
||||||
ei_assert(m_isInitialized && "LLT is not initialized.");
|
ei_assert(m_isInitialized && "LLT is not initialized.");
|
||||||
ei_assert(m_matrix.rows()==bAndX.rows());
|
ei_assert(m_matrix.rows()==bAndX.rows());
|
||||||
matrixL().solveInPlace(bAndX);
|
matrixL().solveInPlace(bAndX);
|
||||||
matrixU().solveInPlace(bAndX);
|
matrixU().solveInPlace(bAndX);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** \returns the matrix represented by the decomposition,
|
/** \returns the matrix represented by the decomposition,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user