I'm using the profiler on my MATLAB code, and the following line is taking 50% of the code's computation time:
firstSide = -1*HessianInverse*(eye(n,n)- ...
currentA'(currentA*HessianInverse*currentA')^-1*currentA*HessianInverse)*currentG;
- HessianInverse is an n x n matrix
- currentG is an n x n matrix
- currentA is an n x n matrix as well
What would be the fastest way of doing this computation?