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

◆ IM2_RingElement_lift()

const RingElement * IM2_RingElement_lift ( int * success_return,
const Ring * S,
const RingElement * f )

Definition at line 412 of file ringelement.cpp.

415{
416 try
417 {
418 const RingElement *result;
419
420 if (f->lift(S, result))
421 {
422 *success_return = 1;
423 return result;
424 }
425 // ERROR("cannot lift given ring element");
426 return nullptr;
427 } catch (const exc::engine_error& e)
428 {
429 ERROR(e.what());
430 return nullptr;
431 }
432}
bool lift(const Ring *S, const RingElement *&result) const
Definition relem.cpp:321
Front-end-visible "ring element" value: an engine ring_elem paired with the Ring* that gives it meani...
Definition relem.hpp:67
const int ERROR
Definition m2-mem.cpp:55
VALGRIND_MAKE_MEM_DEFINED & result(result)

References ERROR, RingElement::lift(), and result().