/* ---------------------------------------------------------------- return the number of bytes in the workspace owned by this object created -- 98may02, cca ---------------------------------------------------------------- */ int DenseMtx_nbytesInWorkspace ( DenseMtx *mtx ) { if ( mtx == NULL ) { fprintf(stderr, "\n fatal error in DenseMtx_nbytesInWorkspace(%p)" "\n bad input\n", mtx) ; exit(-1) ; } return(sizeof(double)*DV_maxsize(&mtx->wrkDV)) ; }
/* ---------------------------------------------------------------- return the number of bytes in the workspace owned by this object created -- 98apr30, cca ---------------------------------------------------------------- */ int Chv_nbytesInWorkspace ( Chv *chv ) { if ( chv == NULL ) { fprintf(stderr, "\n fatal error in Chv_nbytesInWorkspace(%p)" "\n bad input\n", chv) ; exit(-1) ; } return(sizeof(double)*DV_maxsize(&chv->wrkDV)) ; }