Changeset db7f1f in git for Singular/dyn_modules/syzextra
- Timestamp:
- Nov 30, 2022, 2:47:34 PM (18 months ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
- Children:
- 0f9b034e4375576eb669e2c023d31263b050fee3
- Parents:
- d64b95c40e04b29c0132dc440dd6bf287f1eccfc
- Location:
- Singular/dyn_modules/syzextra
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/syzextra/Makefile.am
rd64b95 rdb7f1f 17 17 endif 18 18 19 SOURCES = mod_main.cc s ingularxx_defs.h syzextra.cc syzextra.h19 SOURCES = mod_main.cc syzextra.h 20 20 syzextra_la_SOURCES = $(SOURCES) 21 21 syzextra_la_CPPFLAGS = ${MYINCLUDES} ${P_PROCS_CPPFLAGS_COMMON} -
Singular/dyn_modules/syzextra/mod_main.cc
rd64b95 rdb7f1f 211 211 212 212 213 214 /// wrapper around p_Tail and id_Tail215 static BOOLEAN Tail(leftv res, leftv h)216 {217 NoReturn(res);218 219 if( h == NULL )220 {221 WarnS("Tail needs a poly/vector/ideal/module argument...");222 return TRUE;223 }224 225 assume( h != NULL );226 227 const ring r = currRing;228 229 if( h->Typ() == POLY_CMD || h->Typ() == VECTOR_CMD)230 {231 res->data = p_Tail( (const poly)h->Data(), r );232 res->rtyp = h->Typ();233 234 h = h->Next(); assume (h == NULL);235 236 return FALSE;237 }238 239 if( h->Typ() == IDEAL_CMD || h->Typ() == MODUL_CMD)240 {241 res->data = id_Tail( (const ideal)h->Data(), r );242 res->rtyp = h->Typ();243 244 h = h->Next(); assume (h == NULL);245 246 return FALSE;247 }248 249 WarnS("Tail needs a single poly/vector/ideal/module argument...");250 return TRUE;251 }252 213 253 214 /// Get leading component … … 522 483 ADD("idPrepare", FALSE, idPrepare); 523 484 524 ADD("Tail", FALSE, Tail);525 526 485 #undef ADD 527 486 return MAX_TOK; -
Singular/dyn_modules/syzextra/syzextra.h
rd64b95 rdb7f1f 41 41 42 42 poly leadmonom(const poly p, const ring r, const bool bSetZeroComp = true); 43 44 /// return the tail of a given polynomial or vector45 /// returns NULL if input is NULL, otherwise46 /// the result is a new polynomial/vector in the ring r47 poly p_Tail(const poly p, const ring r);48 49 50 /// return the tail of a given ideal or module51 /// returns NULL if input is NULL, otherwise52 /// the result is a new ideal/module in the ring r53 /// NOTE: the resulting rank is autocorrected54 ideal id_Tail(const ideal id, const ring r);55 43 56 44 /// inplace sorting of the module (ideal) id wrt <_(c,ds)
Note: See TracChangeset
for help on using the changeset viewer.