Blame view

Giac_maj/giac-1.4.9/src/cocoa.h 2.05 KB
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  /* -*- mode:C++ ; compile-command: "g++-3.4 -Wall -I.. -g -c cocoa.cc" -*- */
  /*  Copyright (C) 2000,2014 B. Parisse, Institut Fourier, 38402 St Martin d'Heres
   *
   *  This program is free software; you can redistribute it and/or modify
   *  it under the terms of the GNU General Public License as published by
   *  the Free Software Foundation; either version 3 of the License, or
   *  (at your option) any later version.
   *
   *  This program is distributed in the hope that it will be useful,
   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   *  GNU General Public License for more details.
   *
   *  You should have received a copy of the GNU General Public License
   *  along with this program. If not, see <http://www.gnu.org/licenses/>.
   */
  
  #ifndef _GIAC_COCOA_H_
  #define _GIAC_COCOA_H_
  #include "first.h"
  #include "gausspol.h"
  #include "gen.h"
  
  // GIAC_64VARS is currently compatible with GROEBNER_VARS 15 only
  // special code for polynomial up to 11 variables (max deg<32768) 
  //#define GROEBNER_VARS 11
  #define GROEBNER_VARS 15
  #define GIAC_REDUCEMODULO // reduce initial input only at modular step
  
  #ifndef NO_NAMESPACE_GIAC
  namespace giac {
  #endif // ndef NO_NAMESPACE_GIAC
  
    bool f5(vectpoly &,const gen & order);
    bool cocoa_gbasis(vectpoly &,const gen & order);
    vecteur cocoa_in_ideal(const vectpoly & g,const vectpoly & v,const gen & ordre);
    bool cocoa_greduce(const vectpoly & r,const vectpoly & v,const gen & order,vectpoly & res);
  
  #ifndef CAS38_DISABLED
    // giac code for poly (fast up to 15 variables)
    struct order_t {
      short o;
      unsigned char dim;
      unsigned char lex;
    };
  
    bool gbasis8(const vectpoly & v,order_t & order,vectpoly & res,environment * env,bool modularalgo,bool modularcheck,int & rur,GIAC_CONTEXT,bool eliminate_flag);
    bool greduce8(const vectpoly & v,const vectpoly & G,order_t & order,vectpoly & res,environment * env,GIAC_CONTEXT);
    longlong memory_usage();
  #endif
  
  #ifndef NO_NAMESPACE_GIAC
  } // namespace giac
  #endif // NO_NAMESPACE_GIAC
  
  #endif // _GIAC_COCOA_H