diff --git a/include/xtensor-blas/xlapack.hpp b/include/xtensor-blas/xlapack.hpp index af86971..fd433c0 100644 --- a/include/xtensor-blas/xlapack.hpp +++ b/include/xtensor-blas/xlapack.hpp @@ -609,6 +609,9 @@ namespace xt XTENSOR_THROW(std::runtime_error, "Could not find workspace size for syevd."); } + int min_size = 1 + 6*N + (2*N)*(2*N); + if(work[0]