





'''simple docstring'''


from typing import Any

import numpy as np







def    _lowerCamelCase  (__lowerCamelCase  :     np.ndarray     )   ->    bool:
			return np.array_equal(__lowerCamelCase					,  matrix.conjugate().T     )







def    _lowerCamelCase  (__lowerCamelCase  :     np.ndarray					,  __lowerCamelCase  :     np.ndarray     )   ->    Any:
			a__     = v.conjugate().T
			a__     = v_star.dot(__lowerCamelCase     )
			assert isinstance(__lowerCamelCase					,  np.ndarray     )
			return (v_star_dot.dot(__lowerCamelCase     )) / (v_star.dot(__lowerCamelCase     ))







def    _lowerCamelCase  ()   ->    None:
			a__     = np.array([[2, 2 + 1j, 4], [2 - 1j, 3, 1j], [4, -1j, 1]]     )
			a__     = np.array([[1], [2], [3]]     )
			assert is_hermitian(__lowerCamelCase     ), f'''{a} is not hermitian.'''
			print(rayleigh_quotient(__lowerCamelCase					,  __lowerCamelCase     )     )

			a__     = np.array([[1, 2, 4], [2, 3, -1], [4, -1, 1]]     )
			assert is_hermitian(__lowerCamelCase     ), f'''{a} is not hermitian.'''
			assert rayleigh_quotient(__lowerCamelCase					,  __lowerCamelCase     ) == float(3     )


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		tests()










'''simple docstring'''


import re







def    _lowerCamelCase  (__lowerCamelCase  :     str     )   ->    bool:
			a__     = re.compile(
			    r"^(?:0|94|\+94|0{2}94)" r"7(0|1|2|4|5|6|7|8)" r"(-| |)" r"\d{7}$"     )

			return bool(re.search(__lowerCamelCase					,  __lowerCamelCase     )     )


if __name__ == "__main__":
		lowerCAmelCase_   :   Any       =					"0094702343221"

		print(is_sri_lankan_phone_number(phone))



