Cast LdagL gradient to real if real parameters
Created by: PhilipVinc
fix #850 (closed).
LdagL is hermitian, so its gradient should be real-valued for real-valued weights
Created by: PhilipVinc
fix #850 (closed).
LdagL is hermitian, so its gradient should be real-valued for real-valued weights