Changeset 9b4a332 in git for kernel/intvec.h
- Timestamp:
- Oct 23, 2009, 11:58:49 AM (14 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 698fe42860f6adbfb03425b76fe4bc95dd89e1a6
- Parents:
- a388ae5c0bb2238bcecc75e032fb91a5a79c3b00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/intvec.h
ra388ae r9b4a332 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: intvec.h,v 1. 8 2009-06-05 05:18:27 motsakExp $ */6 /* $Id: intvec.h,v 1.9 2009-10-23 09:58:49 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: class intvec: lists/vectors of integers … … 36 36 row = iv->rows(); 37 37 col = iv->cols(); 38 v = (int *)omAlloc(sizeof(int)*row*col); 39 for (int i=row*col-1;i>=0; i--) 38 if (row*col>0) 40 39 { 41 v[i] = (*iv)[i]; 40 v = (int *)omAlloc(sizeof(int)*row*col); 41 for (int i=row*col-1;i>=0; i--) 42 { 43 v[i] = (*iv)[i]; 44 } 42 45 } 46 else v=NULL; 43 47 } 44 48
Note: See TracChangeset
for help on using the changeset viewer.