source: git/factory/sm_util.h @ 88408d0

fieker-DuValspielwiese
Last change on this file since 88408d0 was ee668e, checked in by Jan Engelhardt <jengelh@…>, 13 years ago
factory/build: restore out-of-tree build support When attempting an OOT build, it fails to find <factory/cplusplus.h>, because cplusplus.h is always (even in in-tree builds) produced in "${builddir}", and not "${top_srcdir}/../factory". Furthermore, one must not rely on the basename of ${top_srcdir}, and going above ${top_srcdir} is undefined and may lead to spurious build failures. (Consider a hypothetical chroot on ${top_srcdir}). Therefore, create a directory include/factory and use -Iinclude such that <factory/*> yields a buildable state, move all exported header files there. Previous OOT build log: 17:22 seven:../factory/obj > make CXX cplusplus.o CXXLD cplusplus ./cplusplus > ./cplusplus.h ../bin/makeheader ../factory.template factory.h ../bin/makeheader ../factoryconf.template factoryconf.h YACC readcf.cc make all-am make[1]: Entering directory `/home/jengelh/obs/zu/home/jengelh/science/singsource/factory/obj' CXX libfactory_a-algext.o CXX libfactory_a-canonicalform.o In file included from ../cf_factory.h:12:0, from ../canonicalform.cc:7: ../../factory/cf_gmp.h:14:33: fatal error: factory/cplusplus.h: Ingen slik fil eller filkatalog compilation terminated. make[1]: *** [libfactory_a-canonicalform.o] Error 1 make[1]: Leaving directory `/home/jengelh/obs/zu/home/jengelh/science/singsource/factory/obj' make: *** [all] Error 2
  • Property mode set to 100644
File size: 895 bytes
RevLine 
[9e3c33]1/* emacs edit mode for this file is -*- C++ -*- */
[341696]2/* $Id$ */
[9e3c33]3
4#ifndef INCL_SM_UTIL_H
5#define INCL_SM_UTIL_H
6
[1162cb]7//{{{ docu
8//
9// sm_util.h - header to sm_util.cc.
10//
11// Contributed by Marion Bruder <bruder@math.uni-sb.de>.
12//
13//}}}
[9e3c33]14
[e4fe2b]15// #include "config.h"
[9e3c33]16
17#include "canonicalform.h"
18#include "cf_reval.h"
[ee668e]19#include <factory/templates/ftmpl_array.h>
[9e3c33]20
[dc092fa]21typedef Array<REvaluation> REArray;
[1162cb]22
[9e3c33]23int countmonome( const CanonicalForm & f );
24
25CanonicalForm Leitkoeffizient( const CanonicalForm & f );
26
27void ChinesePoly( int arraylength, const CFArray & Polys, const CFArray & primes, CanonicalForm & result );
28
[1162cb]29CanonicalForm dinterpol( int d, const CanonicalForm & gi, const CFArray & zwischen, const REvaluation & alpha, int s, const CFArray & beta, int ni, int CHAR );
[9e3c33]30
[1162cb]31CanonicalForm sinterpol( const CanonicalForm & gi, const REArray & xi, CanonicalForm* zwischen, int n );
[9e3c33]32
33#endif /* ! INCL_SM_UTIL_H */
Note: See TracBrowser for help on using the repository browser.