





import warnings

from ...utils import logging
from .image_processing_glpn import GLPNImageProcessor


_SCREAMING_SNAKE_CASE  :						List[str]         =    logging.get_logger(__name__)






class  UpperCAmelCase__	( snake_case_ ):






  """simple docstring"""


  def __init__(							self		:	int			,     *__lowerCamelCase		:	int			,     **__lowerCamelCase		:	Optional[int]      )	->							str:
       warnings.warn(
           '''The class GLPNFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
           ''' use GLPNImageProcessor instead.'''			,     __lowerCamelCase			,     )
       super().__init__(*__lowerCamelCase			,     **__lowerCamelCase      )





from collections.abc import Callable

import numpy as np
def        UpperCAmelCase_     (		_A   ,	_A   ,	_A   ,	_A   ,	_A       ):





     '''simple docstring'''




     SCREAMING_SNAKE_CASE__					=					int(np.ceil((x_end - xa) / step_size       )       )
     SCREAMING_SNAKE_CASE__					=					np.zeros((n + 1,)       )
     SCREAMING_SNAKE_CASE__					=					ya
     SCREAMING_SNAKE_CASE__					=					xa

     for k in range(_A       ):
          SCREAMING_SNAKE_CASE__					=					y[k] + step_size * ode_func(_A   ,	y[k]       )
          SCREAMING_SNAKE_CASE__					=					y[k] + (
              (step_size / 2) * (ode_func(_A   ,	y[k]       ) + ode_func(x + step_size   ,	_A       ))
          )
          x += step_size

     return y


if __name__ == "__main__":
       import doctest

       doctest.testmod()


