






'''simple docstring'''







from math import cos, sin





def 					SCREAMING_SNAKE_CASE_			(UpperCamelCase ) ->			list[list[float]]:
							lowerCamelCase__   :      Optional[Any]			    =			float(UpperCamelCase )
							return [[scaling_factor * int(x == y ) for x in range(2 )] for y in range(2 )]





def 					SCREAMING_SNAKE_CASE_			(UpperCamelCase ) ->			list[list[float]]:
							lowerCamelCase__    ,						lowerCamelCase__   :      Optional[int]			    =			cos(UpperCamelCase ), sin(UpperCamelCase )
							return [[c, -s], [s, c]]





def 					SCREAMING_SNAKE_CASE_			(UpperCamelCase ) ->			list[list[float]]:
							lowerCamelCase__    ,						lowerCamelCase__   :      Union[str, Any]			    =			cos(UpperCamelCase ), sin(UpperCamelCase )
							lowerCamelCase__   :      Union[str, Any]			    =			c * s
							return [[c * c, cs], [cs, s * s]]





def 					SCREAMING_SNAKE_CASE_			(UpperCamelCase ) ->			list[list[float]]:
							lowerCamelCase__    ,						lowerCamelCase__   :      List[str]			    =			cos(UpperCamelCase ), sin(UpperCamelCase )
							lowerCamelCase__   :      Optional[int]			    =			c * s
							return [[2 * c - 1, 2 * cs], [2 * cs, 2 * s - 1]]


print(F'    {scaling(5) = }')
print(F'  {rotation(45) = }')
print(F'{projection(45) = }')



print(F'{reflection(45) = }')









'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_A      :     Optional[int]       	={'''configuration_visual_bert''': ['''VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''VisualBertConfig''']}

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			_A      :     Optional[int]       	=[
			    '''VISUAL_BERT_PRETRAINED_MODEL_ARCHIVE_LIST''',
			    '''VisualBertForMultipleChoice''',
			    '''VisualBertForPreTraining''',
			    '''VisualBertForQuestionAnswering''',
			    '''VisualBertForRegionToPhraseAlignment''',
			    '''VisualBertForVisualReasoning''',
			    '''VisualBertLayer''',
			    '''VisualBertModel''',
			    '''VisualBertPreTrainedModel''',
			]


if TYPE_CHECKING:
			from .configuration_visual_bert import VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, VisualBertConfig

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_visual_bert import (
						    VISUAL_BERT_PRETRAINED_MODEL_ARCHIVE_LIST,
						    VisualBertForMultipleChoice,
						    VisualBertForPreTraining,
						    VisualBertForQuestionAnswering,
						    VisualBertForRegionToPhraseAlignment,
						    VisualBertForVisualReasoning,
						    VisualBertLayer,
						    VisualBertModel,
						    VisualBertPreTrainedModel,
						)


else:
			import sys

			_A      :     int       	=_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)

