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

◆ SLEvaluatorConcrete() [4/5]

template<typename RT>
SLEvaluatorConcrete< RT >::SLEvaluatorConcrete ( M2_string libName,
int nInputs,
int nOutputs,
const MutableMat< DMat< RT > > * empty )

Definition at line 78 of file SLP-imp.hpp.

84{
85 slp = NULL;
86 //const char* funname = "evaluate";
87 const char* funnameRR = "_Z8evaluatePKdPd";
88 const char* funnameCC = "_Z8evaluatePKSt7complexIdEPS0_";
90 const char* lib_name = libName_std.c_str();
91 printf("loading from %s\n", lib_name);
93 if (handle == NULL) ERROR("can't load library %s", lib_name);
95 if (compiled_fn == NULL)
97 if (compiled_fn == NULL)
98 std::cerr << "can't link function " << funnameRR << " or " << funnameCC << " from library " << lib_name << std::endl;
99}
#define dlsym(x, y)
Definition NAG.cpp:15
#define dlopen(x, y)
Definition NAG.cpp:14
SLProgram * slp
Definition SLP-defs.hpp:282
const RT & ring() const
Definition SLP-defs.hpp:319
void(* compiled_fn)(ElementType const *, ElementType *)
Definition SLP-defs.hpp:342
ElementType * parametersAndInputs
Definition SLP-defs.hpp:344
typename RT::ElementType ElementType
Definition SLP-defs.hpp:328
const int ERROR
Definition m2-mem.cpp:55
std::string string_M2_to_std(const M2_string s)
Definition util.hpp:47

References compiled_fn, dlopen, dlsym, ERROR, isCompiled, mRing, nInputs, nOutputs, nParams, parametersAndInputs, ring(), SLEvaluator::slp, and string_M2_to_std().