Here's another way to create diagonal matrix with single 0's at upper and lower triangles. The solution below requires a bit of knowledge of nicematrix and tikz:
The code:
\documentclass{article} \usepackage{tikz} \usepackage{nicematrix} \tikzset{ every node/.style = { inner xsep=0pt, inner ysep=0pt, execute at begin node=\(, execute at end node=\), }, every path/.style = { rounded corners=6pt, }, } \begin{document} \begin{gather} A = \begin{bNiceMatrix} 0 & & & & & & \NotEmpty \\ & 1 & & & & & \\ & & 0 & & & & \\ & & & \frac{1}{2!} & & & \\ & & & & 0 & & \\ & & & & & \frac{1}{3!} & \\ \NotEmpty & & & & & & \ddots \CodeAfter \begin{tikzpicture} \node[ anchor=south west, scale=2.5, ] at (last-1) {0}; \node[ anchor=north east, scale=2.5, ] at (1-last) {0}; \end{tikzpicture} \end{bNiceMatrix} \\[6pt] T = \begin{bNiceMatrix} 0 & 1 & & \NotEmpty \\ & 0 & 1 & \\ \NotEmpty & & \ddots & \ddots \CodeAfter \begin{tikzpicture} \node[ anchor=south west, scale=1.75, xshift=-1pt, ] at (last-1) {0}; \node[ anchor=north east, scale=1.75, yshift=3pt, xshift=2pt, ] at (1-last) {0}; \end{tikzpicture} \end{bNiceMatrix} \end{gather} \end{document}

EDIT.
The following code will typeset two equations in one line including equation numbers
% ... \begin{equation} A = \begin{bNiceMatrix} % ... the same content \end{bNiceMatrix}, \qquad T = \begin{bNiceMatrix} % ... the same content \end{bNiceMatrix} \end{equation} % ...
A starred version of equation environment, that is equation*, typesets everything the same, with one exception that eq. number is not included. It's worth mentioning the shorter notation \[...\] can also be used, which is equivalent of equation* env.
The \quad and \qquad add some space between equations. Otherwise, they would stick together. More precisely, a macro \hspace{<length unit>} will add a specific space, e.g. 1cm, 1mm, 3pt, etc. \quad and \qquad are equivalent of \hspace{1em} and \hspace{2em}, respectively.
nicematrixpackage0s will take the whole upper/lower triangles?$\operatorname{diag}\left(0, 1, 0, \frac{1}{2!}, 0, \frac{1}{3}, \ddots\right)$instead of the full matrix form work?