Commit fd250429 authored by Kirill Terekhov's avatar Kirill Terekhov
Browse files

fix problem in SVD

parent 332bf865
......@@ -1743,8 +1743,11 @@ namespace INMOST
~dynarray()
{
for(element * i = pbegin; i < pend; i++) (*i).~element();
if( pbegin != stack ) free(pbegin);
if( pbegin != stack )
{
for(element * i = pbegin; i < pend; i++) (*i).~element();
free(pbegin);
}
}
dynarray & operator =(dynarray const & other)
{
......
......@@ -249,8 +249,7 @@ namespace INMOST
}
else return false;
} //m <= n
//dynarray<Var,128> rv1(m);
std::vector<Var> rv1(m);
dynarray<Var,128> rv1(m);
//array<Var> _rv1(m);
//shell<Var> rv1(_rv1);
std::swap(n,m); //this how original algorithm takes it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment