Changeset 5b3fec in git for Singular/dyn_modules/freegb/freegb.cc
- Timestamp:
- Feb 1, 2019, 4:58:13 PM (5 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 1e6885f5cacbce6fbbc201cf3104ccc6af24824c
- Parents:
- 37cbc29f515f886b5506d4f7b5731a488acfe576
- git-author:
- Karim Abou Zeid <karim23697@gmail.com>2019-02-01 16:58:13+01:00
- git-committer:
- Karim Abou Zeid <karim23697@gmail.com>2019-02-08 17:55:47+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/freegb/freegb.cc
r37cbc2 r5b3fec 2 2 3 3 #ifdef HAVE_SHIFTBBA 4 static BOOLEAN freegb(leftv res, leftv args) 4 static BOOLEAN freegb(leftv res, leftv args) // freeAlgebra 5 5 { 6 6 const short t1[]={2,RING_CMD,INT_CMD}; … … 80 80 } 81 81 82 /*==================== divide-test for freeGB =================*/83 82 static BOOLEAN lpLmDivides(leftv res, leftv h) 84 83 { … … 112 111 } 113 112 114 /*==================== get var for freeGB ====================*/115 113 static BOOLEAN lpVarAt(leftv res, leftv h) 116 114 { … … 126 124 else return TRUE; 127 125 } 126 127 static BOOLEAN rightStd(leftv res, leftv h) 128 { 129 const short t[]={1,IDEAL_CMD}; 130 if (iiCheckTypes(h,t,1)) 131 { 132 ideal id=(ideal)h->Data(); 133 res->rtyp = IDEAL_CMD; 134 res->data = rightgb(id, currRing->qideal); 135 return FALSE; 136 } 137 return TRUE; 138 } 128 139 #endif 129 140 … … 138 149 p->iiAddCproc("freegb.so","stest",TRUE,stest); 139 150 p->iiAddCproc("freegb.so","btest",TRUE,btest); 151 p->iiAddCproc("freegb.so","rightstd",FALSE,rightStd); 140 152 #endif 141 153 return (MAX_TOK);
Note: See TracChangeset
for help on using the changeset viewer.