Macaulay2 Engine
Loading...
Searching...
No Matches
assprime.hpp
Go to the documentation of this file.
1
6
7// (c) 1994 Michael E. Stillman
8#ifndef _assprime_hh
9#define _assprime_hh
10
45
46#include "monideal.hpp"
47
49// A class which enables one to compute the codimension and
50// associated primes of minimal codimension, of a monomial ideal.
51{
54 int nvars;
55
56 MonomialIdeal *mi; // A radical monomial ideal
57
58 MonomialIdeal *ass_primes; // Assoc. primes of minimal codim, stored
59 // in a monideal, where each monomial
60 // corresponds to a prime monomial ideal
61 // whose generators are the variables occurring
62 // in the monomial.
63 int minprime_limit; // -1 means find all. >= 1 means stop after that number
64 int n_minprimes; // number found so far, during associated_primes computation
65 int **exps;
66
67 void ass_prime_generator(Nmi_node *p, int codim);
68
69 public:
70 AssociatedPrimes(const MonomialIdeal *const &mi);
71 AssociatedPrimes(const MonomialIdeal *const &mi, int codim);
73
74 int codimension();
76
77 MonomialIdeal *min_primes(int maxcodim, int count);
78 // maxcodim == nvars means get all of them
79 // count == -1 means no limit
80 // return value: A monomial ideal where each
81 // monomial prime ideal is represented as a
82 // monomial: the product of the generators.
83 // NOTE: this is the complement of the gens from
84 // max_indep_sets
85
87};
88
89#endif
90
91// Local Variables:
92// compile-command: "make -C $M2BUILDDIR/Macaulay2/e "
93// indent-tabs-mode: nil
94// End:
MonomialIdeal * mi
Definition assprime.hpp:56
MonomialIdeal * associated_primes(int count)
Definition assprime.cpp:42
MonomialIdeal * ass_primes
Definition assprime.hpp:58
MonomialIdeal * max_indep_sets(int count)
MonomialIdeal * min_primes(int maxcodim, int count)
void ass_prime_generator(Nmi_node *p, int codim)
Definition assprime.cpp:89
AssociatedPrimes(const MonomialIdeal *const &mi)
Definition assprime.cpp:5
Engine-side monomial ideal: a decision tree of Nmi_nodes storing the (typically minimal) generators b...
Definition monideal.hpp:136
Internal tree node of the MonomialIdeal decision tree.
Definition monideal.hpp:74
int p
MonomialIdeal — exponent-vector-only representation of an ideal generated by monomials.
static gmp_randstate_t state
Definition random.cpp:18