MCPcopy Create free account
hub / github.com/PX4/eigen / squaredNorm

Method squaredNorm

Eigen/src/SparseCore/SparseDot.h:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75template<typename Derived>
76inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real
77SparseMatrixBase<Derived>::squaredNorm() const
78{
79 return numext::real((*this).cwiseAbs2().sum());
80}
81
82template<typename Derived>
83inline typename NumTraits<typename internal::traits<Derived>::Scalar>::Real

Callers 1

isApproxMethod · 0.45

Calls 2

realFunction · 0.50
sumMethod · 0.45

Tested by

no test coverage detected