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

◆ IM2_RingElement_homogenize()

const RingElement * IM2_RingElement_homogenize ( const RingElement * a,
int v,
M2_arrayint wts )

Definition at line 517 of file ringelement.cpp.

518{
519 try
520 {
521 return a->homogenize(v, M2_arrayint_to_stdvector<int>(wts));
522 } catch (const exc::engine_error& e)
523 {
524 ERROR(e.what());
525 return nullptr;
526 }
527}
RingElement * homogenize(int v, const std::vector< int > &wts) const
Definition relem.cpp:245
const int ERROR
Definition m2-mem.cpp:55
std::vector< T > M2_arrayint_to_stdvector(M2_arrayint arr)
Definition util.hpp:96

References ERROR, RingElement::homogenize(), and M2_arrayint_to_stdvector().