Changeset 2fc36a in git
- Timestamp:
- May 9, 2005, 2:14:57 PM (18 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
- Children:
- b553e559f98a3781f6cfd18ddbcb12a123420c3b
- Parents:
- 196cdf81e4a0e48ffd85495c7a31e0c04f05409b
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/int64vec.cc
r196cdf r2fc36a 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: int64vec.cc,v 1. 1 2005-05-04 14:08:54Singular Exp $ */4 /* $Id: int64vec.cc,v 1.2 2005-05-09 12:14:57 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: class int64vec: lists/vectors of int64 … … 38 38 } 39 39 40 int64vec::int64vec(int s, int e)41 {42 int inc;43 col = 1;44 if (s<e)45 {46 row = e-s+1;47 inc = 1;48 }49 else50 {51 row = s-e+1;52 inc = -1;53 }54 v = (int64 *)omAlloc(sizeof(int64)*row);55 for (int i=0; i<row; i++)56 {57 v[i] = (int64)s;58 s+=inc;59 }60 }61 62 40 int64vec::int64vec(int r, int c, int64 init) 63 41 { -
kernel/int64vec.h
r196cdf r2fc36a 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: int64vec.h,v 1. 1 2005-05-04 14:08:54Singular Exp $ */6 /* $Id: int64vec.h,v 1.2 2005-05-09 12:14:57 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: class intvec: lists/vectors of int64 … … 28 28 col = 1; 29 29 } 30 int64vec(int s, int e);31 30 int64vec(int r, int c, int64 init); 32 31 int64vec(int64vec* iv);
Note: See TracChangeset
for help on using the changeset viewer.