* bugfixes in Product, and test/product_selfadjoint

* speed up in the extraction of the matrix Q in Tridiagonalization
This commit is contained in:
Gael Guennebaud
2009-07-16 00:03:17 +02:00
parent 97c9445c60
commit 34490f1493
5 changed files with 33 additions and 18 deletions

View File

@@ -198,7 +198,7 @@ class BandMatrix : public MultiplierBase<BandMatrix<_Scalar,Rows,Cols,Supers,Sub
* \sa class BandMatrix
*/
template<typename Scalar, int Size, int Options>
class TridiagonalMatrix : public BandMatrix<Scalar,Size,Size,1,Options&SelfAdjoint?0:1,Options|RowMajor>
class TridiagonalMatrix : public BandMatrix<Scalar,Size,Size,Options&SelfAdjoint?0:1,1,Options|RowMajor>
{
typedef BandMatrix<Scalar,Size,Size,1,Options&SelfAdjoint?0:1,Options|RowMajor> Base;
public:

View File

@@ -880,7 +880,7 @@ inline Derived& MatrixBase<Derived>::lazyAssign(const Product<Lhs,Rhs,CacheFrien
}
else
{
lazyAssign(static_cast<const MatrixBase<Product<Lhs,Rhs,CacheFriendlyProduct> > &>(product));
lazyAssign(Product<Lhs,Rhs,NormalProduct>(product.lhs(),product.rhs()));
}
return derived();
}