class_docstr: The interpolating polynomial for a set of points.
  
  Constructs a polynomial that passes through a given set of points.
  Allows evaluation of the polynomial, efficient changing of the y
  values to be interpolated, and updating by adding more x values.
  For reasons of numerical stability, this function does not compute
  the coefficients of the polynomial.
  The value `yi` need to be provided before the function is
  evaluated, but none of the preprocessing depends on them,
  so rapid updates are possible.
  
  Parameters
  ----------
  xi : cupy.ndarray
      1-D array of x-coordinates of the points the polynomial should
      pass through
  yi : cupy.ndarray, optional
      The y-coordinates of the points the polynomial should pass through.
      If None, the y values will be supplied later via the `set_y` method
  axis : int, optional
      Axis in the yi array corresponding to the x-coordinate values
  
  See Also
  --------
  scipy.interpolate.BarycentricInterpolator
class_docstr_tok: ["The","interpolating","polynomial","for","a","set","of","points",".","Constructs","a","polynomial","that","passes","through","a","given","set","of","points",".","Allows","evaluation","of","the","polynomial",",","efficient","changing","of","the","y","values","to","be","interpolated",",","and","updating","by","adding","more","x","values",".","For","reasons","of","numerical","stability",",","this","function","does","not","compute","the","coefficients","of","the","polynomial",".","The","value","`","yi","`","need","to","be","provided","before","the","function","is","evaluated",",","but","none","of","the","preprocessing","depends","on","them",",","so","rapid","updates","are","possible",".","Parameters","--","--","--","--","--","xi",":","cupy.ndarray","1-D","array","of","x-coordinates","of","the","points","the","polynomial","should","pass","through","yi",":","cupy.ndarray",",","optional","The","y-coordinates","of","the","points","the","polynomial","should","pass","through",".","If","None",",","the","y","values","will","be","supplied","later","via","the","`","set_y","`","method","axis",":","int",",","optional","Axis","in","the","yi","array","corresponding","to","the","x-coordinate","values","See","Also","--","--","--","--","scipy.interpolate.BarycentricInterpolator"]
docstr: Update the y values to be interpolated.
  
  The barycentric interpolation algorithm requires the calculation
  of weights, but these depend only on the xi. The yi can be changed
  at any time.
  
  Parameters
  ----------
  yi : cupy.ndarray
      The y-coordinates of the points the polynomial should pass
      through. If None, the y values will be supplied later.
  axis : int, optional
      Axis in the yi array corresponding to the x-coordinate values
docstr_tok: ["Update","the","y","values","to","be","interpolated",".","The","barycentric","interpolation","algorithm","requires","the","calculation","of","weights",",","but","these","depend","only","on","the","xi",".","The","yi","can","be","changed","at","any","time",".","Parameters","--","--","--","--","--","yi",":","cupy.ndarray","The","y-coordinates","of","the","points","the","polynomial","should","pass","through",".","If","None",",","the","y","values","will","be","supplied","later",".","axis",":","int",",","optional","Axis","in","the","yi","array","corresponding","to","the","x-coordinate","values"]
code: def set_yi(self, yi, axis=None):
      """Update the y values to be interpolated.
  
      The barycentric interpolation algorithm requires the calculation
      of weights, but these depend only on the xi. The yi can be changed
      at any time.
  
      Parameters
      ----------
      yi : cupy.ndarray
          The y-coordinates of the points the polynomial should pass
          through. If None, the y values will be supplied later.
      axis : int, optional
          Axis in the yi array corresponding to the x-coordinate values
  
      """
  
      if yi is None:
          self.yi = None
          return
      self._set_yi(yi, xi=self.xi, axis=axis)
      self.yi = self._reshape_yi(yi)
      self.n, self.r = self.yi.shape
  
imports: import cupy
  from cupyx.scipy._lib._util import _asarray_validated, float_factorial
label_desc: Use image node_id 2 for calling the BarycentricInterpolator obj's underlying member method code with example usage: obj.set_yi(yi, axis) without return types