From fb3438e609be743c066af9167e6ed83cd17af394 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 14 Mar 2008 10:38:37 +0000 Subject: - expand MathFunctions.h to provide more functions, like exp, log... - add cwiseExp(), cwiseLog()... --> for example, doing a gamma-correction on a bitmap image stored as an array of floats is a simple matter of: Eigen::Map m = VectorXf::map(bitmap,size); m = m.cwisePow(gamma); - apidoc improvements, reorganization of the \name's - remove obsolete examples - remove EIGEN_ALWAYS_INLINE on lazyProduct(), it seems useless. --- doc/examples/class_FixedBlock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/examples/class_FixedBlock.cpp') diff --git a/doc/examples/class_FixedBlock.cpp b/doc/examples/class_FixedBlock.cpp index 644f420bd..e3e9532bc 100644 --- a/doc/examples/class_FixedBlock.cpp +++ b/doc/examples/class_FixedBlock.cpp @@ -6,14 +6,14 @@ template Eigen::Block topLeft2x2Corner(MatrixBase& m) { - return Eigen::Block(m, 0, 0); + return Eigen::Block(m.derived(), 0, 0); } template const Eigen::Block topLeft2x2Corner(const MatrixBase& m) { - return Eigen::Block(m, 0, 0); + return Eigen::Block(m.derived(), 0, 0); } int main(int, char**) -- cgit v1.2.3