The equations produced by this code are centered
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{cleveref}
\begin{document}
\begin{align}
& \mathclap{f: A \to B, g: B \to C} \label{eq:1}
\\
f(a) &= \ldots \label{eq:2}
\\
g(b) &= \ldots \label{eq:3}
\end{align}
\end{document}
whereas these are no longer centered. Equation 1 is not centered like how normal humans would center it. Why is this so? Or is that considered centered for latex?
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{cleveref}
\begin{document}
\begin{align}
\mathclap{\alpha_{s,j}^t = g(\frac{e^{\varphi_{c}([h_j^t,l_j,s])}}{\sum_j e^{\varphi_{c}([h_j^t,l_j,s])}}) \quad \hat{x}_{\varphi}^{t} = \varphi_m([h_i^t,l_i,s])} \label{eq:1}
\\
\hat{x}_i^{'t} &= \hat{x}_{\varphi}^{t} + (1 - \alpha_{l,i}^t)\hat{x}_i^{t-1} \label{eq:left}
\\
\hat{x}_i^{t} &= \hat{x}_{\varphi}^{t} + (1 - \alpha_{r,i}^t)\hat{x}_i^{'t} \label{eq:right}
\end{align}
\end{document}
This is how I would like the equations to be but without using two align environments due to the added space.
\begin{align}
\alpha_{s,j}^t = g(\frac{e^{\varphi_{c}([h_j^t,l_j,s])}}{\sum_j e^{\varphi_{c}([h_j^t,l_j,s])}}) \quad \hat{x}_{\varphi}^{t} = \varphi_m([h_i^t,l_i,s]) \label{eq:1}
\end{align}
\begin{align}
\hat{x}_i^{'t} &= \hat{x}_{\varphi}^{t} + (1 - \alpha_{l,i}^t)\hat{x}_i^{t-1} \label{eq:left}
\\
\hat{x}_i^{t} &= \hat{x}_{\varphi}^{t} + (1 - \alpha_{r,i}^t)\hat{x}_i^{'t} \label{eq:right}
\end{align}
\mathclap
whose only function is to hide the size of the expression, so tex has no information about the first row size