mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
mv util/lp to math/lp
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
b6513b8e2d
commit
33cbd29ed0
150 changed files with 524 additions and 479 deletions
38
src/math/lp/factorization_factory_imp.cpp
Normal file
38
src/math/lp/factorization_factory_imp.cpp
Normal file
|
@ -0,0 +1,38 @@
|
|||
/*++
|
||||
Copyright (c) 2017 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
<name>
|
||||
|
||||
Abstract:
|
||||
|
||||
<abstract>
|
||||
|
||||
Author:
|
||||
Nikolaj Bjorner (nbjorner)
|
||||
Lev Nachmanson (levnach)
|
||||
|
||||
Revision History:
|
||||
|
||||
|
||||
--*/
|
||||
#include "math/lp/factorization_factory_imp.h"
|
||||
#include "math/lp/nla_core.h"
|
||||
namespace nla {
|
||||
|
||||
factorization_factory_imp::factorization_factory_imp(const monomial& rm, const core& s) :
|
||||
factorization_factory(rm.rvars(), &s.m_emons[rm.var()]),
|
||||
m_core(s), m_mon(s.m_emons[rm.var()]), m_rm(rm) { }
|
||||
|
||||
bool factorization_factory_imp::find_canonical_monomial_of_vars(const svector<lpvar>& vars, unsigned & i) const {
|
||||
return m_core.find_canonical_monomial_of_vars(vars, i);
|
||||
}
|
||||
bool factorization_factory_imp::canonize_sign(const monomial& m) const {
|
||||
return m_core.canonize_sign(m);
|
||||
}
|
||||
bool factorization_factory_imp::canonize_sign(const factorization& f) const {
|
||||
return m_core.canonize_sign(f);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue