Commit 5cf8794f authored by Thibault Lejemble's avatar Thibault Lejemble

fix mls dPotential

parent 4179fcf6
......@@ -155,13 +155,10 @@ template < class DataPoint, class _WFunctor, typename T>
typename MlsSphereFitDer<DataPoint, _WFunctor, T>::ScalarArray
MlsSphereFitDer<DataPoint, _WFunctor, T>::dPotential() const
ScalarArray result = ScalarArray::Zero();
result[0] = Base::m_dUc[0];
ScalarArray result = Base::m_dUc;
result.template tail<Dim>() = Base::m_ul;
result.template tail<Dim>() += Base::m_ul;
return result;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment