Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/DopplerVelocityLog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1571,9 +1571,11 @@ namespace gz
if (numBeamsLocked >= 3)
{
// Enough rows for a unique least squares solution
const auto svdDecomposition =
beamBasis.topRows(numBeamsLocked).jacobiSvd(
Eigen::ComputeThinU | Eigen::ComputeThinV);
const Eigen::MatrixXd svdMat =
beamBasis.topRows(numBeamsLocked).eval();
using SvdT = Eigen::JacobiSVD<Eigen::MatrixXd>;
const SvdT svdDecomposition(svdMat,
Eigen::ComputeThinU | Eigen::ComputeThinV);

// Estimate DVL velocity mean and covariance in the reference frame
const Eigen::Vector3d velocityMeanInReferenceFrame =
Expand Down Expand Up @@ -1821,9 +1823,11 @@ namespace gz
if (numBeamsLocked >= 3)
{
// Enough rows for a unique least squares solution
const auto svdDecomposition =
beamBasis.topRows(numBeamsLocked).jacobiSvd(
Eigen::ComputeThinU | Eigen::ComputeThinV);
const Eigen::MatrixXd svdMat =
beamBasis.topRows(numBeamsLocked).eval();
using SvdT = Eigen::JacobiSVD<Eigen::MatrixXd>;
const SvdT svdDecomposition(svdMat,
Eigen::ComputeThinU | Eigen::ComputeThinV);

// Estimate DVL velocity mean and covariance in the reference frame
const Eigen::Vector3d velocityMeanInReferenceFrame =
Expand Down
Loading