Exemplo n.º 1
0
/*
   ----------------------------------------------------------------
   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)) ; }
Exemplo n.º 2
0
/*
   ----------------------------------------------------------------
   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)) ; }