Macaulay2 Engine
Loading...
Searching...
No Matches

◆ set_var()

void M2::ARingGFFlint::set_var ( ElementType & result,
int v ) const
inline

Definition at line 246 of file aring-gf-flint.hpp.

247 {
248 if (v != 0) set_from_long(result, 1);
249 std::vector<long> poly = {0, 1};
251 // printf("variable is %lu\n", result.value);
252 }
void set_from_long(ElementType &result, long a) const
void fromSmallIntegerCoefficients(ElementType &result, const std::vector< long > &poly) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References fromSmallIntegerCoefficients(), result(), and set_from_long().