aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/compile_snippet.cpp.in
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-07-15 23:56:17 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-07-15 23:56:17 +0000
commit62ec1dd616377721d8be414911721bdc8967d677 (patch)
tree9b26d5787aaef0eed772c1be211219804f601865 /doc/snippets/compile_snippet.cpp.in
parentb970a9c8aa21f74a5de644729f990ed202c2fceb (diff)
* big rework of Inverse.h:
- remove all invertibility checking, will be redundant with LU - general case: adapt to matrix storage order for better perf - size 4 case: handle corner cases without falling back to gen case. - rationalize with selectors instead of compile time if - add C-style computeInverse() * update inverse test. * in snippets, default cout precision to 3 decimal places * add some cmake module from kdelibs to support btl with cmake 2.4
Diffstat (limited to 'doc/snippets/compile_snippet.cpp.in')
-rw-r--r--doc/snippets/compile_snippet.cpp.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/snippets/compile_snippet.cpp.in b/doc/snippets/compile_snippet.cpp.in
index 5d8e53a0c..5876aab9c 100644
--- a/doc/snippets/compile_snippet.cpp.in
+++ b/doc/snippets/compile_snippet.cpp.in
@@ -1,10 +1,13 @@
#include <Eigen/Core>
#include <Eigen/Array>
#include <Eigen/LU>
+
USING_PART_OF_NAMESPACE_EIGEN
using namespace std;
+
int main(int, char**)
{
-${snippet_source_code}
-return 0;
+ cout.precision(3);
+ ${snippet_source_code}
+ return 0;
}