Skip to content

Commit

Permalink
Resolve aliasing issue (relates #49)
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Feb 1, 2019
1 parent 1509ae8 commit ec35140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tapkee/routines/eigendecomposition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ EigendecompositionResult eigendecomposition_impl_dense(const MatrixType& wm, Ind
timed_context context("Eigen library dense eigendecomposition");

DenseSymmetricMatrix dense_wm = wm;
dense_wm += dense_wm.transpose();
dense_wm += dense_wm.transpose().eval();
dense_wm /= 2.0;
DenseSelfAdjointEigenSolver solver(dense_wm);

Expand Down

0 comments on commit ec35140

Please sign in to comment.