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

◆ random()

void M2::ARingGFFlint::random ( ElementType & result) const
inline

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

409 {
410 std::vector<long> poly;
411 for (int i = 0; i < dimension(); ++i)
412 poly.push_back(rawRandomULong(characteristic()));
414 // fq_zech_randtest(&result, mRandomState, mContext);
415 }
long dimension() const
long characteristic() const
void fromSmallIntegerCoefficients(ElementType &result, const std::vector< long > &poly) const
VALGRIND_MAKE_MEM_DEFINED & result(result)
unsigned long rawRandomULong(unsigned long max)
Definition random.cpp:39

References characteristic(), dimension(), fromSmallIntegerCoefficients(), rawRandomULong(), and result().

Referenced by TEST().