projects
/
mappings.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
35c690c
)
Minor corrections.
master
author
Francois Fleuret
<francois@fleuret.org>
Mon, 9 Sep 2013 16:58:59 +0000
(18:58 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Mon, 9 Sep 2013 16:58:59 +0000
(18:58 +0200)
README.txt
patch
|
blob
|
history
diff --git
a/README.txt
b/README.txt
index
e3d2001
..
31b4f98
100644
(file)
--- a/
README.txt
+++ b/
README.txt
@@
-1,6
+1,6
@@
This mapping class is a usable example of a "sophisticated" symbolic
This mapping class is a usable example of a "sophisticated" symbolic
-mapping class in C++.
Bascially i
t allows you to do things like :
+mapping class in C++.
I
t allows you to do things like :
// X will be the "identity mapping"
Mapping X = Mapping::X;
// X will be the "identity mapping"
Mapping X = Mapping::X;
@@
-8,21
+8,20
@@
mapping class in C++. Bascially it allows you to do things like :
Mapping f;
// Now contains some complex stuff
f = sin(X * X - (X * 3.0) + 0.5);
Mapping f;
// Now contains some complex stuff
f = sin(X * X - (X * 3.0) + 0.5);
- // Display it
+ // Display it
s square
cout << f*f << endl;
cout << f*f << endl;
- // fp will be
the
first derivative
+ // fp will be
its
first derivative
Mapping fp = f.derivative();
Mapping fp = f.derivative();
- // fs
the
second derivative
+ // fs
its
second derivative
Mapping fs = fp.derivative();
// Compute the second derivative at 5
cout << fs(5.0) << endl;
Mapping fs = fp.derivative();
// Compute the second derivative at 5
cout << fs(5.0) << endl;
-The best is to check the mappings.h to look at what functions and
-operators are available. It will be pretty easy to add your own
-operators.
+The best is to check the file mappings.h for the list of available
+functions and operators. It is pretty easy to add your own.
-The memory management is done in such a way that
spurious copies are
-a
voided and intermediate results will b
e deallocated correctly. So far
+The memory management is done in such a way that
unnecessary copies
+a
re avoided and intermediate results ar
e deallocated correctly. So far
I never traced a memory leak, but feel free to report it if you find
one.
I never traced a memory leak, but feel free to report it if you find
one.