/usr/include/polybori/groebner/BlockOrderHelper.h is in libpolybori-groebner-dev 0.8.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 57 | // -*- c++ -*-
//*****************************************************************************
/** @file BlockOrderHelper.h
*
* @author Michael Brickenstein
* @date 2011-06-30
*
* This file includes the definition of the class @c BlockOrderHelper.
*
* @par Copyright:
* (c) 2006-2010 by The PolyBoRi Team
*
**/
//*****************************************************************************
#ifndef polybori_groebner_BlockOrderHelper_h_
#define polybori_groebner_BlockOrderHelper_h_
// include basic definitions
#include "groebner_defs.h"
#include "ReductionStrategy.h"
#include "nf.h"
BEGIN_NAMESPACE_PBORIGB
/** @class BlockOrderHelper
* @brief This class defines BlockOrderHelper.
*
**/
class BlockOrderHelper{
public:
static bool irreducible_lead(const Monomial& m, const ReductionStrategy& strat){
return PBORINAME::groebner::irreducible_lead(m,strat);
}
static Polynomial::ordered_iterator begin(const Polynomial & p){
return p.orderedBegin();
}
static Polynomial::ordered_iterator end(const Polynomial & p){
return p.orderedEnd();
}
static Polynomial nf(const ReductionStrategy& strat, const Polynomial& p, const Monomial& m){
return nf3(strat,p,m);
}
typedef Polynomial::ordered_iterator iterator_type;
const static bool isDegreeOrder=false;
const static bool isLexicographicalOrder=false;
static bool knowRestIsIrreducible(const iterator_type& it, const ReductionStrategy & strat){
return false;
}
static Polynomial sum_range(std::vector<Monomial>& vec,iterator_type it, iterator_type end, Polynomial init){
return add_up_generic(vec, init);
}
};
END_NAMESPACE_PBORIGB
#endif /* polybori_BlockOrderHelper_h_ */
|