11 PONCA_MULTIARCH_STD_MATH(sqrt);
14 const VectorType lq = Base::getNeighborFilter().convertToLocalBasis(_q);
18 Scalar sqnorm = m_ul.squaredNorm();
19 return Base::getNeighborFilter().convertToGlobalBasis(lq - m_ul * (lq.dot(m_ul)) / sqnorm);
23 Scalar potential = potentialLocal(lq);
26 Scalar t = -(norm - sqrt(norm * norm -
Scalar(4) * m_uq * potential)) / (
Scalar(2) * m_uq * norm);
27 return Base::getNeighborFilter().convertToGlobalBasis(lq + t * grad);