


from typing import Any

import numpy as np





def __UpperCAmelCase       (		__A			)						->					bool:



       '''simple docstring'''





       return np.array_equal(__A ,						matrix.conjugate().T			)





def __UpperCAmelCase       (		__A ,						__A			)						->					Any:



       '''simple docstring'''





       UpperCAmelCase__										=     v.conjugate().T
       UpperCAmelCase__										=     v_star.dot(__A			)
       assert isinstance(__A ,						np.ndarray			)
       return (v_star_dot.dot(__A			)) / (v_star.dot(__A			))





def __UpperCAmelCase       (		)						->					None:



       '''simple docstring'''





       UpperCAmelCase__										=     np.array([[2, 2 + 1j, 4], [2 - 1j, 3, 1j], [4, -1j, 1]]			)
       UpperCAmelCase__										=     np.array([[1], [2], [3]]			)
       assert is_hermitian(__A			), F"""{a} is not hermitian."""
       print(rayleigh_quotient(__A ,						__A			)			)

       UpperCAmelCase__										=     np.array([[1, 2, 4], [2, 3, -1], [4, -1, 1]]			)
       assert is_hermitian(__A			), F"""{a} is not hermitian."""
       assert rayleigh_quotient(__A ,						__A			) == float(3			)


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    tests()









import warnings

from ...utils import logging
from .image_processing_dpt import DPTImageProcessor


A      = logging.get_logger(__name__)


class     lowercase__  (					__SCREAMING_SNAKE_CASE		):






  def __init__(					self      :					Union[str, Any]		,						*_lowercase      :					Any		,						**_lowercase      :					Optional[int] ):




         """simple docstring"""







         warnings.warn(
             "The class DPTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
             " use DPTImageProcessor instead."		,						_lowercase		,						)
         super().__init__(*_lowercase		,						**_lowercase )





