@@ -84,9 +84,6 @@ SetPiece image(SetPiece mdi, Exp mdle)
8484member_move_imp (Map, Set, dom);
8585member_move_imp (Map, Exp, exp);
8686
87-
88-
89-
9087Map::~Map () {}
9188Map::Map (const SetAF &fact) : fact_(fact), dom_(fact.createSet()){}
9289Map::Map (const SetAF &fact, MD_NAT x, Exp exp)
@@ -124,51 +121,6 @@ Map &Map::operator=(const Map &other)
124121 return *this ;
125122}
126123
127- bool Map::operator <(const Map &other) const
128- {
129-
130- return minPer () < other.minPer ();
131- }
132-
133-
134-
135- MD_NAT Map::minPer () const
136- {
137- MD_NAT minimo (dom_.arity (), Inf);
138-
139- if (dom_.isEmpty ())
140- return minimo;
141-
142- for (const SetPiece &mdi : dom_) {
143- MD_NAT candidato = mdi.minElem ();
144-
145- for (std::size_t i = 0 ; i < minimo.arity (); ++i) {
146- minimo[i] = std::min (minimo[i], candidato[i]);
147- }
148- }
149-
150- return minimo;
151- }
152-
153- MD_NAT Map::maxPer () const
154- {
155- MD_NAT maximo (dom_.arity (), 0 );
156-
157- if (dom_.isEmpty ())
158- return maximo;
159-
160-
161- for (const SetPiece &mdi : dom_) {
162- MD_NAT candidato = mdi.maxElem ();
163-
164- for (std::size_t i = 0 ; i < maximo.arity (); ++i) {
165- maximo[i] = std::max (maximo[i], candidato[i]);
166- }
167- }
168-
169- return maximo;
170- }
171-
172124
173125Map Map::operator +(const Map &other) const
174126{
@@ -300,25 +252,6 @@ MaybeMap Map::compact(const Map &other) const
300252 return {};
301253}
302254
303- /*
304- void Map::calcularMinMaxPer() {
305- MD_NAT maximo(dom_.arity(), 0);
306- MD_NAT minimo(dom_.arity(), Inf);
307-
308- for (const SetPiece &mdi : dom_) {
309- MD_NAT candidatoMax = mdi.maxElem();
310- MD_NAT candidatoMin = mdi.minElem();
311-
312- for (std::size_t i = 0; i < maximo.arity(); ++i) {
313- maximo[i] = std::max(maximo[i], candidatoMax[i]);
314- minimo[i] = std::min(minimo[i], candidatoMin[i]);
315- }
316- }
317-
318- minPer_ = minimo;
319- maxPer_ = maximo;
320- }*/
321-
322255} // namespace LIB
323256
324257} // namespace SBG
0 commit comments