diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-05-12 17:34:46 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-05-12 17:34:46 +0000 |
commit | 678f18fce4dec90ffa97b2fb3a92d572fb64c059 (patch) | |
tree | 4f97c884205357bf63dd4692ca0060046a9385f7 /Eigen/src/Core/Visitor.h | |
parent | f0eb3d2d3b671c46d2c3b8c48037f6f8cd0100d3 (diff) |
put inline keywords everywhere appropriate. So we don't need anymore to pass
-finline-limit=1000 to gcc to get good performance. By the way some cleanup.
Diffstat (limited to 'Eigen/src/Core/Visitor.h')
-rw-r--r-- | Eigen/src/Core/Visitor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Core/Visitor.h b/Eigen/src/Core/Visitor.h index ac3ccc2cc..9dd8ef661 100644 --- a/Eigen/src/Core/Visitor.h +++ b/Eigen/src/Core/Visitor.h @@ -33,7 +33,7 @@ struct ei_visitor_unroller row = (UnrollCount-1) % Derived::RowsAtCompileTime }; - static void run(const Derived &mat, Visitor& visitor) + inline static void run(const Derived &mat, Visitor& visitor) { ei_visitor_unroller<Visitor, Derived, UnrollCount-1>::run(mat, visitor); visitor(mat.coeff(row, col), row, col); @@ -43,7 +43,7 @@ struct ei_visitor_unroller template<typename Visitor, typename Derived> struct ei_visitor_unroller<Visitor, Derived, 1> { - static void run(const Derived &mat, Visitor& visitor) + inline static void run(const Derived &mat, Visitor& visitor) { return visitor.init(mat.coeff(0, 0), 0, 0); } @@ -52,7 +52,7 @@ struct ei_visitor_unroller<Visitor, Derived, 1> template<typename Visitor, typename Derived> struct ei_visitor_unroller<Visitor, Derived, Dynamic> { - static void run(const Derived &, Visitor&) {} + inline static void run(const Derived &, Visitor&) {} }; @@ -100,7 +100,7 @@ struct ei_coeff_visitor { int row, col; Scalar res; - void init(const Scalar& value, int i, int j) + inline void init(const Scalar& value, int i, int j) { res = value; row = i; |