






from typing import Any

import numpy as np





def 						__UpperCAmelCase			(     a_):
							return np.array_equal(a_							,     matrix.conjugate().T)





def 						__UpperCAmelCase			(     a_							,     a_):
							snake_case_				=							v.conjugate().T
							snake_case_				=							v_star.dot(a_)
							assert isinstance(a_							,     np.ndarray)
							return (v_star_dot.dot(a_)) / (v_star.dot(a_))





def 						__UpperCAmelCase			(     ):
							snake_case_				=							np.array([[2, 2 + 1J, 4], [2 - 1J, 3, 1J], [4, -1J, 1]])
							snake_case_				=							np.array([[1], [2], [3]])
							assert is_hermitian(a_), f'''{a} is not hermitian.'''
							print(rayleigh_quotient(a_							,     a_))

							snake_case_				=							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_perceiver import PerceiverImageProcessor


lowercase  							=					logging.get_logger(__name__)




class  UpperCamelCase_      (			snake_case_				):



	'''simple docstring'''




	def __init__(       self       ,			*a       ,			**a					)       ->    None:
								warnings.warn(
								    'The class PerceiverFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
								    ' Please use PerceiverImageProcessor instead.'       ,			a       ,			)
								super().__init__(*a       ,			**a					)





