def sinm(A):
 A = _asarray_square(A)
 if np.iscomplexobj(A):
  return ((-0.5j) * (expm((1j * A)) - expm(((-1j) * A))))
 else:
  return expm((1j * A)).imag

def sinm ( A ) : A = _asarray_square ( A ) if np . iscomplexobj ( A ) : return ( ( - 0.5j ) * ( expm ( ( 1j * A ) ) - expm ( ( ( - 1j ) * A ) ) ) ) else : return expm ( ( 1j * A ) ) . imag
compute the matrix sine .