Let S be a symmetric n x n matrix and A be a m x n matrix.
Given: B = A * S * A_transpose (where "*" represents a matrix product operation)
B will also be a symmetric matrix.
Using the tuxfamily Eigen library, version 3, what is a clean and efficient way to implement this computation? (By efficient, I mostly mean that duplicate computations of the elements of B are not performed where symmetry makes them unnecessary.)
I'm guessing it will make use of SelfAdjointView, but I have searched high and low and not found a clean example of this.
The application is a Kalman filter, which depends heavily on operations involving (symmetric) covariance matrices, so I want to be sure get the implementation/design correct.
Thank you!