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

◆ LLL()

bool LLLoperations::LLL ( MutableMatrix * M,
MutableMatrix * U,
gmp_QQ threshold )
static

Definition at line 356 of file LLL.cpp.

359{
360 MutableMatrix *LLLstate;
361 if (!initializeLLL(A, threshold, LLLstate)) return false;
362 int ret = doLLL(A, Achange, LLLstate);
363 if (ret != COMP_DONE)
364 {
365 freemem(LLLstate);
366 return false;
367 }
368 return true;
369}
static int doLLL(MutableMatrix *A, MutableMatrix *Achange, MutableMatrix *LLLstate, int nsteps=-1)
Definition LLL.cpp:241
static bool initializeLLL(const MutableMatrix *A, gmp_QQ threshold, MutableMatrix *&LLLstate)
Definition LLL.cpp:28
@ COMP_DONE
Definition computation.h:60
void freemem(void *s)
Definition m2-mem.cpp:103

References COMP_DONE, doLLL(), freemem(), and initializeLLL().

Referenced by rawLLL().