.../
... + -- EO
| |
| |
+-- src ----- + -- EDO
| |
| |
+-- test + -- MO
| |
| |
+-- tutorial + -- MOEO
| |
| |
+-- doc + -- SMP
| |
| |
... + -- EOMPI
|
|
+ -- EOSERIAL
Question for current maintainers: ./README: new release?
Also:
* Moving out eompi & eoserial modules (issue #2).
* Correction of the errors when executing "make doc" command.
* Adding a solution for the conflicting headers problem (see the two CMake Cache
Values: PROJECT_TAG & PROJECT_HRS_INSTALL_SUBPATH) (issue #1)
* Header inclusions:
** src: changing absolute paths into relative paths ('#include <...>' -> '#include "..."')
** test, tutorial: changing relative paths into absolute paths ('#include "..."' -> '#include <...>')
* Moving out some scripts from EDO -> to the root
* Add a new script for compilation and installation (see build_gcc_linux_install)
* Compilation with uBLAS library or EDO module: now ok
* Minor modifications on README & INSTALL files
* Comment eompi failed tests with no end
*** TODO: CPack (debian (DEB) & RedHat (RPM) packages) (issues #6 & #7) ***
34 lines
529 B
C++
Executable file
34 lines
529 B
C++
Executable file
#include <FunDef.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
|
|
Sym x = SymVar(0);
|
|
Sym y = SymVar(1);
|
|
|
|
Sym f = y + x*x;
|
|
|
|
Sym l = SymLambda(f);
|
|
|
|
SymVec args = l.args();
|
|
args[0] = x;
|
|
args[1] = y;
|
|
l = Sym(l.token(), args);
|
|
|
|
vector<double> v(3);
|
|
v[0] = 2.0;
|
|
v[1] = 3.0;
|
|
v[2] = 4.0;
|
|
|
|
double v1 = eval(f,v);
|
|
double v2 = eval(l,v);
|
|
|
|
cout << v1 << ' ' << v2 << endl;
|
|
cout << f << endl;
|
|
cout << l << endl;
|
|
|
|
if (v1 != 7.0) return 1;
|
|
if (v2 != 11.0) return 1;
|
|
}
|
|
|