





import doctest
from collections import deque

import numpy as np


class     __magic_name__     :





     """simple docstring"""



     def __init__(							self				:List[str]     ):





        '''simple docstring'''




        A_    : str								=	[2, 1, 2, -1]
        A_    : Tuple								=	[1, 2, 3, 4]





     def   SCREAMING_SNAKE_CASE						(							self				:Optional[Any]     ):





        '''simple docstring'''




        A_    : Optional[Any]								=	len(self.first_signal     )
        A_    : List[Any]								=	len(self.second_signal     )

        A_    : Union[str, Any]								=	max(_a	,					_a     )

        # create a zero matrix of max_length x max_length
        A_    : int								=	[[0] * max_length for i in range(_a     )]

        # fills the smaller signal with zeros to make both signals of same length
        if length_first_signal < length_second_signal:
           self.first_signal += [0] * (max_length - length_first_signal)
        elif length_first_signal > length_second_signal:
           self.second_signal += [0] * (max_length - length_second_signal)
        for i in range(_a     ):
           A_    : Union[str, Any]								=	deque(self.second_signal     )
           rotated_signal.rotate(_a     )
           for j, item in enumerate(_a     ):
              matrix[i][j] += item

        # multiply the matrix with the first signal
        A_    : Tuple								=	np.matmul(np.transpose(_a     )	,					np.transpose(self.first_signal     )     )

        # rounding-off to two decimal places
        return [round(_a	,					2     ) for i in final_signal]


if __name__ == "__main__":
 doctest.testmod()




"""simple docstring"""




def        lowercase							(		lowerCAmelCase__ :     str    ,					lowerCAmelCase__ :     list[str]			) ->      str:
		__a           =			''''''
		for word_or_phrase in separated:
				if not isinstance(lowerCAmelCase__    ,					lowerCAmelCase__			):
						raise Exception('''join() accepts only strings to be joined'''			)
				joined += word_or_phrase + separator
		return joined.strip(lowerCAmelCase__			)


if __name__ == "__main__":
				from doctest import testmod

				testmod()






