Add tests for real and complex Schur; extend test for Hessenberg.

Make a minor correction to the ComplexSchur class.
This commit is contained in:
Jitse Niesen
2010-04-02 14:32:20 +01:00
parent 3a14a13533
commit a16a36ecf2
5 changed files with 176 additions and 14 deletions

View File

@@ -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;
}