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

◆ to_string()

char * DPoly::to_string ( int level,
const TowerPolynomial f )
static

Definition at line 417 of file dpoly.cpp.

418{
419 std::ostringstream o;
420 append_to_stream(o, level, f);
421 o << '\0';
422 size_t n = o.str().length();
423 char *result = new char[n + 1];
424 memcpy(result, o.str().c_str(), n);
425 return result;
426}
static std::ostream & append_to_stream(std::ostream &o, int level, const TowerPolynomial f)
Definition dpoly.cpp:389
VALGRIND_MAKE_MEM_DEFINED & result(result)

References append_to_stream(), and result().

Referenced by gcd(), and gcd_coefficients().