Changeset 79020f in git for libpolys/polys
- Timestamp:
- Jan 6, 2012, 9:28:16 PM (12 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 40e88db63c509564c2b00b7142b39ef6b846f72e
- Parents:
- 1cbb1f452324cf72b33ef5a1cb6256d97bcbcbd0
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-01-06 21:28:16+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-01-06 21:59:37+01:00
- Location:
- libpolys/polys/ext_fields
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/algext.cc
r1cbb1f4 r79020f 650 650 if (n_IsZero(a, src)) return NULL; 651 651 int p = rChar(dst->extRing); 652 int n = nlModP(a, p, src); 653 number q = n_Init(n, dst->extRing->cf); 654 poly result = p_One(dst->extRing); 655 p_SetCoeff(result, q, dst->extRing); 652 653 number q = nlModP(a, src, dst->extRing->cf); 654 655 poly result = p_NSet(q, dst->extRing); 656 656 657 return (number)result; 657 658 } -
libpolys/polys/ext_fields/transext.cc
r1cbb1f4 r79020f 1119 1119 if (n_IsZero(a, src)) return NULL; 1120 1120 int p = rChar(dst->extRing); 1121 int n = nlModP(a, p, src); 1122 number q = n_Init(n, dst->extRing->cf); 1123 poly g; 1121 number q = nlModP(a, src, dst->extRing->cf); 1122 1124 1123 if (n_IsZero(q, dst->extRing->cf)) 1125 1124 { … … 1127 1126 return NULL; 1128 1127 } 1129 g = p_One(dst->extRing); 1130 p_SetCoeff(g, q, dst->extRing); 1128 1129 poly g = p_NSet(q, dst->extRing); 1130 1131 1131 fraction f = (fraction)omAlloc0Bin(fractionObjectBin); 1132 1132 NUM(f) = g; // DEN(f) = NULL; COM(f) = 0;
Note: See TracChangeset
for help on using the changeset viewer.