




'''simple docstring'''




from math import cos, sin




def 						snake_case__    ( lowerCamelCase__				:   float			)   ->   list[list[float]]:
					A_ :     Dict =							float(lowerCamelCase__			)
					return [[scaling_factor * int(x == y			) for x in range(2			)] for y in range(2			)]




def 						snake_case__    ( lowerCamelCase__				:   float			)   ->   list[list[float]]:
					A_ ,A_ :     int =							cos(lowerCamelCase__			), sin(lowerCamelCase__			)
					return [[c, -s], [s, c]]




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




def 						snake_case__    ( lowerCamelCase__				:   float			)   ->   list[list[float]]:
					A_ ,A_ :     Tuple =							cos(lowerCamelCase__			), sin(lowerCamelCase__			)
					A_ :     str =							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


snake_case__          =						{"""configuration_nat""": ["""NAT_PRETRAINED_CONFIG_ARCHIVE_MAP""", """NatConfig"""]}


try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							snake_case__          =						[
							    """NAT_PRETRAINED_MODEL_ARCHIVE_LIST""",
							    """NatForImageClassification""",
							    """NatModel""",
							    """NatPreTrainedModel""",
							    """NatBackbone""",
							]

if TYPE_CHECKING:
							from .configuration_nat import NAT_PRETRAINED_CONFIG_ARCHIVE_MAP, NatConfig

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_nat import (
														    NAT_PRETRAINED_MODEL_ARCHIVE_LIST,
														    NatBackbone,
														    NatForImageClassification,
														    NatModel,
														    NatPreTrainedModel,
														)

else:
							import sys

							snake_case__          =						_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)



