Changeset 2fc36a in git


Ignore:
Timestamp:
May 9, 2005, 2:14:57 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
Children:
b553e559f98a3781f6cfd18ddbcb12a123420c3b
Parents:
196cdf81e4a0e48ffd85495c7a31e0c04f05409b
Message:
*hannes: code cleanup


git-svn-id: file:///usr/local/Singular/svn/trunk@8108 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/int64vec.cc

    r196cdf r2fc36a  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: int64vec.cc,v 1.1 2005-05-04 14:08:54 Singular Exp $ */
     4/* $Id: int64vec.cc,v 1.2 2005-05-09 12:14:57 Singular Exp $ */
    55/*
    66* ABSTRACT: class int64vec: lists/vectors of int64
     
    3838}
    3939
    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   else
    50   {
    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 
    6240int64vec::int64vec(int r, int c, int64 init)
    6341{
  • kernel/int64vec.h

    r196cdf r2fc36a  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: int64vec.h,v 1.1 2005-05-04 14:08:54 Singular Exp $ */
     6/* $Id: int64vec.h,v 1.2 2005-05-09 12:14:57 Singular Exp $ */
    77/*
    88* ABSTRACT: class intvec: lists/vectors of int64
     
    2828      col = 1;
    2929    }
    30   int64vec(int s, int e);
    3130  int64vec(int r, int c, int64 init);
    3231  int64vec(int64vec* iv);
Note: See TracChangeset for help on using the changeset viewer.