2008-01-11 15:16:18 +08:00
|
|
|
// This file is part of Eigen, a lightweight C++ template library
|
2009-05-23 02:25:33 +08:00
|
|
|
// for linear algebra.
|
2008-01-11 15:16:18 +08:00
|
|
|
//
|
2010-02-19 09:42:38 +08:00
|
|
|
// Copyright (C) 2007-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
|
2010-06-25 05:21:58 +08:00
|
|
|
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
|
2008-01-11 15:16:18 +08:00
|
|
|
//
|
2012-07-14 02:42:47 +08:00
|
|
|
// This Source Code Form is subject to the terms of the Mozilla
|
|
|
|
|
// Public License v. 2.0. If a copy of the MPL was not distributed
|
|
|
|
|
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2008-01-11 15:16:18 +08:00
|
|
|
|
|
|
|
|
#ifndef EIGEN_FORWARDDECLARATIONS_H
|
|
|
|
|
#define EIGEN_FORWARDDECLARATIONS_H
|
|
|
|
|
|
2012-04-15 18:06:28 +08:00
|
|
|
namespace Eigen {
|
2010-10-25 22:15:22 +08:00
|
|
|
namespace internal {
|
2010-12-23 06:45:37 +08:00
|
|
|
|
2010-10-25 22:15:22 +08:00
|
|
|
template<typename T> struct traits;
|
2008-03-11 01:23:11 +08:00
|
|
|
|
2010-12-23 06:45:37 +08:00
|
|
|
// here we say once and for all that traits<const T> == traits<T>
|
|
|
|
|
// When constness must affect traits, it has to be constness on template parameters on which T itself depends.
|
|
|
|
|
// For example, traits<Map<const T> > != traits<Map<T> >, but
|
|
|
|
|
// traits<const Map<T> > == traits<Map<T> >
|
|
|
|
|
template<typename T> struct traits<const T> : traits<T> {};
|
|
|
|
|
|
2010-10-25 22:15:22 +08:00
|
|
|
template<typename Derived> struct has_direct_access
|
2010-05-09 01:45:31 +08:00
|
|
|
{
|
2010-10-25 22:15:22 +08:00
|
|
|
enum { ret = (traits<Derived>::Flags & DirectAccessBit) ? 1 : 0 };
|
2010-05-09 01:45:31 +08:00
|
|
|
};
|
2010-12-10 15:09:58 +08:00
|
|
|
|
|
|
|
|
template<typename Derived> struct accessors_level
|
|
|
|
|
{
|
|
|
|
|
enum { has_direct_access = (traits<Derived>::Flags & DirectAccessBit) ? 1 : 0,
|
|
|
|
|
has_write_access = (traits<Derived>::Flags & LvalueBit) ? 1 : 0,
|
|
|
|
|
value = has_direct_access ? (has_write_access ? DirectWriteAccessors : DirectAccessors)
|
|
|
|
|
: (has_write_access ? WriteAccessors : ReadOnlyAccessors)
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2010-10-25 22:15:22 +08:00
|
|
|
} // end namespace internal
|
|
|
|
|
|
|
|
|
|
template<typename T> struct NumTraits;
|
2010-05-09 01:45:31 +08:00
|
|
|
|
2010-02-20 22:26:02 +08:00
|
|
|
template<typename Derived> struct EigenBase;
|
2010-05-19 22:44:28 +08:00
|
|
|
template<typename Derived> class DenseBase;
|
2010-12-23 06:45:37 +08:00
|
|
|
template<typename Derived> class PlainObjectBase;
|
2010-12-10 15:09:58 +08:00
|
|
|
|
|
|
|
|
|
2010-07-21 16:57:01 +08:00
|
|
|
template<typename Derived,
|
2010-12-10 15:09:58 +08:00
|
|
|
int Level = internal::accessors_level<Derived>::value >
|
2010-05-09 01:45:31 +08:00
|
|
|
class DenseCoeffsBase;
|
2009-06-29 03:27:37 +08:00
|
|
|
|
2009-01-04 23:26:32 +08:00
|
|
|
template<typename _Scalar, int _Rows, int _Cols,
|
2010-03-09 13:16:07 +08:00
|
|
|
int _Options = AutoAlign |
|
2011-02-04 19:09:30 +08:00
|
|
|
#if defined(__GNUC__) && __GNUC__==3 && __GNUC_MINOR__==4
|
|
|
|
|
// workaround a bug in at least gcc 3.4.6
|
|
|
|
|
// the innermost ?: ternary operator is misparsed. We write it slightly
|
|
|
|
|
// differently and this makes gcc 3.4.6 happy, but it's ugly.
|
|
|
|
|
// The error would only show up with EIGEN_DEFAULT_TO_ROW_MAJOR is defined
|
|
|
|
|
// (when EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION is RowMajor)
|
|
|
|
|
( (_Rows==1 && _Cols!=1) ? RowMajor
|
|
|
|
|
: !(_Cols==1 && _Rows!=1) ? EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION
|
|
|
|
|
: ColMajor ),
|
|
|
|
|
#else
|
2010-03-09 13:16:07 +08:00
|
|
|
( (_Rows==1 && _Cols!=1) ? RowMajor
|
|
|
|
|
: (_Cols==1 && _Rows!=1) ? ColMajor
|
|
|
|
|
: EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION ),
|
2011-02-04 19:09:30 +08:00
|
|
|
#endif
|
2010-03-09 13:16:07 +08:00
|
|
|
int _MaxRows = _Rows,
|
|
|
|
|
int _MaxCols = _Cols
|
|
|
|
|
> class Matrix;
|
2008-04-14 16:20:24 +08:00
|
|
|
|
2010-04-16 22:13:32 +08:00
|
|
|
template<typename Derived> class MatrixBase;
|
|
|
|
|
template<typename Derived> class ArrayBase;
|
|
|
|
|
|
2008-05-14 16:20:15 +08:00
|
|
|
template<typename ExpressionType, unsigned int Added, unsigned int Removed> class Flagged;
|
2009-11-17 23:04:19 +08:00
|
|
|
template<typename ExpressionType, template <typename> class StorageBase > class NoAlias;
|
2008-05-28 13:14:16 +08:00
|
|
|
template<typename ExpressionType> class NestByValue;
|
2009-11-20 23:30:14 +08:00
|
|
|
template<typename ExpressionType> class ForceAlignedAccess;
|
2008-08-06 05:55:57 +08:00
|
|
|
template<typename ExpressionType> class SwapWrapper;
|
2010-03-12 01:41:46 +08:00
|
|
|
|
2010-07-23 22:29:29 +08:00
|
|
|
template<typename XprType, int BlockRows=Dynamic, int BlockCols=Dynamic, bool InnerPanel = false,
|
2010-10-25 22:15:22 +08:00
|
|
|
bool HasDirectAccess = internal::has_direct_access<XprType>::ret> class Block;
|
2010-03-12 01:41:46 +08:00
|
|
|
|
2009-11-20 23:30:14 +08:00
|
|
|
template<typename MatrixType, int Size=Dynamic> class VectorBlock;
|
2008-01-11 15:16:18 +08:00
|
|
|
template<typename MatrixType> class Transpose;
|
|
|
|
|
template<typename MatrixType> class Conjugate;
|
2008-04-25 02:35:39 +08:00
|
|
|
template<typename NullaryOp, typename MatrixType> class CwiseNullaryOp;
|
|
|
|
|
template<typename UnaryOp, typename MatrixType> class CwiseUnaryOp;
|
2009-05-20 21:41:23 +08:00
|
|
|
template<typename ViewOp, typename MatrixType> class CwiseUnaryView;
|
2008-04-25 02:35:39 +08:00
|
|
|
template<typename BinaryOp, typename Lhs, typename Rhs> class CwiseBinaryOp;
|
2010-07-20 05:31:08 +08:00
|
|
|
template<typename BinOp, typename Lhs, typename Rhs> class SelfCwiseBinaryOp;
|
2009-08-05 21:23:35 +08:00
|
|
|
template<typename Derived, typename Lhs, typename Rhs> class ProductBase;
|
2010-02-09 18:05:39 +08:00
|
|
|
template<typename Lhs, typename Rhs, int Mode> class GeneralProduct;
|
|
|
|
|
template<typename Lhs, typename Rhs, int NestingFlags> class CoeffBasedProduct;
|
2009-06-29 03:27:37 +08:00
|
|
|
|
|
|
|
|
template<typename Derived> class DiagonalBase;
|
|
|
|
|
template<typename _DiagonalVectorType> class DiagonalWrapper;
|
2009-11-16 10:12:15 +08:00
|
|
|
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime=SizeAtCompileTime> class DiagonalMatrix;
|
2009-06-29 10:01:31 +08:00
|
|
|
template<typename MatrixType, typename DiagonalType, int ProductOrder> class DiagonalProduct;
|
2010-12-23 06:45:37 +08:00
|
|
|
template<typename MatrixType, int Index = 0> class Diagonal;
|
2011-01-26 23:33:23 +08:00
|
|
|
template<int SizeAtCompileTime, int MaxSizeAtCompileTime = SizeAtCompileTime, typename IndexType=int> class PermutationMatrix;
|
|
|
|
|
template<int SizeAtCompileTime, int MaxSizeAtCompileTime = SizeAtCompileTime, typename IndexType=int> class Transpositions;
|
|
|
|
|
template<typename Derived> class PermutationBase;
|
|
|
|
|
template<typename Derived> class TranspositionsBase;
|
|
|
|
|
template<typename _IndicesType> class PermutationWrapper;
|
|
|
|
|
template<typename _IndicesType> class TranspositionsWrapper;
|
2009-06-29 03:27:37 +08:00
|
|
|
|
2010-12-10 15:09:58 +08:00
|
|
|
template<typename Derived,
|
|
|
|
|
int Level = internal::accessors_level<Derived>::has_write_access ? WriteAccessors : ReadOnlyAccessors
|
|
|
|
|
> class MapBase;
|
2010-02-27 09:12:51 +08:00
|
|
|
template<int InnerStrideAtCompileTime, int OuterStrideAtCompileTime> class Stride;
|
2010-04-26 22:59:04 +08:00
|
|
|
template<typename MatrixType, int MapOptions=Unaligned, typename StrideType = Stride<0,0> > class Map;
|
2010-02-19 09:42:38 +08:00
|
|
|
|
2009-07-07 05:43:20 +08:00
|
|
|
template<typename Derived> class TriangularBase;
|
|
|
|
|
template<typename MatrixType, unsigned int Mode> class TriangularView;
|
|
|
|
|
template<typename MatrixType, unsigned int Mode> class SelfAdjointView;
|
2010-06-14 07:16:46 +08:00
|
|
|
template<typename MatrixType> class SparseView;
|
2008-08-21 21:17:21 +08:00
|
|
|
template<typename ExpressionType> class WithFormat;
|
2008-09-14 02:51:51 +08:00
|
|
|
template<typename MatrixType> struct CommaInitializer;
|
2009-09-23 00:20:45 +08:00
|
|
|
template<typename Derived> class ReturnByValue;
|
2009-12-05 06:17:14 +08:00
|
|
|
template<typename ExpressionType> class ArrayWrapper;
|
2011-04-23 05:36:45 +08:00
|
|
|
template<typename ExpressionType> class MatrixWrapper;
|
2008-09-14 02:51:51 +08:00
|
|
|
|
2010-10-25 22:15:22 +08:00
|
|
|
namespace internal {
|
|
|
|
|
template<typename DecompositionType, typename Rhs> struct solve_retval_base;
|
|
|
|
|
template<typename DecompositionType, typename Rhs> struct solve_retval;
|
|
|
|
|
template<typename DecompositionType> struct kernel_retval_base;
|
|
|
|
|
template<typename DecompositionType> struct kernel_retval;
|
|
|
|
|
template<typename DecompositionType> struct image_retval_base;
|
|
|
|
|
template<typename DecompositionType> struct image_retval;
|
|
|
|
|
} // end namespace internal
|
2009-11-03 15:18:10 +08:00
|
|
|
|
2010-12-26 06:17:10 +08:00
|
|
|
namespace internal {
|
2009-07-15 23:00:49 +08:00
|
|
|
template<typename _Scalar, int Rows=Dynamic, int Cols=Dynamic, int Supers=Dynamic, int Subs=Dynamic, int Options=0> class BandMatrix;
|
2010-12-26 06:17:10 +08:00
|
|
|
}
|
2008-05-27 13:47:30 +08:00
|
|
|
|
2010-10-25 22:15:22 +08:00
|
|
|
namespace internal {
|
|
|
|
|
template<typename Lhs, typename Rhs> struct product_type;
|
|
|
|
|
}
|
|
|
|
|
|
2009-08-05 21:23:35 +08:00
|
|
|
template<typename Lhs, typename Rhs,
|
2010-10-25 22:15:22 +08:00
|
|
|
int ProductType = internal::product_type<Lhs,Rhs>::value>
|
2009-08-05 21:23:35 +08:00
|
|
|
struct ProductReturnType;
|
2008-01-11 15:16:18 +08:00
|
|
|
|
2010-08-25 19:09:56 +08:00
|
|
|
// this is a workaround for sun CC
|
|
|
|
|
template<typename Lhs, typename Rhs> struct LazyProductReturnType;
|
|
|
|
|
|
2010-10-25 22:15:22 +08:00
|
|
|
namespace internal {
|
|
|
|
|
|
2010-07-07 01:10:24 +08:00
|
|
|
// Provides scalar/packet-wise product and product with accumulation
|
|
|
|
|
// with optional conjugation of the arguments.
|
2010-10-25 22:15:22 +08:00
|
|
|
template<typename LhsScalar, typename RhsScalar, bool ConjLhs=false, bool ConjRhs=false> struct conj_helper;
|
|
|
|
|
|
|
|
|
|
template<typename Scalar> struct scalar_sum_op;
|
|
|
|
|
template<typename Scalar> struct scalar_difference_op;
|
2011-01-27 16:59:19 +08:00
|
|
|
template<typename LhsScalar,typename RhsScalar> struct scalar_conj_product_op;
|
2010-10-25 22:15:22 +08:00
|
|
|
template<typename Scalar> struct scalar_opposite_op;
|
|
|
|
|
template<typename Scalar> struct scalar_conjugate_op;
|
|
|
|
|
template<typename Scalar> struct scalar_real_op;
|
|
|
|
|
template<typename Scalar> struct scalar_imag_op;
|
|
|
|
|
template<typename Scalar> struct scalar_abs_op;
|
|
|
|
|
template<typename Scalar> struct scalar_abs2_op;
|
|
|
|
|
template<typename Scalar> struct scalar_sqrt_op;
|
|
|
|
|
template<typename Scalar> struct scalar_exp_op;
|
|
|
|
|
template<typename Scalar> struct scalar_log_op;
|
|
|
|
|
template<typename Scalar> struct scalar_cos_op;
|
|
|
|
|
template<typename Scalar> struct scalar_sin_op;
|
2011-02-18 01:23:04 +08:00
|
|
|
template<typename Scalar> struct scalar_acos_op;
|
|
|
|
|
template<typename Scalar> struct scalar_asin_op;
|
|
|
|
|
template<typename Scalar> struct scalar_tan_op;
|
2010-10-25 22:15:22 +08:00
|
|
|
template<typename Scalar> struct scalar_pow_op;
|
|
|
|
|
template<typename Scalar> struct scalar_inverse_op;
|
|
|
|
|
template<typename Scalar> struct scalar_square_op;
|
|
|
|
|
template<typename Scalar> struct scalar_cube_op;
|
|
|
|
|
template<typename Scalar, typename NewType> struct scalar_cast_op;
|
|
|
|
|
template<typename Scalar> struct scalar_multiple_op;
|
|
|
|
|
template<typename Scalar> struct scalar_quotient1_op;
|
|
|
|
|
template<typename Scalar> struct scalar_min_op;
|
|
|
|
|
template<typename Scalar> struct scalar_max_op;
|
|
|
|
|
template<typename Scalar> struct scalar_random_op;
|
|
|
|
|
template<typename Scalar> struct scalar_add_op;
|
|
|
|
|
template<typename Scalar> struct scalar_constant_op;
|
|
|
|
|
template<typename Scalar> struct scalar_identity_op;
|
|
|
|
|
|
|
|
|
|
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_product_op;
|
|
|
|
|
template<typename LhsScalar,typename RhsScalar> struct scalar_multiple2_op;
|
2012-07-27 17:56:20 +08:00
|
|
|
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct scalar_quotient_op;
|
2010-10-25 22:15:22 +08:00
|
|
|
|
|
|
|
|
} // end namespace internal
|
2009-03-26 20:50:24 +08:00
|
|
|
|
2008-08-24 03:41:00 +08:00
|
|
|
struct IOFormat;
|
2008-08-21 21:17:21 +08:00
|
|
|
|
2008-09-04 01:16:28 +08:00
|
|
|
// Array module
|
2009-12-17 20:37:00 +08:00
|
|
|
template<typename _Scalar, int _Rows, int _Cols,
|
2010-03-19 14:12:23 +08:00
|
|
|
int _Options = AutoAlign |
|
2011-02-04 19:09:30 +08:00
|
|
|
#if defined(__GNUC__) && __GNUC__==3 && __GNUC_MINOR__==4
|
|
|
|
|
// workaround a bug in at least gcc 3.4.6
|
|
|
|
|
// the innermost ?: ternary operator is misparsed. We write it slightly
|
|
|
|
|
// differently and this makes gcc 3.4.6 happy, but it's ugly.
|
|
|
|
|
// The error would only show up with EIGEN_DEFAULT_TO_ROW_MAJOR is defined
|
|
|
|
|
// (when EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION is RowMajor)
|
|
|
|
|
( (_Rows==1 && _Cols!=1) ? RowMajor
|
|
|
|
|
: !(_Cols==1 && _Rows!=1) ? EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION
|
|
|
|
|
: ColMajor ),
|
|
|
|
|
#else
|
2010-03-19 14:12:23 +08:00
|
|
|
( (_Rows==1 && _Cols!=1) ? RowMajor
|
|
|
|
|
: (_Cols==1 && _Rows!=1) ? ColMajor
|
|
|
|
|
: EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION ),
|
2011-02-04 19:09:30 +08:00
|
|
|
#endif
|
2009-12-17 20:37:00 +08:00
|
|
|
int _MaxRows = _Rows, int _MaxCols = _Cols> class Array;
|
2008-09-04 01:16:28 +08:00
|
|
|
template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType> class Select;
|
|
|
|
|
template<typename MatrixType, typename BinaryOp, int Direction> class PartialReduxExpr;
|
2009-06-10 17:20:30 +08:00
|
|
|
template<typename ExpressionType, int Direction> class VectorwiseOp;
|
2009-03-05 18:25:22 +08:00
|
|
|
template<typename MatrixType,int RowFactor,int ColFactor> class Replicate;
|
|
|
|
|
template<typename MatrixType, int Direction = BothDirections> class Reverse;
|
2008-09-04 01:16:28 +08:00
|
|
|
|
2009-10-29 06:19:29 +08:00
|
|
|
template<typename MatrixType> class FullPivLU;
|
|
|
|
|
template<typename MatrixType> class PartialPivLU;
|
2010-10-25 22:15:22 +08:00
|
|
|
namespace internal {
|
|
|
|
|
template<typename MatrixType> struct inverse_impl;
|
|
|
|
|
}
|
2009-07-06 23:12:10 +08:00
|
|
|
template<typename MatrixType> class HouseholderQR;
|
2009-10-29 06:19:29 +08:00
|
|
|
template<typename MatrixType> class ColPivHouseholderQR;
|
|
|
|
|
template<typename MatrixType> class FullPivHouseholderQR;
|
2010-10-12 09:00:42 +08:00
|
|
|
template<typename MatrixType, int QRPreconditioner = ColPivHouseholderQRPreconditioner> class JacobiSVD;
|
2010-01-08 04:15:32 +08:00
|
|
|
template<typename MatrixType, int UpLo = Lower> class LLT;
|
2010-06-04 04:22:14 +08:00
|
|
|
template<typename MatrixType, int UpLo = Lower> class LDLT;
|
2010-01-15 08:16:49 +08:00
|
|
|
template<typename VectorsType, typename CoeffsType, int Side=OnTheLeft> class HouseholderSequence;
|
2010-10-20 09:56:26 +08:00
|
|
|
template<typename Scalar> class JacobiRotation;
|
2008-04-14 16:20:24 +08:00
|
|
|
|
2008-06-21 23:01:49 +08:00
|
|
|
// Geometry module:
|
2008-08-31 05:36:04 +08:00
|
|
|
template<typename Derived, int _Dim> class RotationBase;
|
2008-06-21 23:01:49 +08:00
|
|
|
template<typename Lhs, typename Rhs> class Cross;
|
2009-10-27 21:19:16 +08:00
|
|
|
template<typename Derived> class QuaternionBase;
|
2008-06-21 23:01:49 +08:00
|
|
|
template<typename Scalar> class Rotation2D;
|
|
|
|
|
template<typename Scalar> class AngleAxis;
|
2011-01-25 00:21:58 +08:00
|
|
|
template<typename Scalar,int Dim> class Translation;
|
|
|
|
|
|
|
|
|
|
#ifdef EIGEN2_SUPPORT
|
|
|
|
|
template<typename Derived, int _Dim> class eigen2_RotationBase;
|
|
|
|
|
template<typename Lhs, typename Rhs> class eigen2_Cross;
|
|
|
|
|
template<typename Scalar> class eigen2_Quaternion;
|
|
|
|
|
template<typename Scalar> class eigen2_Rotation2D;
|
|
|
|
|
template<typename Scalar> class eigen2_AngleAxis;
|
|
|
|
|
template<typename Scalar,int Dim> class eigen2_Transform;
|
|
|
|
|
template <typename _Scalar, int _AmbientDim> class eigen2_ParametrizedLine;
|
|
|
|
|
template <typename _Scalar, int _AmbientDim> class eigen2_Hyperplane;
|
|
|
|
|
template<typename Scalar,int Dim> class eigen2_Translation;
|
|
|
|
|
template<typename Scalar,int Dim> class eigen2_Scaling;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if EIGEN2_SUPPORT_STAGE < STAGE20_RESOLVE_API_CONFLICTS
|
2011-01-28 00:21:38 +08:00
|
|
|
template<typename Scalar> class Quaternion;
|
2011-01-25 00:21:58 +08:00
|
|
|
template<typename Scalar,int Dim> class Transform;
|
|
|
|
|
template <typename _Scalar, int _AmbientDim> class ParametrizedLine;
|
|
|
|
|
template <typename _Scalar, int _AmbientDim> class Hyperplane;
|
|
|
|
|
template<typename Scalar,int Dim> class Scaling;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if EIGEN2_SUPPORT_STAGE > STAGE20_RESOLVE_API_CONFLICTS
|
2011-01-28 00:21:38 +08:00
|
|
|
template<typename Scalar, int Options = AutoAlign> class Quaternion;
|
2011-01-27 23:07:33 +08:00
|
|
|
template<typename Scalar,int Dim,int Mode,int _Options=AutoAlign> class Transform;
|
2011-01-28 00:17:06 +08:00
|
|
|
template <typename _Scalar, int _AmbientDim, int Options=AutoAlign> class ParametrizedLine;
|
|
|
|
|
template <typename _Scalar, int _AmbientDim, int Options=AutoAlign> class Hyperplane;
|
2009-01-29 00:26:06 +08:00
|
|
|
template<typename Scalar> class UniformScaling;
|
2009-03-05 18:25:22 +08:00
|
|
|
template<typename MatrixType,int Direction> class Homogeneous;
|
2011-01-25 00:21:58 +08:00
|
|
|
#endif
|
2008-06-21 23:01:49 +08:00
|
|
|
|
2010-03-17 01:26:55 +08:00
|
|
|
// MatrixFunctions module
|
|
|
|
|
template<typename Derived> struct MatrixExponentialReturnValue;
|
2010-04-26 19:31:16 +08:00
|
|
|
template<typename Derived> class MatrixFunctionReturnValue;
|
2011-05-10 05:20:20 +08:00
|
|
|
template<typename Derived> class MatrixSquareRootReturnValue;
|
2011-06-07 21:44:43 +08:00
|
|
|
template<typename Derived> class MatrixLogarithmReturnValue;
|
2012-08-15 00:34:20 +08:00
|
|
|
template<typename Derived, typename ExponentType> class MatrixPowerReturnValue;
|
2010-10-25 22:15:22 +08:00
|
|
|
|
|
|
|
|
namespace internal {
|
2010-03-17 01:26:55 +08:00
|
|
|
template <typename Scalar>
|
2010-10-25 22:15:22 +08:00
|
|
|
struct stem_function
|
2010-03-17 01:26:55 +08:00
|
|
|
{
|
|
|
|
|
typedef std::complex<typename NumTraits<Scalar>::Real> ComplexScalar;
|
|
|
|
|
typedef ComplexScalar type(ComplexScalar, int);
|
|
|
|
|
};
|
2010-10-25 22:15:22 +08:00
|
|
|
}
|
2010-03-17 01:26:55 +08:00
|
|
|
|
|
|
|
|
|
2009-11-19 01:15:19 +08:00
|
|
|
#ifdef EIGEN2_SUPPORT
|
|
|
|
|
template<typename ExpressionType> class Cwise;
|
2010-04-23 08:49:01 +08:00
|
|
|
template<typename MatrixType> class Minor;
|
2011-01-25 23:02:36 +08:00
|
|
|
template<typename MatrixType> class LU;
|
2011-01-26 00:19:26 +08:00
|
|
|
template<typename MatrixType> class QR;
|
2011-01-26 23:33:03 +08:00
|
|
|
template<typename MatrixType> class SVD;
|
2011-01-26 10:22:04 +08:00
|
|
|
namespace internal {
|
|
|
|
|
template<typename MatrixType, unsigned int Mode> struct eigen2_part_return_type;
|
|
|
|
|
}
|
2009-11-19 01:15:19 +08:00
|
|
|
#endif
|
|
|
|
|
|
2012-04-15 18:06:28 +08:00
|
|
|
} // end namespace Eigen
|
|
|
|
|
|
2008-01-11 15:16:18 +08:00
|
|
|
#endif // EIGEN_FORWARDDECLARATIONS_H
|