Given an $n \times m$ matrix $X$ and $m \times m$ matrix $A$, I would like to define the vector $y$ as
$$y_i = X_{i,*} A (X_{i,*})^T$$
where $X_{i,*}$ is the $i$th row of $X$. Is there a simpler way to write this without using the row index?
Edit: $y$ should indeed be a vector of length $n$ and not an $n \times m$ matrix as another answer has pointed out. I also made my matrix row notation less ambiguous.
Edit 2: Rephrased question to better reflect what I was looking for.
It can only be the first. If it were the second there would be a dimension mismatch if $n \neq m$
And $Y$ also cannot be a matrix if you are really doing what you are writing. If you multiply a vector by a matrix by a vector you can only have a scalar at the end. $Y$ can only be a vector of size $n$, and it is the diagonal of $XAX^T$