simple.cc - generated code example
[prop.git] / lib-src / symbolic / term.cc
blob6a3a4b3e4097a851d902c4255bd83790d9c42988
1 #include <AD/symbolic/term.h>
3 SymbolicTerm:: SymbolicTerm(int i)
4 : entries(i), args(new SymbolicExpr * [i]) {}
5 SymbolicTerm:: SymbolicTerm(int i, SymbolicExpr * a[])
6 : entries(i), args(new SymbolicExpr * [i])
7 { for (int j = 0; j < i; j++) args[j] = a[j]; }
8 SymbolicTerm::~SymbolicTerm() { delete [] args; }