SXFunction::SXFunction(const Function& f) { const SXFunctionInternal* temp = dynamic_cast<const SXFunctionInternal*>(f.get()); if (temp) { assignNode(temp->clone()); } else { MXFunction f2(f); SXFunction t = f2.expand(); assignNode(t.get()); } }
SXFunction::SXFunction(const MXFunction& f) { MXFunction f2 = f; SXFunction t = f2.expand(); assignNode(t.get()); }