LocalModel.evaluate =================== .. py:method:: t3toolbox.fitting.LocalModel.evaluate(p) .. code-block:: python def evaluate(self, p) -> NDArray: # m(p), shape C The quadratic-model value ``m(p) = c + gᵀp + ½ pᵀ H p`` of this model's mode, reusing the cached ``c`` and ``g``. Gauss-Newton (``H = JᵀJ``): one **forward** apply -- the quadratic term needs only ``½ pᵀ H p = ½‖𝒥 Π p‖²``, not a Hessian apply -- and the value equals ``½‖r + 𝒥 Π p‖²`` exactly (the objective is quadratic in the ambient tensor). Exact: plus ``½`` :py:meth:`curvature_quadratic`. ``p`` is projected here, shared by the linear term ``⟨g, Πp⟩`` and the quadratic. With a ``regularizer``, ``c`` and ``g`` already carry ``ρ`` / ``g_R``, so only the quadratic ``½⟨p, H_R p⟩`` is added here.