Skip to content

Fix complex dot product (compute hermitian dot product)

David Frank requested to merge df/fix-complex-dot-product into master

In the previous commit, the complex dot product was calculated as x transposed times y (with x and y, being two equally sized complex vectors). However, eigen uses the hermitian dot product, which is in this case is computed as the complex conjugate of x transposed times y.

Tests added to capture this specific behaviour, which wasn't caught earlier.

Merge request reports