



"""simple docstring"""
from collections.abc import Callable

import numpy as np


def 			_SCREAMING_SNAKE_CASE						(__lowerCAmelCase ,  __lowerCAmelCase ,  __lowerCAmelCase ,  __lowerCAmelCase ,  __lowerCAmelCase							) ->						np.array:







  '''simple docstring'''


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

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

  return y


if __name__ == "__main__":
       import doctest

       doctest.testmod()






"""simple docstring"""
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


UpperCAmelCase						:		Optional[Any]			= {"configuration_wavlm": ["WAVLM_PRETRAINED_CONFIG_ARCHIVE_MAP", "WavLMConfig"]}

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       UpperCAmelCase						:		str			= [
           "WAVLM_PRETRAINED_MODEL_ARCHIVE_LIST",
           "WavLMForAudioFrameClassification",
           "WavLMForCTC",
           "WavLMForSequenceClassification",
           "WavLMForXVector",
           "WavLMModel",
           "WavLMPreTrainedModel",
       ]

if TYPE_CHECKING:
       from .configuration_wavlm import WAVLM_PRETRAINED_CONFIG_ARCHIVE_MAP, WavLMConfig

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_wavlm import (
                  WAVLM_PRETRAINED_MODEL_ARCHIVE_LIST,
                  WavLMForAudioFrameClassification,
                  WavLMForCTC,
                  WavLMForSequenceClassification,
                  WavLMForXVector,
                  WavLMModel,
                  WavLMPreTrainedModel,
              )

else:
       import sys

       UpperCAmelCase						:		Optional[Any]			= _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)

