@karlnapf @sonney2k but when I try using something like this
SGSparseVector<float64_t> *vec=SG_MALLOC(SGSparseVector<float64_t>, size);
I get memory leak, but when I do this
SGSparseVector<float64_t> vec[size];
its alright. :(