// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2006-2008 Benoit Jacob // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 3 of the License, or (at your option) any later version. // // Alternatively, 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 of // the License, or (at your option) any later version. // // Eigen 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 Lesser General Public License or the // GNU General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License and a copy of the GNU General Public License along with // Eigen. If not, see . #ifndef EIGEN_FORWARDDECLARATIONS_H #define EIGEN_FORWARDDECLARATIONS_H template struct ei_traits; template struct ei_product_eval_mode; template struct NumTraits; template class Matrix; template class Lazy; template class Minor; template class Block; template class Transpose; template class Conjugate; template class CwiseBinaryOp; template class CwiseUnaryOp; template::value> class Product; template class Random; template class Zero; template class Ones; template class DiagonalMatrix; template class DiagonalCoeffs; template class Identity; template class Map; template class Eval; template class EvalOMP; template class PartialRedux; template struct ei_scalar_sum_op; template struct ei_scalar_difference_op; template struct ei_scalar_product_op; template struct ei_scalar_quotient_op; template struct ei_scalar_opposite_op; template struct ei_scalar_conjugate_op; template struct ei_scalar_abs_op; template struct ei_scalar_abs2_op; template struct ei_scalar_sqrt_op; template struct ei_scalar_exp_op; template struct ei_scalar_log_op; template struct ei_scalar_cos_op; template struct ei_scalar_sin_op; template struct ei_scalar_pow_op; template struct ei_scalar_cast_op; template struct ei_scalar_multiple_op; template struct ei_scalar_quotient1_op; template struct ei_scalar_min_op; template struct ei_scalar_max_op; template struct ei_xpr_copy { typedef T type; }; template struct ei_xpr_copy > { typedef const Matrix<_Scalar, _Rows, _Cols, _Flags, _MaxRows, _MaxCols> & type; }; template struct ei_eval { typedef Matrix::Scalar, ei_traits::RowsAtCompileTime, ei_traits::ColsAtCompileTime, ei_traits::Flags & ~LazyBit, // unset lazy bit after evaluation ei_traits::MaxRowsAtCompileTime, ei_traits::MaxColsAtCompileTime> type; }; template struct ei_eval_if_expensive { enum { eval = n * NumTraits::ReadCost < (n-1) * T::CoeffReadCost }; typedef typename ei_meta_if::ret type; typedef typename ei_meta_if::ret reftype; }; template struct ei_eval_unless_lazy { typedef typename ei_meta_if::Flags & LazyBit, T, typename ei_eval::type >::ret type; }; #endif // EIGEN_FORWARDDECLARATIONS_H