mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Bypass identity reflectors.
This commit is contained in:
parent
8bde7da086
commit
ca3746c6f8
@ -119,7 +119,7 @@ void MatrixBase<Derived>::applyHouseholderOnTheLeft(
|
|||||||
{
|
{
|
||||||
*this *= Scalar(1)-tau;
|
*this *= Scalar(1)-tau;
|
||||||
}
|
}
|
||||||
else
|
else if(tau!=Scalar(0))
|
||||||
{
|
{
|
||||||
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace,cols());
|
Map<typename internal::plain_row_type<PlainObject>::type> tmp(workspace,cols());
|
||||||
Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows()-1, cols());
|
Block<Derived, EssentialPart::SizeAtCompileTime, Derived::ColsAtCompileTime> bottom(derived(), 1, 0, rows()-1, cols());
|
||||||
@ -156,7 +156,7 @@ void MatrixBase<Derived>::applyHouseholderOnTheRight(
|
|||||||
{
|
{
|
||||||
*this *= Scalar(1)-tau;
|
*this *= Scalar(1)-tau;
|
||||||
}
|
}
|
||||||
else
|
else if(tau!=Scalar(0))
|
||||||
{
|
{
|
||||||
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace,rows());
|
Map<typename internal::plain_col_type<PlainObject>::type> tmp(workspace,rows());
|
||||||
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(), cols()-1);
|
Block<Derived, Derived::RowsAtCompileTime, EssentialPart::SizeAtCompileTime> right(derived(), 0, 1, rows(), cols()-1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user