// 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 Temporary; 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_eval { typedef Matrix::Scalar, ei_traits::RowsAtCompileTime, ei_traits::ColsAtCompileTime, ei_traits::Flags & ~(EvalBeforeNestingBit | EvalBeforeAssigningBit), ei_traits::MaxRowsAtCompileTime, ei_traits::MaxColsAtCompileTime> type; }; template struct ei_unref { typedef T type; }; template struct ei_unref { typedef T type; }; template struct ei_is_temporary { enum { ret = 0 }; }; template struct ei_is_temporary > { enum { ret = 1 }; }; template struct ei_xpr_copy { typedef typename ei_meta_if< ei_is_temporary::ret, T, typename ei_meta_if< ei_traits::Flags & EvalBeforeNestingBit || (n+1) * NumTraits::Scalar>::ReadCost < (n-1) * T::CoeffReadCost, typename ei_eval::type, const T& >::ret >::ret type; }; template struct ei_functor_traits { enum { Cost = 10, IsVectorizable = false }; }; #endif // EIGEN_FORWARDDECLARATIONS_H