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