Skip to content

Commit

Permalink
back to cholesky
Browse files Browse the repository at this point in the history
  • Loading branch information
isikmustafa committed Feb 4, 2019
1 parent 7b7c3f2 commit ccd4b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/src/linear_least_squares.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ std::array<float, 6> LinearLeastSquares::solve(float* mat_a_transpose_device, fl
HANDLE_ERROR(cudaMemcpy(m_ATb_host.data(), m_ATb_device, 6 * sizeof(float), cudaMemcpyDeviceToHost));

// Solve the normal equation on host.
m_result = m_ATA_host.fullPivLu().solve(m_ATb_host);
m_result = m_ATA_host.llt().solve(m_ATb_host);

return { m_result(0), m_result(1), m_result(2), m_result(3), m_result(4), m_result(5) };
}
Expand Down

0 comments on commit ccd4b2c

Please sign in to comment.