Changeset a48078 in git
- Timestamp:
- Dec 8, 2008, 6:47:35 PM (15 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 41ea815dd399c3ca48c9836a21414ca88ac8cf2e
- Parents:
- fe5b89fd5f0280af1971ddeb7fd02e4ed4c9eeb2
- Location:
- kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gnumpc.h
rfe5b89 ra48078 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: gnumpc.h,v 1. 2 2008-03-19 17:44:08Singular Exp $ */6 /* $Id: gnumpc.h,v 1.3 2008-12-08 17:47:35 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: computations with GMP floating-point numbers … … 42 42 nMapFunc ngcSetMap(ring src, ring dst); 43 43 44 number ngcMapQ(number from); 44 45 #endif 45 46 -
kernel/gnumpfl.h
rfe5b89 ra48078 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: gnumpfl.h,v 1. 2 2008-03-19 17:44:08Singular Exp $ */6 /* $Id: gnumpfl.h,v 1.3 2008-12-08 17:47:35 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: computations with GMP floating-point numbers … … 39 39 40 40 void setGMPFloatDigits( size_t digits, size_t rest ); 41 number ngfMapQ(number from); 41 42 #endif -
kernel/numbers.cc
rfe5b89 ra48078 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: numbers.cc,v 1.1 8 2008-08-06 13:55:42Singular Exp $ */4 /* $Id: numbers.cc,v 1.19 2008-12-08 17:47:35 Singular Exp $ */ 5 5 6 6 /* … … 38 38 void (*nNew)(number *a); 39 39 number (*nInit)(int i); 40 number (*nInit_bigint)(number i); 40 41 number (*nPar)(int i); 41 42 int (*nParDeg)(number n); … … 139 140 { 140 141 naSetChar(c,r); 142 if (rField_is_Q_a()) nInit_bigint=naMap00; 143 if (rField_is_Zp_a()) nInit_bigint=naMap0P; 141 144 } 142 145 #ifdef HAVE_RING2TOM … … 145 148 { 146 149 nr2mSetExp(c, r); 150 nInit_bigint=nr2mMapQ; 147 151 } 148 152 #endif … … 152 156 { 153 157 nrzSetExp(c, r); 158 nInit_bigint=nrzMapQ; 154 159 } 155 160 #endif … … 159 164 { 160 165 nrnSetExp(c, r); 166 nInit_bigint=nrnMapQ; 161 167 } 162 168 #endif … … 166 172 { 167 173 nrnSetExp(c, r); 174 nInit_bigint=nrnMapQ; 168 175 } 169 176 #endif … … 172 179 { 173 180 npSetChar(c, r); 181 nInit_bigint=npMap0; 174 182 } 175 183 /* -------------- GF(p^m) -----------------------*/ … … 177 185 { 178 186 nfSetChar(c,r->parameter); 187 nInit_bigint=ndReturn0; // not impl. 179 188 } 180 189 /* -------------- R -----------------------*/ … … 182 191 else if (rField_is_R(r)) 183 192 { 193 nInit_bigint=nrMapQ; 184 194 } 185 195 /* -------------- long R -----------------------*/ … … 189 199 { 190 200 setGMPFloatDigits(r->float_len,r->float_len2); 201 if (rField_is_long_R(r)) nInit_bigint=ngfMapQ; 202 else nInit_bigint=ngcMapQ; 191 203 } 192 204 #ifdef TEST -
kernel/numbers.h
rfe5b89 ra48078 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: numbers.h,v 1.1 5 2008-08-06 13:55:42Singular Exp $ */6 /* $Id: numbers.h,v 1.16 2008-12-08 17:47:35 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: interface to coefficient aritmetics … … 45 45 extern void (*nNew)(number * a); 46 46 extern number (*nInit)(int i); 47 extern number (*nInit_bigint)(number i); 47 48 extern number (*nPar)(int i); 48 49 extern int (*nParDeg)(number n); -
kernel/shortfl.h
rfe5b89 ra48078 7 7 * ABSTRACT 8 8 */ 9 /* $Id: shortfl.h,v 1. 2 2008-03-19 17:44:12Singular Exp $ */9 /* $Id: shortfl.h,v 1.3 2008-12-08 17:47:35 Singular Exp $ */ 10 10 #include "structs.h" 11 11 … … 35 35 36 36 float nrFloat(number n); 37 number nrMapQ(number from); 37 38 #endif 38 39
Note: See TracChangeset
for help on using the changeset viewer.