def hessian(self, m_in): isVector(m_in) return self.Minvpriordot(m_in)
def hessian(self, mhat): """ returns the Hessian applied along a direction mhat """ isVector(mhat) return self.H * mhat
def hessian(self, uin): isVector(uin) return self.W * uin