double *work; int workSize;