mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Fix tridiagonalization_inplace_selector.
The `Options` of the new `hCoeffs` vector do not necessarily match those of the `MatrixType`, leading to build errors. Having the `CoeffVectorType` be a template parameter relieves this restriction.
This commit is contained in:
parent
bf426faf93
commit
ebd4b17d2f
@ -440,9 +440,8 @@ void tridiagonalization_inplace(MatrixType& mat, DiagonalType& diag, SubDiagonal
|
|||||||
template<typename MatrixType, int Size, bool IsComplex>
|
template<typename MatrixType, int Size, bool IsComplex>
|
||||||
struct tridiagonalization_inplace_selector
|
struct tridiagonalization_inplace_selector
|
||||||
{
|
{
|
||||||
typedef typename Tridiagonalization<MatrixType>::CoeffVectorType CoeffVectorType;
|
|
||||||
typedef typename Tridiagonalization<MatrixType>::HouseholderSequenceType HouseholderSequenceType;
|
typedef typename Tridiagonalization<MatrixType>::HouseholderSequenceType HouseholderSequenceType;
|
||||||
template<typename DiagonalType, typename SubDiagonalType>
|
template<typename DiagonalType, typename SubDiagonalType, typename CoeffVectorType>
|
||||||
static EIGEN_DEVICE_FUNC
|
static EIGEN_DEVICE_FUNC
|
||||||
void run(MatrixType& mat, DiagonalType& diag, SubDiagonalType& subdiag, CoeffVectorType& hCoeffs, bool extractQ)
|
void run(MatrixType& mat, DiagonalType& diag, SubDiagonalType& subdiag, CoeffVectorType& hCoeffs, bool extractQ)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user