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
|
|
|
//
|
2009-06-29 03:27:37 +08:00
|
|
|
// Copyright (C) 2007-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
|
2008-01-11 15:16:18 +08:00
|
|
|
//
|
2008-02-28 23:44:45 +08: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 19:02:52 +08:00
|
|
|
// License as published by the Free Software Foundation; either
|
2008-02-28 23:44:45 +08: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 19:02:52 +08:00
|
|
|
// published by the Free Software Foundation; either version 2 of
|
2008-02-28 23:44:45 +08:00
|
|
|
// the License, or (at your option) any later version.
|
2008-01-11 15:16:18 +08: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 23:44:45 +08:00
|
|
|
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License or the
|
|
|
|
|
// GNU General Public License for more details.
|
2008-01-11 15:16:18 +08:00
|
|
|
//
|
2008-03-03 19:02:52 +08:00
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
2008-02-28 23:44:45 +08: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 15:16:18 +08:00
|
|
|
|
|
|
|
|
#ifndef EIGEN_FORWARDDECLARATIONS_H
|
|
|
|
|
#define EIGEN_FORWARDDECLARATIONS_H
|
|
|
|
|
|
2008-03-13 01:17:36 +08:00
|
|
|
template<typename T> struct ei_traits;
|
2008-04-03 22:17:56 +08:00
|
|
|
template<typename T> struct NumTraits;
|
2008-03-11 01:23:11 +08:00
|
|
|
|
2009-06-29 03:27:37 +08:00
|
|
|
template<typename Derived> struct AnyMatrixBase;
|
|
|
|
|
template<typename Derived> struct MultiplierBase;
|
|
|
|
|
|
2009-01-04 23:26:32 +08:00
|
|
|
template<typename _Scalar, int _Rows, int _Cols,
|
2009-01-07 02:07:16 +08:00
|
|
|
int _Options = EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION | AutoAlign,
|
2008-08-24 01:11:44 +08:00
|
|
|
int _MaxRows = _Rows, int _MaxCols = _Cols> class Matrix;
|
2008-04-14 16:20:24 +08:00
|
|
|
|
2008-05-14 16:20:15 +08:00
|
|
|
template<typename ExpressionType, unsigned int Added, unsigned int Removed> class Flagged;
|
2008-05-28 13:14:16 +08:00
|
|
|
template<typename ExpressionType> class NestByValue;
|
2008-08-06 05:55:57 +08:00
|
|
|
template<typename ExpressionType> class SwapWrapper;
|
2008-01-11 15:16:18 +08:00
|
|
|
template<typename MatrixType> class Minor;
|
2008-08-10 05:57:50 +08:00
|
|
|
template<typename MatrixType, int BlockRows=Dynamic, int BlockCols=Dynamic, int PacketAccess=AsRequested,
|
2008-09-02 23:28:49 +08:00
|
|
|
int _DirectAccessStatus = ei_traits<MatrixType>::Flags&DirectAccessBit ? DirectAccessBit
|
|
|
|
|
: ei_traits<MatrixType>::Flags&SparseBit> class Block;
|
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;
|
2008-06-20 01:33:57 +08:00
|
|
|
template<typename Lhs, typename Rhs, int ProductMode> class Product;
|
2009-06-29 03:27:37 +08:00
|
|
|
|
|
|
|
|
template<typename Derived> class DiagonalBase;
|
|
|
|
|
template<typename _DiagonalVectorType> class DiagonalWrapper;
|
2009-01-29 00:26:06 +08:00
|
|
|
template<typename _Scalar, int _Size> class DiagonalMatrix;
|
2009-06-29 03:27:37 +08:00
|
|
|
template<typename MatrixType, typename DiagonalType, int Order> class DiagonalProduct;
|
2009-05-11 00:24:39 +08:00
|
|
|
template<typename MatrixType, int Index> class Diagonal;
|
2009-06-29 03:27:37 +08:00
|
|
|
|
2008-08-10 05:57:50 +08:00
|
|
|
template<typename MatrixType, int PacketAccess = AsRequested> class Map;
|
2008-05-27 13:47:30 +08:00
|
|
|
template<typename MatrixType, unsigned int Mode> class Part;
|
|
|
|
|
template<typename MatrixType, unsigned int Mode> class Extract;
|
2008-07-08 08:49:10 +08:00
|
|
|
template<typename ExpressionType> class Cwise;
|
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-03-04 21:00:00 +08:00
|
|
|
template<typename Functor, typename EvalType> class ReturnByValue;
|
2008-09-14 02:51:51 +08:00
|
|
|
|
2008-05-27 13:47:30 +08:00
|
|
|
|
2008-06-20 01:33:57 +08:00
|
|
|
template<typename Lhs, typename Rhs> struct ei_product_mode;
|
|
|
|
|
template<typename Lhs, typename Rhs, int ProductMode = ei_product_mode<Lhs,Rhs>::value> struct ProductReturnType;
|
2008-01-11 15:16:18 +08:00
|
|
|
|
2008-04-03 19:10:17 +08:00
|
|
|
template<typename Scalar> struct ei_scalar_sum_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_difference_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_product_op;
|
|
|
|
|
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-02 01:20:18 +08:00
|
|
|
template<typename Scalar> struct ei_scalar_real_op;
|
2008-11-14 17:55:25 +08:00
|
|
|
template<typename Scalar> struct ei_scalar_imag_op;
|
2008-04-03 19:10:17 +08: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-06-01 05:35:11 +08:00
|
|
|
template<typename Scalar> struct ei_scalar_inverse_op;
|
2008-07-08 08:49:10 +08:00
|
|
|
template<typename Scalar> struct ei_scalar_square_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_cube_op;
|
2008-04-03 19:10:17 +08:00
|
|
|
template<typename Scalar, typename NewType> struct ei_scalar_cast_op;
|
2008-08-01 05:03:11 +08:00
|
|
|
template<typename Scalar> struct ei_scalar_multiple_op;
|
2008-04-03 19:10:17 +08: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-06-01 02:11:48 +08:00
|
|
|
template<typename Scalar> struct ei_scalar_random_op;
|
2008-08-01 05:03:11 +08:00
|
|
|
template<typename Scalar> struct ei_scalar_add_op;
|
2008-08-28 08:33:58 +08:00
|
|
|
template<typename Scalar> struct ei_scalar_constant_op;
|
|
|
|
|
template<typename Scalar> struct ei_scalar_identity_op;
|
2008-03-04 20:34:58 +08:00
|
|
|
|
2009-03-26 20:50:24 +08:00
|
|
|
template<typename Scalar1,typename Scalar2> struct ei_scalar_multiple2_op;
|
|
|
|
|
|
2008-08-24 03:41:00 +08:00
|
|
|
struct IOFormat;
|
2008-08-21 21:17:21 +08:00
|
|
|
|
2008-06-01 07:21:49 +08:00
|
|
|
template<typename Scalar>
|
2008-06-14 21:02:41 +08:00
|
|
|
void ei_cache_friendly_product(
|
2008-06-01 07:21:49 +08:00
|
|
|
int _rows, int _cols, int depth,
|
|
|
|
|
bool _lhsRowMajor, const Scalar* _lhs, int _lhsStride,
|
|
|
|
|
bool _rhsRowMajor, const Scalar* _rhs, int _rhsStride,
|
|
|
|
|
bool resRowMajor, Scalar* res, int resStride);
|
|
|
|
|
|
2008-09-04 01:16:28 +08:00
|
|
|
// Array module
|
|
|
|
|
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
|
|
|
|
2008-08-04 12:45:59 +08:00
|
|
|
template<typename MatrixType> class LU;
|
2009-05-13 10:02:22 +08:00
|
|
|
template<typename MatrixType> class PartialLU;
|
2008-04-27 02:26:05 +08:00
|
|
|
template<typename MatrixType> class QR;
|
2008-08-20 01:52:04 +08:00
|
|
|
template<typename MatrixType> class SVD;
|
2008-10-13 23:53:27 +08:00
|
|
|
template<typename MatrixType> class LLT;
|
|
|
|
|
template<typename MatrixType> class LDLT;
|
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;
|
|
|
|
|
template<typename Scalar> class Quaternion;
|
|
|
|
|
template<typename Scalar> class Rotation2D;
|
|
|
|
|
template<typename Scalar> class AngleAxis;
|
2009-03-08 19:35:30 +08:00
|
|
|
template<typename Scalar,int Dim,int Mode=Affine> class Transform;
|
2008-08-31 12:25:30 +08:00
|
|
|
template <typename _Scalar, int _AmbientDim> class ParametrizedLine;
|
|
|
|
|
template <typename _Scalar, int _AmbientDim> class Hyperplane;
|
2008-08-30 08:08:23 +08:00
|
|
|
template<typename Scalar,int Dim> class Translation;
|
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;
|
2008-06-21 23:01:49 +08:00
|
|
|
|
2009-01-15 01:41:55 +08:00
|
|
|
// Sparse module:
|
|
|
|
|
template<typename Lhs, typename Rhs, int ProductMode> class SparseProduct;
|
|
|
|
|
|
2008-01-11 15:16:18 +08:00
|
|
|
#endif // EIGEN_FORWARDDECLARATIONS_H
|