class_docstr: Wrapper for scipy.integrate.solve_bvp.
class_docstr_tok: ["Wrapper","for","scipy.integrate.solve_bvp","."]
docstr: Solve a boundary value problem for a system of ODEs.
docstr_tok: ["Solve","a","boundary","value","problem","for","a","system","of","ODEs","."]
code: def integrate(self, fun, bc, x, y, fun_jac=None, bc_jac=None):
      """Solve a boundary value problem for a system of ODEs."""
  
      def fun_(t, state):
          return fun(t, gs.from_numpy(state))
  
      def bc_(state_0, state_1):
          return bc(gs.from_numpy(state_0), gs.from_numpy(state_1))
  
      if fun_jac is not None:
  
          def fun_jac_(t, state):
              return fun_jac(t, gs.from_numpy(state))
  
      else:
          fun_jac_ = None
  
      result = scipy.integrate.solve_bvp(
          fun_,
          bc_,
          x,
          y,
          tol=self.tol,
          max_nodes=self.max_nodes,
          fun_jac=fun_jac_,
          bc_jac=bc_jac,
          bc_tol=self.bc_tol,
      )
  
      result = result_to_backend_type(result)
      if self.save_result:
          self.result_ = result
  
      return result
  
imports: import scipy
  import geomstats.backend
  from geomstats.numerics._common import result_to_backend_type
label_desc: Use image node_id 2 for calling the ScipySolveBVP obj's underlying member method code with example usage: obj.integrate(fun, bc, x, y, fun_jac, bc_jac) and returns: result, fun, bc, fun_jac