|
LMCAS
Lamina Computer Algebra System
|
单项式序:Lex, GrevLex, DegLex, DegRevLex 及相关工具函数。 更多...
#include <vector>#include <numeric>#include <algorithm>#include <functional>类 | |
| class | LMCAS::MonomialOrder |
| 单项式序比较器,支持 Lex、GrevLex、DegLex、DegRevLex 更多... | |
命名空间 | |
| namespace | LMCAS |
类型定义 | |
| using | LMCAS::Monomial = std::vector<int> |
| 单项式类型,以整数向量表示各变量的指数 | |
枚举 | |
| enum class | LMCAS::MonomialOrderType { LMCAS::Lex , LMCAS::GrevLex , LMCAS::DegLex , LMCAS::DegRevLex } |
| 单项式序的类型枚举 更多... | |
函数 | |
| bool | LMCAS::divides_monomial (const Monomial &divisor, const Monomial &target) |
| 判断 divisor 是否整除 target | |
| Monomial | LMCAS::lcm_monomial (const Monomial &a, const Monomial &b) |
| 计算两个单项式的最小公倍单项式 | |
| int | LMCAS::total_degree (const Monomial &m) |
| 计算单项式的全次数 | |
单项式序:Lex, GrevLex, DegLex, DegRevLex 及相关工具函数。
在文件 monomial_order.hpp 中定义.