I referred to the following definition for gradient in matrices (so related to Frobenius norm in matrices) Gradient and Hessian of a function with Matrix Variables.
Suppose I have $$g(X) = A(X-X_0)$$ where
- $A, \, X, \, X_0 \in \mathbb{R}^{n\times n}$
- $X$ is the variable
If $g(X)$ admits a scalar anti-derivative function, i.e., $\nabla_Xf(X)=g(X)$, where $f(X)\in \mathbb{R}$.
My question is what $f(X)$ should look like? (note: $A$ is a matrix, not a scalar)
If my question does not make sense, then why it does not make sense? Thanks!