예제 #1
0
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());
  }
}
예제 #2
0
SXFunction::SXFunction(const MXFunction& f) {
  MXFunction f2 = f;
  SXFunction t = f2.expand();
  assignNode(t.get());
}