Home > Objects > @iData > pack.m

iFit/pack

PURPOSE ^

b = pack(a) : compress iData storage to save memory

SYNOPSIS ^

function b = pack(a)

DESCRIPTION ^

 b = pack(a) : compress iData storage to save memory

   @iData/pack function to save memory when storing data sets
   This includes to compare sparse/full storage for large matrices, and
   reduce the Command history. Only the Signal, aliases and Axes are kept
   so that unused Data items are removed.
   In addition, to further 'clean' an object, use: fill(a) and squeeze(a)

 input:  s: object or array (iData)
 output: f: compressed object or array (iData)
 ex:     b=pack(a);

 Version: Nov. 26, 2018
 See also iData, iData/sparse, iData/full, iData/saveas, iData/fill, iData/squeeze

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1