Try to reformulate everything in terms of SVD as opposed to eigen decomposition in an attempt to avoid complex results for borderline cases.
The code in in exampleCode/Benchmarking.R shows the improvement of using crossprod and tcrossprod, but the result consists of complex numbers. This shouldn't be happening.
Try to reformulate everything in terms of SVD as opposed to eigen decomposition in an attempt to avoid complex results for borderline cases.
The code in in exampleCode/Benchmarking.R shows the improvement of using crossprod and tcrossprod, but the result consists of complex numbers. This shouldn't be happening.