Invalid memory access in projection ALS
| projectionALS starting: ==10187== Invalid read of size 16
==10187== at 0x7B9815: dswap_k (in /home/baum/code/xerus/XerusTest)
==10187== by 0x781F76: dswap_ (swap.c:90)
==10187== by 0x794D37: dbdsqr_.constprop.238 (dbdsqr.f:830)
==10187== by 0x79FB2A: dlasdq_.constprop.237 (dlasdq.f:377)
==10187== by 0x7A07C9: dbdsdc_.constprop.233 (dbdsdc.f:363)
==10187== by 0x6C0250: dgesdd_ (dgesdd.f:937)
==10187== by 0x7A2A8F: LAPACKE_dgesdd_work.constprop.229 (lapacke_dgesdd_work.c:115)
==10187== by 0x6FCE6D: LAPACKE_dgesdd (lapacke_dgesdd.c:77)
==10187== by 0x6FCE6D: xerus::blasWrapper::svd_destructive(double*, double*, double*, double*, unsigned long, unsigned long) (blasLapackWrapper.cpp:184)
==10187== by 0x5F6B16: xerus::TTNetwork<false>::round_train(std::vector<unsigned long, std::allocator<unsigned long> > const&, double) (ttNetwork.cpp:303)
==10187== by 0x75EF53: xerus::TTNetwork<false>::round(unsigned long) (ttNetwork.cpp:756)
==10187== by 0x5DEC9F: {lambda()#2}::operator()() const [clone .isra.189] [clone .lto_priv.1270] (als.cxx:72)
==10187== by 0x6EDAD6: operator() (functional:2439)
==10187== by 0x6EDAD6: xerus::misc::internal::test(std::pair<std::string, std::function<bool ()> > const&) (test.cpp:97)
==10187== Address 0x6aac950 is 384 bytes inside a block of size 392 alloc'd
==10187== at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==10187== by 0x7A2941: LAPACKE_dgesdd_work.constprop.229 (lapacke_dgesdd_work.c:96)
==10187== by 0x6FCE6D: LAPACKE_dgesdd (lapacke_dgesdd.c:77)
==10187== by 0x6FCE6D: xerus::blasWrapper::svd_destructive(double*, double*, double*, double*, unsigned long, unsigned long) (blasLapackWrapper.cpp:184)
==10187== by 0x5F6B16: xerus::TTNetwork<false>::round_train(std::vector<unsigned long, std::allocator<unsigned long> > const&, double) (ttNetwork.cpp:303)
==10187== by 0x75EF53: xerus::TTNetwork<false>::round(unsigned long) (ttNetwork.cpp:756)
==10187== by 0x5DEC9F: {lambda()#2}::operator()() const [clone .isra.189] [clone .lto_priv.1270] (als.cxx:72)
==10187== by 0x6EDAD6: operator() (functional:2439)
==10187== by 0x6EDAD6: xerus::misc::internal::test(std::pair<std::string, std::function<bool ()> > const&) (test.cpp:97)
==10187== by 0x410CE5: main (test.cpp:212)
==10187==