Skip to content

Commit

Permalink
Merge pull request #73 from kyungminlee/getri-fix
Browse files Browse the repository at this point in the history
Fix inv to work with complex types
  • Loading branch information
wolfv committed Jul 9, 2018
2 parents f4100bd + 6b223cb commit d40eefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/xtensor-blas/xlapack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ namespace lapack
throw std::runtime_error("Could not find workspace size for getri.");
}

work.resize(std::size_t(work[0]));
work.resize(std::size_t(std::real(work[0])));

info = cxxlapack::getri<blas_index_t>(
static_cast<blas_index_t>(A.shape()[0]),
Expand Down

0 comments on commit d40eefc

Please sign in to comment.