def tanhm(A):
 A = _asarray_square(A)
 return _maybe_real(A, solve(coshm(A), sinhm(A)))

def tanhm ( A ) : A = _asarray_square ( A ) return _maybe_real ( A , solve ( coshm ( A ) , sinhm ( A ) ) )
compute the hyperbolic matrix tangent .