2008-01-11 07:16:18 +00:00
|
|
|
// This file is part of Eigen, a lightweight C++ template library
|
2009-05-22 20:25:33 +02:00
|
|
|
// for linear algebra.
|
2008-01-11 07:16:18 +00:00
|
|
|
//
|
2010-02-18 20:42:38 -05:00
|
|
|
// Copyright (C) 2007-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
|
2010-06-24 23:21:58 +02:00
|
|
|
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
|
2008-01-11 07:16:18 +00:00
|
|
|
//
|
2008-02-28 15:44:45 +00:00
|
|
|
// Eigen is free software; you can redistribute it and/or
|
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
2008-03-03 11:02:52 +00:00
|
|
|
// License as published by the Free Software Foundation; either
|
2008-02-28 15:44:45 +00:00
|
|
|
// 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
|
2008-03-03 11:02:52 +00:00
|
|
|
// published by the Free Software Foundation; either version 2 of
|
2008-02-28 15:44:45 +00:00
|
|
|
// the License, or (at your option) any later version.
|
2008-01-11 07:16:18 +00:00
|
|
|
//
|
|
|
|
|
// Eigen is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
2008-02-28 15:44:45 +00:00
|
|
|
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License or the
|
|
|
|
|
// GNU General Public License for more details.
|
2008-01-11 07:16:18 +00:00
|
|
|
//
|
2008-03-03 11:02:52 +00:00
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
2008-02-28 15:44:45 +00:00
|
|
|
// License and a copy of the GNU General Public License along with
|
|
|
|
|
// Eigen. If not, see <http://www.gnu.org/licenses/>.
|
2008-01-11 07:16:18 +00:00
|
|
|
|
|
|
|
|
#ifndef EIGEN_FORWARDDECLARATIONS_H
|
|
|
|
|
#define EIGEN_FORWARDDECLARATIONS_H
|
|
|
|
|
|
2008-03-12 17:17:36 +00:00
|
|
|
template<typename T> struct ei_traits;
|
2008-04-03 14:17:56 +00:00
|
|
|
template<typename T> struct NumTraits;
|
2008-03-10 17:23:11 +00:00
|
|
|
|
2010-05-08 13:45:31 -04:00
|
|
|
template<typename Derived> struct ei_has_direct_access
|
|
|
|
|
{
|
|
|
|
|
enum { ret = (ei_traits<Derived>::Flags & DirectAccessBit) ? 1 : 0 };
|
|
|
|
|
};
|
|
|
|
|
|
2010-02-20 15:26:02 +01:00
|
|
|
template<typename Derived> struct EigenBase;
|
2010-05-19 16:44:28 +02:00
|
|
|
template<typename Derived> class DenseBase;
|
2010-07-21 10:57:01 +02:00
|
|
|
template<typename Derived,
|
|
|
|
|
AccessorLevels Level = (ei_traits<Derived>::Flags & DirectAccessBit) ? DirectAccessors
|
|
|
|
|
: (ei_traits<Derived>::Flags & LvalueBit) ? WriteAccessors
|
|
|
|
|
: ReadOnlyAccessors>
|
2010-05-08 13:45:31 -04:00
|
|
|
class DenseCoeffsBase;
|
2009-06-28 21:27:37 +02:00
|
|
|
|
2009-01-04 15:26:32 +00:00
|
|
|
template<typename _Scalar, int _Rows, int _Cols,
|
2010-03-09 00:16:07 -05:00
|
|
|
int _Options = AutoAlign |
|
|
|
|
|
( (_Rows==1 && _Cols!=1) ? RowMajor
|
|
|
|
|
: (_Cols==1 && _Rows!=1) ? ColMajor
|
|
|
|
|
: EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION ),
|
|
|
|
|
int _MaxRows = _Rows,
|
|
|
|
|
int _MaxCols = _Cols
|
|
|
|
|
> class Matrix;
|
2008-04-14 08:20:24 +00:00
|
|
|
|
2010-04-16 10:13:32 -04:00
|
|
|
template<typename Derived> class MatrixBase;
|
|
|
|
|
template<typename Derived> class ArrayBase;
|
|
|
|
|
|
2008-05-14 08:20:15 +00:00
|
|
|
template<typename ExpressionType, unsigned int Added, unsigned int Removed> class Flagged;
|
2009-11-17 16:04:19 +01:00
|
|
|
template<typename ExpressionType, template <typename> class StorageBase > class NoAlias;
|
2008-05-28 05:14:16 +00:00
|
|
|
template<typename ExpressionType> class NestByValue;
|
2009-11-20 16:30:14 +01:00
|
|
|
template<typename ExpressionType> class ForceAlignedAccess;
|
2008-08-05 21:55:57 +00:00
|
|
|
template<typename ExpressionType> class SwapWrapper;
|
2010-03-11 12:41:46 -05:00
|
|
|
|
2010-08-11 00:04:06 -04:00
|
|
|
template<typename XprType, int BlockRows=Dynamic, int BlockCols=Dynamic,
|
2010-04-23 11:36:22 -04:00
|
|
|
bool HasDirectAccess = ei_has_direct_access<XprType>::ret> class Block;
|
2010-03-11 12:41:46 -05:00
|
|
|
|
2009-11-20 16:30:14 +01:00
|
|
|
template<typename MatrixType, int Size=Dynamic> class VectorBlock;
|
2008-01-11 07:16:18 +00:00
|
|
|
template<typename MatrixType> class Transpose;
|
|
|
|
|
template<typename MatrixType> class Conjugate;
|
2008-04-24 18:35:39 +00:00
|
|
|
template<typename NullaryOp, typename MatrixType> class CwiseNullaryOp;
|
|
|
|
|
template<typename UnaryOp, typename MatrixType> class CwiseUnaryOp;
|
2009-05-20 15:41:23 +02:00
|
|
|
template<typename ViewOp, typename MatrixType> class CwiseUnaryView;
|
2008-04-24 18:35:39 +00:00
|
|
|
template<typename BinaryOp, typename Lhs, typename Rhs> class CwiseBinaryOp;
|
2010-07-19 23:31:08 +02:00
|
|
|
template<typename BinOp, typename Lhs, typename Rhs> class SelfCwiseBinaryOp;
|
2009-08-05 15:23:35 +02:00
|
|
|
template<typename Derived, typename Lhs, typename Rhs> class ProductBase;
|
2010-02-09 11:05:39 +01:00
|
|
|
template<typename Lhs, typename Rhs, int Mode> class GeneralProduct;
|
|
|
|
|
template<typename Lhs, typename Rhs, int NestingFlags> class CoeffBasedProduct;
|
2009-06-28 21:27:37 +02:00
|
|
|
|
|
|
|
|
template<typename Derived> class DiagonalBase;
|
|
|
|
|
template<typename _DiagonalVectorType> class DiagonalWrapper;
|
2009-11-15 21:12:15 -05:00
|
|
|
template<typename _Scalar, int SizeAtCompileTime, int MaxSizeAtCompileTime=SizeAtCompileTime> class DiagonalMatrix;
|
2009-06-29 04:01:31 +02:00
|
|
|
template<typename MatrixType, typename DiagonalType, int ProductOrder> class DiagonalProduct;
|
2009-05-10 16:24:39 +00:00
|
|
|
template<typename MatrixType, int Index> class Diagonal;
|
2010-06-08 22:23:11 +02:00
|
|
|
template<int SizeAtCompileTime, int MaxSizeAtCompileTime = SizeAtCompileTime> class PermutationMatrix;
|
|
|
|
|
template<int SizeAtCompileTime, int MaxSizeAtCompileTime = SizeAtCompileTime> class Transpositions;
|
2009-06-28 21:27:37 +02:00
|
|
|
|
2010-02-26 20:12:51 -05:00
|
|
|
template<int InnerStrideAtCompileTime, int OuterStrideAtCompileTime> class Stride;
|
2010-04-26 16:59:04 +02:00
|
|
|
template<typename MatrixType, int MapOptions=Unaligned, typename StrideType = Stride<0,0> > class Map;
|
2010-02-18 20:42:38 -05:00
|
|
|
|
2009-07-06 23:43:20 +02: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 02:16:46 +03:00
|
|
|
template<typename MatrixType> class SparseView;
|
2008-08-21 13:17:21 +00:00
|
|
|
template<typename ExpressionType> class WithFormat;
|
2008-09-13 18:51:51 +00:00
|
|
|
template<typename MatrixType> struct CommaInitializer;
|
2009-09-22 12:20:45 -04:00
|
|
|
template<typename Derived> class ReturnByValue;
|
2009-12-04 23:17:14 +01:00
|
|
|
template<typename ExpressionType> class ArrayWrapper;
|
2008-09-13 18:51:51 +00:00
|
|
|
|
2009-11-09 07:51:31 -05:00
|
|
|
template<typename DecompositionType, typename Rhs> struct ei_solve_retval_base;
|
|
|
|
|
template<typename DecompositionType, typename Rhs> struct ei_solve_retval;
|
|
|
|
|
template<typename DecompositionType> struct ei_kernel_retval_base;
|
|
|
|
|
template<typename DecompositionType> struct ei_kernel_retval;
|
|
|
|
|
template<typename DecompositionType> struct ei_image_retval_base;
|
|
|
|
|
template<typename DecompositionType> struct ei_image_retval;
|
2009-11-03 02:18:10 -05:00
|
|
|
|
2009-07-15 17:00:49 +02:00
|
|
|
template<typename _Scalar, int Rows=Dynamic, int Cols=Dynamic, int Supers=Dynamic, int Subs=Dynamic, int Options=0> class BandMatrix;
|
2008-05-27 05:47:30 +00:00
|
|
|
|
2009-08-05 15:23:35 +02:00
|
|
|
template<typename Lhs, typename Rhs> struct ei_product_type;
|
|
|
|
|
template<typename Lhs, typename Rhs,
|
|
|
|
|
int ProductType = ei_product_type<Lhs,Rhs>::value>
|
|
|
|
|
struct ProductReturnType;
|
2008-01-11 07:16:18 +00:00
|
|
|
|
2010-07-06 19:10:24 +02:00
|
|
|
// Provides scalar/packet-wise product and product with accumulation
|
|
|
|
|
// with optional conjugation of the arguments.
|
2010-07-19 16:49:09 +02:00
|
|
|
template<typename LhsScalar, typename RhsScalar, bool ConjLhs=false, bool ConjRhs=false> struct ei_conj_helper;
|
2010-07-06 19:10:24 +02:00
|
|
|
|
2008-04-03 11:10:17 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_sum_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_difference_op;
|
2010-07-07 10:00:08 +02:00
|
|
|
template<typename Scalar> struct ei_scalar_conj_product_op;
|
2008-04-03 11:10:17 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_quotient_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_opposite_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_conjugate_op;
|
2008-06-01 17:20:18 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_real_op;
|
2008-11-14 09:55:25 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_imag_op;
|
2008-04-03 11:10:17 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_abs_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_abs2_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_sqrt_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_exp_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_log_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_cos_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_sin_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_pow_op;
|
2008-05-31 21:35:11 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_inverse_op;
|
2008-07-08 00:49:10 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_square_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_cube_op;
|
2008-04-03 11:10:17 +00:00
|
|
|
template<typename Scalar, typename NewType> struct ei_scalar_cast_op;
|
2008-07-31 21:03:11 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_multiple_op;
|
2008-04-03 11:10:17 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_quotient1_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_min_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_max_op;
|
2008-05-31 18:11:48 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_random_op;
|
2008-07-31 21:03:11 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_add_op;
|
2008-08-28 00:33:58 +00:00
|
|
|
template<typename Scalar> struct ei_scalar_constant_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_identity_op;
|
2008-03-04 12:34:58 +00:00
|
|
|
|
2010-07-19 16:49:09 +02:00
|
|
|
template<typename LhsScalar,typename RhsScalar=LhsScalar> struct ei_scalar_product_op;
|
|
|
|
|
template<typename LhsScalar,typename RhsScalar> struct ei_scalar_multiple2_op;
|
2009-03-26 12:50:24 +00:00
|
|
|
|
2008-08-23 19:41:00 +00:00
|
|
|
struct IOFormat;
|
2008-08-21 13:17:21 +00:00
|
|
|
|
2008-09-03 17:16:28 +00:00
|
|
|
// Array module
|
2009-12-17 13:37:00 +01:00
|
|
|
template<typename _Scalar, int _Rows, int _Cols,
|
2010-03-19 02:12:23 -04:00
|
|
|
int _Options = AutoAlign |
|
|
|
|
|
( (_Rows==1 && _Cols!=1) ? RowMajor
|
|
|
|
|
: (_Cols==1 && _Rows!=1) ? ColMajor
|
|
|
|
|
: EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION ),
|
2009-12-17 13:37:00 +01:00
|
|
|
int _MaxRows = _Rows, int _MaxCols = _Cols> class Array;
|
2008-09-03 17:16:28 +00:00
|
|
|
template<typename ConditionMatrixType, typename ThenMatrixType, typename ElseMatrixType> class Select;
|
|
|
|
|
template<typename MatrixType, typename BinaryOp, int Direction> class PartialReduxExpr;
|
2009-06-10 11:20:30 +02:00
|
|
|
template<typename ExpressionType, int Direction> class VectorwiseOp;
|
2009-03-05 10:25:22 +00:00
|
|
|
template<typename MatrixType,int RowFactor,int ColFactor> class Replicate;
|
|
|
|
|
template<typename MatrixType, int Direction = BothDirections> class Reverse;
|
2008-09-03 17:16:28 +00:00
|
|
|
|
2009-10-28 18:19:29 -04:00
|
|
|
template<typename MatrixType> class FullPivLU;
|
|
|
|
|
template<typename MatrixType> class PartialPivLU;
|
2009-10-26 14:16:50 -04:00
|
|
|
template<typename MatrixType> struct ei_inverse_impl;
|
2009-07-06 17:12:10 +02:00
|
|
|
template<typename MatrixType> class HouseholderQR;
|
2009-10-28 18:19:29 -04:00
|
|
|
template<typename MatrixType> class ColPivHouseholderQR;
|
|
|
|
|
template<typename MatrixType> class FullPivHouseholderQR;
|
2008-08-19 17:52:04 +00:00
|
|
|
template<typename MatrixType> class SVD;
|
2009-08-31 22:26:15 -04:00
|
|
|
template<typename MatrixType, unsigned int Options = 0> class JacobiSVD;
|
2010-01-07 21:15:32 +01:00
|
|
|
template<typename MatrixType, int UpLo = Lower> class LLT;
|
2010-06-03 22:22:14 +02:00
|
|
|
template<typename MatrixType, int UpLo = Lower> class LDLT;
|
2010-01-14 19:16:49 -05:00
|
|
|
template<typename VectorsType, typename CoeffsType, int Side=OnTheLeft> class HouseholderSequence;
|
2009-09-02 15:04:10 +02:00
|
|
|
template<typename Scalar> class PlanarRotation;
|
2008-04-14 08:20:24 +00:00
|
|
|
|
2008-06-21 15:01:49 +00:00
|
|
|
// Geometry module:
|
2008-08-30 21:36:04 +00:00
|
|
|
template<typename Derived, int _Dim> class RotationBase;
|
2008-06-21 15:01:49 +00:00
|
|
|
template<typename Lhs, typename Rhs> class Cross;
|
2009-10-27 13:19:16 +00:00
|
|
|
template<typename Derived> class QuaternionBase;
|
2008-06-21 15:01:49 +00:00
|
|
|
template<typename Scalar> class Quaternion;
|
|
|
|
|
template<typename Scalar> class Rotation2D;
|
|
|
|
|
template<typename Scalar> class AngleAxis;
|
2010-07-29 15:54:32 +02:00
|
|
|
template<typename Scalar,int Dim,int Mode=Projective> class Transform;
|
2008-08-31 04:25:30 +00:00
|
|
|
template <typename _Scalar, int _AmbientDim> class ParametrizedLine;
|
|
|
|
|
template <typename _Scalar, int _AmbientDim> class Hyperplane;
|
2008-08-30 00:08:23 +00:00
|
|
|
template<typename Scalar,int Dim> class Translation;
|
2009-01-28 16:26:06 +00:00
|
|
|
template<typename Scalar> class UniformScaling;
|
2009-03-05 10:25:22 +00:00
|
|
|
template<typename MatrixType,int Direction> class Homogeneous;
|
2008-06-21 15:01:49 +00:00
|
|
|
|
2010-03-16 17:26:55 +00:00
|
|
|
// MatrixFunctions module
|
|
|
|
|
template<typename Derived> struct MatrixExponentialReturnValue;
|
2010-04-26 13:31:16 +02:00
|
|
|
template<typename Derived> class MatrixFunctionReturnValue;
|
2010-03-16 17:26:55 +00:00
|
|
|
template <typename Scalar>
|
|
|
|
|
struct ei_stem_function
|
|
|
|
|
{
|
|
|
|
|
typedef std::complex<typename NumTraits<Scalar>::Real> ComplexScalar;
|
|
|
|
|
typedef ComplexScalar type(ComplexScalar, int);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2009-11-18 18:15:19 +01:00
|
|
|
#ifdef EIGEN2_SUPPORT
|
|
|
|
|
template<typename ExpressionType> class Cwise;
|
2010-04-22 20:49:01 -04:00
|
|
|
template<typename MatrixType> class Minor;
|
2009-11-18 18:15:19 +01:00
|
|
|
#endif
|
|
|
|
|
|
2008-01-11 07:16:18 +00:00
|
|
|
#endif // EIGEN_FORWARDDECLARATIONS_H
|