ForwardDeclarations.h
Go to the documentation of this file.
00001 // This file is part of Eigen, a lightweight C++ template library
00002 // for linear algebra.
00003 //
00004 // Copyright (C) 2007-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
00005 // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
00006 //
00007 // Eigen is free software; you can redistribute it and/or
00008 // modify it under the terms of the GNU Lesser General Public
00009 // License as published by the Free Software Foundation; either
00010 // version 3 of the License, or (at your option) any later version.
00011 //
00012 // Alternatively, you can redistribute it and/or
00013 // modify it under the terms of the GNU General Public License as
00014 // published by the Free Software Foundation; either version 2 of
00015 // the License, or (at your option) any later version.
00016 //
00017 // Eigen is distributed in the hope that it will be useful, but WITHOUT ANY
00018 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00019 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License or the
00020 // GNU General Public License for more details.
00021 //
00022 // You should have received a copy of the GNU Lesser General Public
00023 // License and a copy of the GNU General Public License along with
00024 // Eigen. If not, see <http://www.gnu.org/licenses/>.
00025 
00026 #ifndef EIGEN_FORWARDDECLARATIONS_H
00027 #define EIGEN_FORWARDDECLARATIONS_H
00028 
00029 namespace internal {
00030 
00031 template<typename T> struct traits;
00032 
00033 // here we say once and for all that traits<const T> == traits<T>
00034 // When constness must affect traits, it has to be constness on template parameters on which T itself depends.
00035 // For example, traits<Map<const T> > != traits<Map<T> >, but
00036 //              traits<const Map<T> > == traits<Map<T> >
00037 template<typename T> struct traits<const T> : traits<T> {};
00038 
00039 template<typename Derived> struct has_direct_access
00040 {
00041   enum { ret = (traits<Derived>::Flags & DirectAccessBit) ? 1 : 0 };
00042 };
00043 
00044 template<typename Derived> struct accessors_level
00045 {
00046   enum { has_direct_access = (traits<Derived>::Flags & DirectAccessBit) ? 1 : 0,
00047          has_write_access = (traits<Derived>::Flags & LvalueBit) ? 1 : 0,
00048          value = has_direct_access ? (has_write_access ? DirectWriteAccessors : DirectAccessors)
00049                                    : (has_write_access ? WriteAccessors       : ReadOnlyAccessors)
00050   };
00051 };
00052 
00053 } // end namespace internal
00054 
00055 template<typename T> struct NumTraits;
00056 
00057 template<typename Derived> struct EigenBase;
00058 template<typename Derived> class DenseBase;
00059 template<typename Derived> class PlainObjectBase;
00060 
00061 
00062 template<typename Derived,
00063          int Level = internal::accessors_level<Derived>::value >
00064 class DenseCoeffsBase;
00065 
00066 template<typename _Scalar, int _Rows, int _Cols,
00067          int _Options = AutoAlign |
00068 #if defined(__GNUC__) && __GNUC__==3 && __GNUC_MINOR__==4
00069     // workaround a bug in at least gcc 3.4.6
00070     // the innermost ?: ternary operator is misparsed. We write it slightly
00071     // differently and this makes gcc 3.4.6 happy, but it's ugly.
00072     // The error would only show up with EIGEN_DEFAULT_TO_ROW_MAJOR is defined
00073     // (when EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION is RowMajor)
00074                           ( (_Rows==1 && _Cols!=1) ? RowMajor
00075                           : !(_Cols==1 && _Rows!=1) ?  EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION
00076                           : ColMajor ),
00077 #else
00078                           ( (_Rows==1 && _Cols!=1) ? RowMajor
00079                           : (_Cols==1 && _Rows!=1) ? ColMajor
00080                           : EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION ),
00081 #endif
00082          int _MaxRows = _Rows,
00083          int _MaxCols = _Cols
00084 > class Matrix;
00085 
00086 template<typename Derived> class MatrixBase;
00087 template<typename Derived> class ArrayBase;
00088 
00089 template<typename ExpressionType, unsigned int Added, unsigned int Removed> class Flagged;
00090 template<typename ExpressionType, template <typename> class StorageBase > class NoAlias;
00091 template<typename ExpressionType> class NestByValue;
00092 template<typename ExpressionType> class ForceAlignedAccess;
00093 template<typename ExpressionType> class SwapWrapper;
00094 
00095 template<typename XprType, int BlockRows=Dynamic, int BlockCols=Dynamic, bool InnerPanel = false,
00096          bool HasDirectAccess = internal::has_direct_access<XprType>::ret> class Block;
00097 
00098 template<typename MatrixType, int Size=Dynamic> class VectorBlock;
00099 template<typename MatrixType> class Transpose;
00100 template<typename MatrixType> class Conjugate;
00101 template<typename NullaryOp, typename MatrixType>         class CwiseNullaryOp;
00102 template<typename UnaryOp,   typename MatrixType>         class CwiseUnaryOp;
00103 template<typename ViewOp,    typename MatrixType>         class CwiseUnaryView;
00104 template<typename BinaryOp,  typename Lhs, typename Rhs>  class CwiseBinaryOp;
00105 template<typename BinOp,     typename Lhs, typename Rhs>  class SelfCwiseBinaryOp;
00106 template<typename Derived,   typename Lhs, typename Rhs>  class ProductBase;
00107 template<typename Lhs, typename Rhs, int Mode>            class GeneralProduct;
00108 template<typename Lhs, typename Rhs, int NestingFlags>    class CoeffBasedProduct;
00109 
00110 template<typename Derived> class DiagonalBase;
00111 template<typename _DiagonalVectorType> class DiagonalWrapper;
00112 template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime=SizeAtCompileTime> class DiagonalMatrix;
00113 template<typename MatrixType, typename DiagonalType, int ProductOrder> class DiagonalProduct;
00114 template<typename MatrixType, int Index = 0> class Diagonal;
00115 template<int SizeAtCompileTime, int MaxSizeAtCompileTime = SizeAtCompileTime, typename IndexType=int> class PermutationMatrix;
00116 template<int SizeAtCompileTime, int MaxSizeAtCompileTime = SizeAtCompileTime, typename IndexType=int> class Transpositions;
00117 template<typename Derived> class PermutationBase;
00118 template<typename Derived> class TranspositionsBase;
00119 template<typename _IndicesType> class PermutationWrapper;
00120 template<typename _IndicesType> class TranspositionsWrapper;
00121 
00122 template<typename Derived,
00123          int Level = internal::accessors_level<Derived>::has_write_access ? WriteAccessors : ReadOnlyAccessors
00124 > class MapBase;
00125 template<int InnerStrideAtCompileTime, int OuterStrideAtCompileTime> class Stride;
00126 template<typename MatrixType, int MapOptions=Unaligned, typename StrideType = Stride<0,0> > class Map;
00127 
00128 template<typename Derived> class TriangularBase;
00129 template<typename MatrixType, unsigned int Mode> class TriangularView;
00130 template<typename MatrixType, unsigned int Mode> class SelfAdjointView;
00131 template<typename MatrixType> class SparseView;
00132 template<typename ExpressionType> class WithFormat;
00133 template<typename MatrixType> struct CommaInitializer;
00134 template<typename Derived> class ReturnByValue;
00135 template<typename ExpressionType> class ArrayWrapper;
00136 
00137 namespace internal {
00138 template<typename DecompositionType, typename Rhs> struct solve_retval_base;
00139 template<typename DecompositionType, typename Rhs> struct solve_retval;
00140 template<typename DecompositionType> struct kernel_retval_base;
00141 template<typename DecompositionType> struct kernel_retval;
00142 template<typename DecompositionType> struct image_retval_base;
00143 template<typename DecompositionType> struct image_retval;
00144 } // end namespace internal
00145 
00146 namespace internal {
00147 template<typename _Scalar, int Rows=Dynamic, int Cols=Dynamic, int Supers=Dynamic, int Subs=Dynamic, int Options=0> class BandMatrix;
00148 }
00149 
00150 namespace internal {
00151 template<typename Lhs, typename Rhs> struct product_type;
00152 }
00153 
00154 template<typename Lhs, typename Rhs,
00155          int ProductType = internal::product_type<Lhs,Rhs>::value>
00156 struct ProductReturnType;
00157 
00158 // this is a workaround for sun CC
00159 template<typename Lhs, typename Rhs> struct LazyProductReturnType;
00160 
00161 namespace internal {
00162 
00163 // Provides scalar/packet-wise product and product with accumulation
00164 // with optional conjugation of the arguments.
00165 template<typename LhsScalar, typename RhsScalar, bool ConjLhs=false, bool ConjRhs=false> struct conj_helper;
00166 
00167 template<typename Scalar> struct scalar_sum_op;
00168 template<typename Scalar> struct scalar_difference_op;
00169 template<typename LhsScalar,typename RhsScalar> struct scalar_conj_product_op;
00170 template<typename Scalar> struct scalar_quotient_op;
00171 template<typename Scalar> struct scalar_opposite_op;
00172 template<typename Scalar> struct scalar_conjugate_op;
00173 template<typename Scalar> struct scalar_real_op;
00174 template<typename Scalar> struct scalar_imag_op;
00175 template<typename Scalar> struct scalar_abs_op;
00176 template<typename Scalar> struct scalar_abs2_op;
00177 template<typename Scalar> struct scalar_sqrt_op;
00178 template<typename Scalar> struct scalar_exp_op;
00179 template<typename Scalar> struct scalar_log_op;
00180 template<typename Scalar> struct scalar_cos_op;
00181 template<typename Scalar> struct scalar_sin_op;
00182 template<typename Scalar> struct scalar_acos_op;
00183 template<typename Scalar> struct scalar_asin_op;
00184 template<typename Scalar> struct scalar_tan_op;
00185 template<typename Scalar> struct scalar_pow_op;
00186 template<typename Scalar> struct scalar_inverse_op;
00187 template<typename Scalar> struct scalar_square_op;
00188 template<typename Scalar> struct scalar_cube_op;
00189 template<typename Scalar, typename NewType> struct scalar_cast_op;
00190 template<typename Scalar> struct scalar_multiple_op;
00191 template<typename Scalar> struct scalar_quotient1_op;
00192 template<typename Scalar> struct scalar_min_op;
00193 template<typename Scalar> struct scalar_max_op;
00194 template<typename Scalar> struct scalar_random_op;
00195 template<typename Scalar> struct scalar_add_op;
00196 template<typename Scalar> struct scalar_constant_op;
00197 template<typename Scalar> struct scalar_identity_op;
00198 
00199 template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_product_op;
00200 template<typename LhsScalar,typename RhsScalar> struct scalar_multiple2_op;
00201 
00202 } // end namespace internal
00203 
00204 struct IOFormat;
00205 
00206 // Array module
00207 template<typename _Scalar, int _Rows, int _Cols,
00208          int _Options = AutoAlign |
00209 #if defined(__GNUC__) && __GNUC__==3 && __GNUC_MINOR__==4
00210     // workaround a bug in at least gcc 3.4.6
00211     // the innermost ?: ternary operator is misparsed. We write it slightly
00212     // differently and this makes gcc 3.4.6 happy, but it's ugly.
00213     // The error would only show up with EIGEN_DEFAULT_TO_ROW_MAJOR is defined
00214     // (when EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION is RowMajor)
00215                           ( (_Rows==1 && _Cols!=1) ? RowMajor
00216                           : !(_Cols==1 && _Rows!=1) ?  EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION
00217                           : ColMajor ),
00218 #else
00219                           ( (_Rows==1 && _Cols!=1) ? RowMajor
00220                           : (_Cols==1 && _Rows!=1) ? ColMajor
00221                           : EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION ),
00222 #endif
00223          int _MaxRows = _Rows, int _MaxCols = _Cols> class Array;
00224 template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType> class Select;
00225 template<typename MatrixType, typename BinaryOp, int Direction> class PartialReduxExpr;
00226 template<typename ExpressionType, int Direction> class VectorwiseOp;
00227 template<typename MatrixType,int RowFactor,int ColFactor> class Replicate;
00228 template<typename MatrixType, int Direction = BothDirections> class Reverse;
00229 
00230 template<typename MatrixType> class FullPivLU;
00231 template<typename MatrixType> class PartialPivLU;
00232 namespace internal {
00233 template<typename MatrixType> struct inverse_impl;
00234 }
00235 template<typename MatrixType> class HouseholderQR;
00236 template<typename MatrixType> class ColPivHouseholderQR;
00237 template<typename MatrixType> class FullPivHouseholderQR;
00238 template<typename MatrixType, int QRPreconditioner = ColPivHouseholderQRPreconditioner> class JacobiSVD;
00239 template<typename MatrixType, int UpLo = Lower> class LLT;
00240 template<typename MatrixType, int UpLo = Lower> class LDLT;
00241 template<typename VectorsType, typename CoeffsType, int Side=OnTheLeft> class HouseholderSequence;
00242 template<typename Scalar>     class JacobiRotation;
00243 
00244 // Geometry module:
00245 template<typename Derived, int _Dim> class RotationBase;
00246 template<typename Lhs, typename Rhs> class Cross;
00247 template<typename Derived> class QuaternionBase;
00248 template<typename Scalar> class Rotation2D;
00249 template<typename Scalar> class AngleAxis;
00250 template<typename Scalar,int Dim> class Translation;
00251 
00252 #ifdef EIGEN2_SUPPORT
00253 template<typename Derived, int _Dim> class eigen2_RotationBase;
00254 template<typename Lhs, typename Rhs> class eigen2_Cross;
00255 template<typename Scalar> class eigen2_Quaternion;
00256 template<typename Scalar> class eigen2_Rotation2D;
00257 template<typename Scalar> class eigen2_AngleAxis;
00258 template<typename Scalar,int Dim> class eigen2_Transform;
00259 template <typename _Scalar, int _AmbientDim> class eigen2_ParametrizedLine;
00260 template <typename _Scalar, int _AmbientDim> class eigen2_Hyperplane;
00261 template<typename Scalar,int Dim> class eigen2_Translation;
00262 template<typename Scalar,int Dim> class eigen2_Scaling;
00263 #endif
00264 
00265 #if EIGEN2_SUPPORT_STAGE < STAGE20_RESOLVE_API_CONFLICTS
00266 template<typename Scalar> class Quaternion;
00267 template<typename Scalar,int Dim> class Transform;
00268 template <typename _Scalar, int _AmbientDim> class ParametrizedLine;
00269 template <typename _Scalar, int _AmbientDim> class Hyperplane;
00270 template<typename Scalar,int Dim> class Scaling;
00271 #endif
00272 
00273 #if EIGEN2_SUPPORT_STAGE > STAGE20_RESOLVE_API_CONFLICTS
00274 template<typename Scalar, int Options = AutoAlign> class Quaternion;
00275 template<typename Scalar,int Dim,int Mode,int _Options=AutoAlign> class Transform;
00276 template <typename _Scalar, int _AmbientDim, int Options=AutoAlign> class ParametrizedLine;
00277 template <typename _Scalar, int _AmbientDim, int Options=AutoAlign> class Hyperplane;
00278 template<typename Scalar> class UniformScaling;
00279 template<typename MatrixType,int Direction> class Homogeneous;
00280 #endif
00281 
00282 // MatrixFunctions module
00283 template<typename Derived> struct MatrixExponentialReturnValue;
00284 template<typename Derived> class MatrixFunctionReturnValue;
00285 
00286 namespace internal {
00287 template <typename Scalar>
00288 struct stem_function
00289 {
00290   typedef std::complex<typename NumTraits<Scalar>::Real> ComplexScalar;
00291   typedef ComplexScalar type(ComplexScalar, int);
00292 };
00293 }
00294 
00295 
00296 #ifdef EIGEN2_SUPPORT
00297 template<typename ExpressionType> class Cwise;
00298 template<typename MatrixType> class Minor;
00299 template<typename MatrixType> class LU;
00300 template<typename MatrixType> class QR;
00301 template<typename MatrixType> class SVD;
00302 namespace internal {
00303 template<typename MatrixType, unsigned int Mode> struct eigen2_part_return_type;
00304 }
00305 #endif
00306 
00307 #endif // EIGEN_FORWARDDECLARATIONS_H


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:31:08