mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-25 15:46:56 +08:00
Explicitly construct the scalar for non-implicitly convertible types
This commit is contained in:
parent
171bd08ca9
commit
d81aa18f4d
@ -345,7 +345,7 @@ EIGEN_DEVICE_FUNC void tridiagonalization_inplace(MatrixType& matA, CoeffVectorT
|
|||||||
|
|
||||||
// Apply similarity transformation to remaining columns,
|
// Apply similarity transformation to remaining columns,
|
||||||
// i.e., A = H A H' where H = I - h v v' and v = matA.col(i).tail(n-i-1)
|
// i.e., A = H A H' where H = I - h v v' and v = matA.col(i).tail(n-i-1)
|
||||||
matA.col(i).coeffRef(i + 1) = 1;
|
matA.col(i).coeffRef(i + 1) = Scalar(1);
|
||||||
|
|
||||||
hCoeffs.tail(n - i - 1).noalias() =
|
hCoeffs.tail(n - i - 1).noalias() =
|
||||||
(matA.bottomRightCorner(remainingSize, remainingSize).template selfadjointView<Lower>() *
|
(matA.bottomRightCorner(remainingSize, remainingSize).template selfadjointView<Lower>() *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user