mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add tests for real and complex Schur; extend test for Hessenberg.
Make a minor correction to the ComplexSchur class.
This commit is contained in:
@@ -86,7 +86,7 @@ template<typename _MatrixType> class ComplexSchur
|
||||
|
||||
/** \brief Default constructor.
|
||||
*
|
||||
* \param [in] size The size of the matrix whose Schur decomposition will be computed.
|
||||
* \param [in] size Positive integer, size of the matrix whose Schur decomposition will be computed.
|
||||
*
|
||||
* The default constructor is useful in cases in which the user
|
||||
* intends to perform decompositions via compute(). The \p size
|
||||
@@ -95,7 +95,7 @@ template<typename _MatrixType> class ComplexSchur
|
||||
*
|
||||
* \sa compute() for an example.
|
||||
*/
|
||||
ComplexSchur(int size = RowsAtCompileTime==Dynamic ? 0 : RowsAtCompileTime)
|
||||
ComplexSchur(int size = RowsAtCompileTime==Dynamic ? 1 : RowsAtCompileTime)
|
||||
: m_matT(size,size), m_matU(size,size), m_isInitialized(false), m_matUisUptodate(false)
|
||||
{}
|
||||
|
||||
@@ -157,7 +157,7 @@ template<typename _MatrixType> class ComplexSchur
|
||||
*/
|
||||
const ComplexMatrixType& matrixT() const
|
||||
{
|
||||
ei_assert(m_isInitialized && "ComplexShur is not initialized.");
|
||||
ei_assert(m_isInitialized && "ComplexSchur is not initialized.");
|
||||
return m_matT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user