Definition at line 33 of file monomial.cpp.
34{
35 if ((m->len % 2) != 0)
36 {
37 ERROR(
"Monomial expected an even number of elements");
38 return nullptr;
39 }
40 for (unsigned int i = 2; i < m->len; i += 2)
41 if (m->array[i - 2] <= m->array[i])
42 {
43 ERROR(
"Monomial expects variables in descending order");
44 return nullptr;
45 }
47 if (
error())
return nullptr;
49}
VALGRIND_MAKE_MEM_DEFINED & result(result)
References EngineMonomial(), ERROR, error(), and result().