[FIX] bug fix in QDA

Fixes #3721

The point of this fix is precisely to address the case where scalings_ was only a jagged array because dimensions do not match... `np.log` do not work with jagged arrays