source: issm/oecreview/Archive/16133-16554/ISSM-16451-16452.diff@ 16556

Last change on this file since 16556 was 16556, checked in by Mathieu Morlighem, 11 years ago

NEW: added Archive/16133-16554

File size: 854 bytes
  • ../trunk-jpl/src/c/toolkits/issm/SparseRow.h

     
    1212template <class doubletype>
    1313class SparseRow{
    1414
    15         private:
    16                 int*        buffer; //used during SetValues
    17 
    1815        public:
    1916
    2017                int         M; //real size
     
    2825                         ncols=0;
    2926                         indices=NULL;
    3027                         values=NULL;
    31                          buffer=NULL;
    3228                } /*}}}*/
    3329                SparseRow(int in_M){/*{{{*/
    3430                       
     
    3733                        indices=NULL;
    3834                        values=NULL;
    3935
    40                         buffer=xNewZeroInit<int>(M);
    4136                } /*}}}*/
    4237                ~SparseRow(){/*{{{*/
    4338                        if(ncols){
    4439                                xDelete<int>(indices);
    4540                                xDelete<doubletype>(values);
    4641                        }
    47                         if(buffer)xDelete<int>(buffer);
    4842                } /*}}}*/
    4943
    5044                /*SparseRow specific routines*/
Note: See TracBrowser for help on using the repository browser.