Changeset 4b5098 in git for libpolys/misc/intvec.h
- Timestamp:
- Nov 29, 2012, 8:50:13 PM (11 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 308a766afffc51141b50332c5e1b2d3849433dce
- Parents:
- ca5cfe83988bd636394cc6b49509717ad3b17700
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-11-29 20:50:13+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-11-29 23:08:28+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/misc/intvec.h
rca5cfe r4b5098 23 23 24 24 inline intvec(int l = 1) 25 { 26 v = (int *)omAlloc0(sizeof(int)*l); 27 row = l; 28 col = 1; 29 } 25 { 26 assume(l > 0); 27 v = (int *)omAlloc0(sizeof(int)*l); 28 row = l; 29 col = 1; 30 } 30 31 intvec(int s, int e); 31 32 intvec(int r, int c, int init); … … 35 36 row = iv->rows(); 36 37 col = iv->cols(); 38 assume(row > 0); 39 assume(col > 0); 37 40 if (row*col>0) 38 41 { … … 111 114 } 112 115 #if 0 116 // TODO: no omalloc Bin (de-)/allocation? 113 117 void* operator new ( size_t size ) 114 118 {
Note: See TracChangeset
for help on using the changeset viewer.