diff options
Diffstat (limited to 'src/Core/Trace.h')
-rw-r--r-- | src/Core/Trace.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/Core/Trace.h b/src/Core/Trace.h index 80c5dbed1..41394cffa 100644 --- a/src/Core/Trace.h +++ b/src/Core/Trace.h @@ -1,19 +1,19 @@ -// This file is part of Eigen, a lightweight C++ template library -// for linear algebra. Eigen itself is part of the KDE project. +// This file is part of gen, a lightweight C++ template library +// for linear algebra. gen itself is part of the KDE project. // // Copyright (C) 2006-2007 Benoit Jacob <jacob@math.jussieu.fr> // -// Eigen is free software; you can redistribute it and/or modify it under the +// gen is free software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the Free Software // Foundation; either version 2 or (at your option) any later version. // -// Eigen is distributed in the hope that it will be useful, but WITHOUT ANY +// gen is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along -// with Eigen; if not, write to the Free Software Foundation, Inc., 51 +// with gen; if not, write to the Free Software Foundation, Inc., 51 // Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. // // As a special exception, if other files instantiate templates or use macros @@ -26,16 +26,16 @@ #ifndef EI_TRACE_H #define EI_TRACE_H -template<int Index, int Rows, typename Derived> struct EiTraceUnroller +template<int Index, int Rows, typename Derived> struct TraceUnroller { static void run(const Derived &mat, typename Derived::Scalar &trace) { - EiTraceUnroller<Index-1, Rows, Derived>::run(mat, trace); + TraceUnroller<Index-1, Rows, Derived>::run(mat, trace); trace += mat(Index, Index); } }; -template<int Rows, typename Derived> struct EiTraceUnroller<0, Rows, Derived> +template<int Rows, typename Derived> struct TraceUnroller<0, Rows, Derived> { static void run(const Derived &mat, typename Derived::Scalar &trace) { @@ -43,7 +43,7 @@ template<int Rows, typename Derived> struct EiTraceUnroller<0, Rows, Derived> } }; -template<int Index, typename Derived> struct EiTraceUnroller<Index, EiDynamic, Derived> +template<int Index, typename Derived> struct TraceUnroller<Index, Dynamic, Derived> { static void run(const Derived &mat, typename Derived::Scalar &trace) { @@ -53,12 +53,12 @@ template<int Index, typename Derived> struct EiTraceUnroller<Index, EiDynamic, D }; template<typename Scalar, typename Derived> -Scalar EiObject<Scalar, Derived>::trace() const +Scalar Object<Scalar, Derived>::trace() const { assert(rows() == cols()); Scalar res; - if(RowsAtCompileTime != EiDynamic && RowsAtCompileTime <= 16) - EiTraceUnroller<RowsAtCompileTime-1, RowsAtCompileTime, Derived> + if(RowsAtCompileTime != Dynamic && RowsAtCompileTime <= 16) + TraceUnroller<RowsAtCompileTime-1, RowsAtCompileTime, Derived> ::run(*static_cast<const Derived*>(this), res); else { |