Paradiseo-eo sources added
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
bc1f453978
commit
c3aec878e5
3609 changed files with 342772 additions and 0 deletions
60
trunk/paradiseo-eo/doc/html/test__mf_8cpp-source.html
Normal file
60
trunk/paradiseo-eo/doc/html/test__mf_8cpp-source.html
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<title>EO: test_mf.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.3.9.1 -->
|
||||
<div class="qindex"> <form class="search" action="search.php" method="get">
|
||||
<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
|
||||
<div class="nav">
|
||||
<a class="el" href="dir_000007.html">contrib</a> / <a class="el" href="dir_000008.html">mathsym</a> / <a class="el" href="dir_000029.html">test</a></div>
|
||||
<h1>test_mf.cpp</h1><div class="fragment"><pre class="fragment">00001
|
||||
00002 <span class="preprocessor">#include "Sym.h"</span>
|
||||
00003 <span class="preprocessor">#include "MultiFunction.h"</span>
|
||||
00004 <span class="preprocessor">#include "FunDef.h"</span>
|
||||
00005
|
||||
00006 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
|
||||
00007
|
||||
00008 <span class="keywordtype">int</span> main() {
|
||||
00009
|
||||
00010 Sym v = SymVar(0);
|
||||
00011 Sym c = SymConst(0.1);
|
||||
00012
|
||||
00013 Sym sym = inv(v) + c;
|
||||
00014 Sym a = sym;
|
||||
00015
|
||||
00016 sym = sym * sym;
|
||||
00017 Sym b = sym;
|
||||
00018 sym = sym + sym;
|
||||
00019
|
||||
00020 c = sym;
|
||||
00021
|
||||
00022 vector<Sym> pop;
|
||||
00023 pop.push_back(sym);
|
||||
00024
|
||||
00025 MultiFunction m(pop);
|
||||
00026
|
||||
00027
|
||||
00028 vector<double> vec(1);
|
||||
00029 vec[0] = 10.0;
|
||||
00030 cout << sym << endl;
|
||||
00031
|
||||
00032 cout << <span class="stringliteral">"Eval "</span> << eval(sym, vec);
|
||||
00033
|
||||
00034 vector<double> y(1);
|
||||
00035
|
||||
00036 m(vec,y);
|
||||
00037
|
||||
00038 cout << <span class="stringliteral">" "</span> << y[0] << endl;
|
||||
00039
|
||||
00040 cout << <span class="stringliteral">"3 "</span> << eval(a,vec) << endl;
|
||||
00041 cout << <span class="stringliteral">"4 "</span> << eval(b, vec) << endl;
|
||||
00042 cout << <span class="stringliteral">"5 "</span> << eval(c, vec) << endl;
|
||||
00043
|
||||
00044 }
|
||||
00045
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:44 2006 for EO by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue