Faster quadratic expression for symmetric matrices

Ah, sorry, I just noticed I didn’t properly replace one variable name and was accessing a global variable. product_3 is actually fine regarding allocations.

Here is the speed comparison including product_3:

1 Like