Calculate the hyperbolic tangent of each element of a Matrix.
This function calculates the hyperbolic tangent of each element in a Matrix