Skip to content

Commit

Permalink
[numeric] Directly use Eigen::norm to compute the Frobenius norm of a…
Browse files Browse the repository at this point in the history
… matrix
  • Loading branch information
pmoulon committed Jul 6, 2017
1 parent de89087 commit 0d53fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openMVG/numeric/numeric.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ VStack ( const Eigen::MatrixBase<Derived1>& lhs, const Eigen::MatrixBase<Derived
template<typename TMat>
inline double FrobeniusNorm( const TMat &A )
{
return sqrt( A.array().abs2().sum() );
return A.norm();
}

/**
Expand Down

0 comments on commit 0d53fea

Please sign in to comment.