xtensor-stack / xtensor-blas

BLAS extension to xtensor
BSD 3-Clause "New" or "Revised" License
158 stars 55 forks source link

xt::linalg::eig doesn't seem to work #163

Open tsj83 opened 4 years ago

tsj83 commented 4 years ago

Oddly enough, xt::linalg::eigvals works fine but xt::linalg::eig does not. Is this a bug or user error? Snapshot:

xtensor-blas

agoose77 commented 3 years ago

Given that eig returns the eigenvalues and eigenvectors, my uninformed opinion is that this is just a representation error; if you assign eig to a value, and pull out the eigenvectors and eigenvalues, they should be correct.