Changeset 2970
- Timestamp:
- 06/14/08 20:29:33 (3 months ago)
- Location:
- trunk/linbox/linbox/field
- Files:
-
- 6 modified
-
PID-integer.h (modified) (1 diff)
-
modular-balanced-double.h (modified) (3 diffs)
-
modular-balanced-float.h (modified) (3 diffs)
-
modular-double.h (modified) (1 diff)
-
modular-float.h (modified) (1 diff)
-
modular-short.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/linbox/linbox/field/PID-integer.h
r2949 r2970 29 29 #define __PID_INTEGER_H 30 30 31 #include <limits.h> 32 #include <iostream> 31 33 #include <linbox/integer.h> 32 34 #include <linbox/field/unparametric.h> -
trunk/linbox/linbox/field/modular-balanced-double.h
r2963 r2970 162 162 163 163 std::ostream &write (std::ostream &os) const { 164 return os << "double mod " << (int)modulus;164 return os << "double mod " << int(modulus); 165 165 } 166 166 … … 179 179 180 180 std::ostream &write (std::ostream &os, const Element &x) const { 181 return os << (int)x;181 return os << int(x); 182 182 } 183 183 … … 260 260 // The extended Euclidean algoritm 261 261 int x_int, y_int, q, tx, ty, temp; 262 x_int = (int) modulus;263 y_int = ( int) (y < 0.) ? y + modulus : y;262 x_int = int (modulus); 263 y_int = (y < 0.) ? int(y + modulus) : int(y); 264 264 tx = 0; 265 265 ty = 1; -
trunk/linbox/linbox/field/modular-balanced-float.h
r2963 r2970 168 168 169 169 std::ostream &write (std::ostream &os) const { 170 return os << "float mod " << (int)modulus;170 return os << "float mod " << int(modulus); 171 171 } 172 172 … … 185 185 186 186 std::ostream &write (std::ostream &os, const Element &x) const { 187 return os << (int)x;187 return os << int(x); 188 188 } 189 189 … … 266 266 // The extended Euclidean algoritm 267 267 int x_int, y_int, q, tx, ty, temp; 268 x_int = (int) modulus;269 y_int = ( int) (y < 0.) ? y + modulus : y;268 x_int = int (modulus); 269 y_int = (y < 0.) ? int(y + modulus) : int(y); 270 270 tx = 0; 271 271 ty = 1; -
trunk/linbox/linbox/field/modular-double.h
r2962 r2970 272 272 // The extended Euclidean algoritm 273 273 int x_int, y_int, q, tx, ty, temp; 274 x_int = (int) modulus;275 y_int = (int) y;274 x_int = int (modulus); 275 y_int = int (y); 276 276 tx = 0; 277 277 ty = 1; -
trunk/linbox/linbox/field/modular-float.h
r2950 r2970 285 285 // The extended Euclidean algoritm 286 286 int x_int, y_int, q, tx, ty, temp; 287 x_int = (int) modulus;288 y_int = (int) y;287 x_int = int (modulus); 288 y_int = int (y); 289 289 tx = 0; 290 290 ty = 1; -
trunk/linbox/linbox/field/modular-short.h
r2814 r2970 5 5 6 6 7 #include "math.h" 7 8 #include "linbox/linbox-config.h" 8 9 #include "linbox/integer.h"
