1 | //////////////////////////////////////////////////////////// |
---|
2 | // emacs edit mode for this file is -*- C++ -*- |
---|
3 | // $Id$ |
---|
4 | //////////////////////////////////////////////////////////// |
---|
5 | #ifndef INCL_REORDER_H |
---|
6 | #define INCL_REORDER_H |
---|
7 | |
---|
8 | #include <factory.h> |
---|
9 | #include <tmpl_inst.h> // for typedef's |
---|
10 | |
---|
11 | /*BEGINPUBLIC*/ |
---|
12 | // the next three give you a heuristically optimal reorderd list of the |
---|
13 | // variables. For internal and external (e.g. Singular/Macaulay2) library use. |
---|
14 | // This is really experimental! |
---|
15 | // See the comments in reorder.cc. |
---|
16 | // |
---|
17 | // this gives you a heuristically optimal ordering for the ring variables |
---|
18 | // if you use the irreducible characteristic series. |
---|
19 | Varlist neworder( const CFList & PolyList ); |
---|
20 | // the same as neworder(...) only returning a list of CanonicalForm 's |
---|
21 | // (i.e. the variables as CanonicalForms) |
---|
22 | CFList newordercf(const CFList & PolyList ); |
---|
23 | // the same as neworder(...) only returning a list of int 's (i.e. the levels) |
---|
24 | IntList neworderint(const CFList & PolyList ); |
---|
25 | |
---|
26 | // for library internal use only: |
---|
27 | // next function reorders the variables in PS: |
---|
28 | // a code segment to use: |
---|
29 | // ... |
---|
30 | // #include <tmpl_inst.h> // for typedef's |
---|
31 | // CFList PS= <setup-your-list-of-CanonicalForms>; |
---|
32 | // Varlist betterorder= neworder(PS); |
---|
33 | // PS= reorder(betterorder,PS); // reorder variables in PS from oldorder |
---|
34 | // to betterorder |
---|
35 | // ListCFList Q= IrrCharSeries( PS ); |
---|
36 | // Q= reorder(betterorder,Q); // revert ordering to oldorder |
---|
37 | // |
---|
38 | CFList reorder( const Varlist & betterorder, const CFList & PS); |
---|
39 | CFFList reorder( const Varlist & betterorder, const CFFList & PS); |
---|
40 | ListCFList reorder(const Varlist & betterorder, const ListCFList & Q); |
---|
41 | /*ENDPUBLIC*/ |
---|
42 | |
---|
43 | #endif /* INCL_REORDER_H */ |
---|
44 | |
---|
45 | //////////////////////////////////////////////////////////// |
---|
46 | /* |
---|
47 | $Log: not supported by cvs2svn $ |
---|
48 | Revision 1.3 1997/09/12 07:19:45 Singular |
---|
49 | * hannes/michael: libfac-0.3.0 |
---|
50 | |
---|
51 | Revision 1.1 1997/04/25 22:50:41 michael |
---|
52 | Initial revision |
---|
53 | |
---|
54 | */ |
---|