
from typing import Any

import numpy as np






def 						__magic_name__			(   __a      :	np.ndarray						):



     '''simple docstring'''




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






def 						__magic_name__			(   __a      :	np.ndarray	,		__a      :	np.ndarray						):



     '''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 						__magic_name__			(   ):



     '''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_segformer import SegformerImageProcessor


lowerCamelCase_						     =					logging.get_logger(__name__)




class      __A(    __lowerCamelCase			):

  """simple docstring"""







  def __init__(self	,      *SCREAMING_SNAKE_CASE_	,      **SCREAMING_SNAKE_CASE_						):
       warnings.warn(
           """The class SegformerFeatureExtractor is deprecated and will be removed in version 5 of Transformers."""
           """ Please use SegformerImageProcessor instead."""	,      SCREAMING_SNAKE_CASE_	,      )
       super().__init__(*SCREAMING_SNAKE_CASE_	,      **SCREAMING_SNAKE_CASE_						)





