4 #ifndef SmiQuadratic_HPP
5 #define SmiQuadratic_HPP
31 _n(n),_starts(starts),_indx(indx),_els(els),_coff(coff){
32 if (n==0 || starts==NULL || indx==NULL || els==NULL)
38 SmiQuadraticData():_n(0),_starts(NULL),_indx(NULL),_els(NULL),_coff(0),_hasData(false){}
58 this->setQDstarts(
new int[ncols+1]);
59 memset(this->getQDstarts(),0,(ncols+1)*
sizeof(
int));
60 this->setQDindx(
new int[nels]);
61 this->setQDels(
new double[nels]);
62 this->setQDncols(ncols);
65 delete[] _starts;
delete[] _indx;
delete[] _els;
void setQDncols(int ncols)
SmiQuadraticData(int n, int *starts, int *indx, double *els, int coff=0)
void setQDindx(int *indx)
void setQDstarts(int *starts)
void setQDels(double *els)
SmiQuadraticDataDC(int ncols, int nels)
void setHasData(bool hasData)