Changeset 6180565 in git
- Timestamp:
- Aug 16, 2019, 2:10:20 PM (4 years ago)
- Branches:
- (u'spielwiese', 'd1ba061a762c62d3a25159d8da8b6e17332291fa')
- Children:
- 15939114b9999f8ea7042c064d7ce2c5b8d987df
- Parents:
- 40b65a33b8f97714b624e53cd7ece1518afa831b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r40b65a3 r6180565 3963 3963 3964 3964 /// Return the denominator of the input number 3965 /// NOTE: the input number is normalized as a side effect3966 3965 static BOOLEAN jjDENOMINATOR(leftv res, leftv v) 3967 3966 { 3968 number n = reinterpret_cast<number>(v-> Data());3967 number n = reinterpret_cast<number>(v->CopyD()); 3969 3968 res->data = reinterpret_cast<void*>(n_GetDenom(n, currRing->cf)); 3969 n_Delete(&n,currRing); 3970 3970 return FALSE; 3971 3971 } 3972 3972 3973 3973 /// Return the numerator of the input number 3974 /// NOTE: the input number is normalized as a side effect3975 3974 static BOOLEAN jjNUMERATOR(leftv res, leftv v) 3976 3975 { 3977 number n = reinterpret_cast<number>(v-> Data());3976 number n = reinterpret_cast<number>(v->CopyD()); 3978 3977 res->data = reinterpret_cast<void*>(n_GetNumerator(n, currRing->cf)); 3978 n_Delete(&n,currRing); 3979 3979 return FALSE; 3980 3980 }
Note: See TracChangeset
for help on using the changeset viewer.