I would like to use the Pade approximation in my numerical procedure and I would like to use it to approximate the logarithm of a matrix. However, I couldn't find the correct expression for it in the literature. I know the general expression of the Pade approximation but I do not know how to use it for my Matrix logarithm.
So suppose that I have a matrix $\textbf{X}$ that takes the following form
$\textbf{X}=\begin{pmatrix} 1.002 & 0 & 0 \\ 0 & 1.01 & 0 \\ 0 & 0 & 1.1 \end{pmatrix}$.
The expression for the Pade approximation reads
$(\textbf{A}+\textbf{A}^2/2).(\textbf{I}+\textbf{A}+\textbf{A}^2/6)^{-1}$
where $\textbf{A}=\textbf{X}^T.\textbf{X}-\textbf{I}$ and $\textbf{I}$ is a 3 by 3 identity matrix.
But upon using this formulation, I always get $1/0$ expression.
What is the missing part in my calculation?