diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-03-14 10:38:37 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-03-14 10:38:37 +0000 |
commit | fb3438e609be743c066af9167e6ed83cd17af394 (patch) | |
tree | 659a868f1c501ab4ddaf9b681ea8cb8d1ed4bdb0 /doc/examples/class_Block.cpp | |
parent | fe569b060c367d34c83624061fff407738609402 (diff) |
- 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<VectorXf> 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.
Diffstat (limited to 'doc/examples/class_Block.cpp')
-rw-r--r-- | doc/examples/class_Block.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/class_Block.cpp b/doc/examples/class_Block.cpp index fd5ae816c..79cc314bf 100644 --- a/doc/examples/class_Block.cpp +++ b/doc/examples/class_Block.cpp @@ -6,14 +6,14 @@ template<typename Derived> Eigen::Block<Derived> topLeftCorner(MatrixBase<Derived>& m, int rows, int cols) { - return Eigen::Block<Derived>(m, 0, 0, rows, cols); + return Eigen::Block<Derived>(m.derived(), 0, 0, rows, cols); } template<typename Derived> const Eigen::Block<Derived> topLeftCorner(const MatrixBase<Derived>& m, int rows, int cols) { - return Eigen::Block<Derived>(m, 0, 0, rows, cols); + return Eigen::Block<Derived>(m.derived(), 0, 0, rows, cols); } int main(int, char**) |