Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
yixuan committed Mar 3, 2018
1 parent 54f31e7 commit c85eb5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/LinAlg/UpperHessenbergQR.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class UpperHessenbergQR

// Make a copy of the R matrix
dest.resize(m_n, m_n);
dest.noalias() = m_mat_T;
std::copy(m_mat_T.data(), m_mat_T.data() + m_mat_T.size(), dest.data());

const Index n1 = m_n - 1;
for(Index i = 0; i < n1; i++)
Expand Down Expand Up @@ -507,7 +507,7 @@ class TridiagQR: public UpperHessenbergQR<Scalar>

m_T_diag.noalias() = mat.diagonal();
m_T_lsub.noalias() = mat.diagonal(-1);
m_T_usub.noalias() = mat.diagonal(-1);
m_T_usub.noalias() = m_T_lsub;

// A number of pointers to avoid repeated address calculation
Scalar *c = this->m_rot_cos.data(), // pointer to the cosine vector
Expand Down

0 comments on commit c85eb5d

Please sign in to comment.