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