Most Efficient / Fastest Way to Calculate a Matrix Quadratic Form in Julia (Symmetric Matrix)

Viewed 120

Given a symmetric matrix mP, what would be the fastest way to calculate the matrix quadratic form vX' * mP * vX?

Will it give extra performance if mP is positive definite?

Please address both the dense and the sparse case.

0 Answers
Related