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

◆ IM2_FreeModule_make()

const FreeModule * IM2_FreeModule_make ( const Ring * R,
int rank )

Definition at line 25 of file freemodule.cpp.

26{
27 try
28 {
29 if (rank < 0)
30 {
31 ERROR("freemodule rank must be non-negative");
32 return nullptr;
33 }
34 return R->make_FreeModule(rank);
35 } catch (const exc::engine_error& e)
36 {
37 ERROR(e.what());
38 return nullptr;
39 }
40}
virtual FreeModule * make_FreeModule() const
Definition ring.cpp:53
const int ERROR
Definition m2-mem.cpp:55

References ERROR, and Ring::make_FreeModule().