Is there a way to increase the speed of multiplying $(-x^T\delta\ x )$

14 Views Asked by At

The x matrix has a size of 1024x1 and the $\delta$ has a size of 1024x1024. Delta is also a symmetric and sparse matrix. I am using the following equation to calculate a variable inside a loop.

$$x^T\delta\ x $$

Is there a faster way or a different method to this multiplication?