def _compute_unary_hessian_vector_product(self, gradient, argument):
    'Returns a function accepting two arguments to compute a\n        Hessian-vector product of a scalar-valued unary function.\n        '
    argument_type = argument.type()
    try:
        Rop = T.Rop(gradient, argument, argument_type)
    except NotImplementedError:
        proj = T.sum((gradient * disconnected_grad(argument_type)))
        Rop = T.grad(proj, argument)
    return self._compile_function_without_warnings([argument, argument_type], Rop)
Returns a function accepting two arguments to compute a
Hessian-vector product of a scalar-valued unary function.
def _compute_unary_hessian_vector_product(self, gradient, argument):
    'Returns a function accepting two arguments to compute a\n        Hessian-vector product of a scalar-valued unary function.\n        '
    argument_type = argument.type()
    try:
        Rop = T.Rop(gradient, argument, argument_type)
    except NotImplementedError:
        proj = T.sum((gradient * disconnected_grad(argument_type)))
        Rop = T.grad(proj, argument)
    return self._compile_function_without_warnings([argument, argument_type], Rop)