source:
issm/oecreview/Archive/16133-16554/ISSM-16451-16452.diff@
16556
Last change on this file since 16556 was 16556, checked in by , 11 years ago | |
---|---|
File size: 854 bytes |
-
../trunk-jpl/src/c/toolkits/issm/SparseRow.h
12 12 template <class doubletype> 13 13 class SparseRow{ 14 14 15 private:16 int* buffer; //used during SetValues17 18 15 public: 19 16 20 17 int M; //real size … … 28 25 ncols=0; 29 26 indices=NULL; 30 27 values=NULL; 31 buffer=NULL;32 28 } /*}}}*/ 33 29 SparseRow(int in_M){/*{{{*/ 34 30 … … 37 33 indices=NULL; 38 34 values=NULL; 39 35 40 buffer=xNewZeroInit<int>(M);41 36 } /*}}}*/ 42 37 ~SparseRow(){/*{{{*/ 43 38 if(ncols){ 44 39 xDelete<int>(indices); 45 40 xDelete<doubletype>(values); 46 41 } 47 if(buffer)xDelete<int>(buffer);48 42 } /*}}}*/ 49 43 50 44 /*SparseRow specific routines*/
Note:
See TracBrowser
for help on using the repository browser.