[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN/doc documentation.h
From: |
Tom Drummond |
Subject: |
[Toon-members] TooN/doc documentation.h |
Date: |
Mon, 10 Jul 2006 13:28:38 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Tom Drummond <twd20> 06/07/10 13:28:38
Modified files:
doc : documentation.h
Log message:
code example bugs fixed
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/doc/documentation.h?cvsroot=toon&r1=1.6&r2=1.7
Patches:
Index: documentation.h
===================================================================
RCS file: /cvsroot/toon/TooN/doc/documentation.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- documentation.h 7 Jul 2006 14:20:55 -0000 1.6
+++ documentation.h 10 Jul 2006 13:28:38 -0000 1.7
@@ -53,7 +53,7 @@
- Make sure you have a suitable compiler (g++ version < 3 is no good)
- Make sure the directory containing TooN/ is somewhere on your search
path
- - Add <code>#include <TooN/toon.h></code>, and any other header files
you might need e.g. <code>TooN/helpers.h</code> (for some more matrix and
vector functions) or <code>TooN/SVD.h</code> (for the singular value
decomposition) to your source code.
+ - Add <code>#include <TooN/TooN.h></code>, and any other header files
you might need e.g. <code>TooN/helpers.h</code> (for some more matrix and
vector functions) or <code>TooN/SVD.h</code> (for the singular value
decomposition) to your source code.
- Add <code>using namespace %TooN</code> to your code (or prefix class
declarations with <code>%TooN::</code>).
- You will need to link with <code>-llapack -lblas</code> (and
<code>-lg2c</code> for g++. I'm not sure about other compilers). This means you
will also need liblapack.{a,so} and libblas.{a,so}
@@ -86,9 +86,9 @@
double d[2][3] = {{2,4,5},{6,8,9}};
Matrix<2,3> M(d);
// Now perform calculations
-Vector<2> = M*v; // OK - answer is a static 2D vector
-Vector<> = M*v; // OK - vector is determined to be 2D at runtime
-Vector<> = v*M; // Compile error - dimensions of matrix and vector
incompatible
+Vector<2> v2 = M*v; // OK - answer is a static 2D vector
+Vector<> v3 = M*v; // OK - vector is determined to be 2D at runtime
+Vector<> v4 = v*M; // Compile error - dimensions of matrix and vector
incompatible
@endcode
See the detailed documentation for @link TooN::Vector address@hidden, @link
TooN::Matrix address@hidden and