def __mul__(A, B):
    """
        * If A,B are TTvec -> Hadamard product of two TT tensors
        * If A TTvec and B scalar -> multiplication by scalar
        """
    C = A.copy()
    C *= B
    return C
