11 #ifndef EIGEN_FORWARDDECLARATIONS_H
12 #define EIGEN_FORWARDDECLARATIONS_H
17 template<
typename T>
struct traits;
23 template<
typename T>
struct traits<const T> : traits<T> {};
25 template<
typename Derived>
struct has_direct_access
30 template<
typename Derived>
struct accessors_level
32 enum { has_direct_access = (traits<Derived>::Flags &
DirectAccessBit) ? 1 : 0,
33 has_write_access = (traits<Derived>::Flags &
LvalueBit) ? 1 : 0,
39 template<
typename T>
struct evaluator_traits;
41 template<
typename T>
struct evaluator;
45 template<
typename T>
struct NumTraits;
47 template<
typename Derived>
struct EigenBase;
48 template<
typename Derived>
class DenseBase;
49 template<
typename Derived>
class PlainObjectBase;
50 template<
typename Derived,
int Level>
class DenseCoeffsBase;
52 template<
typename _Scalar,
int _Rows,
int _Cols,
54 #if EIGEN_GNUC_AT(3,4)
61 : !(_Cols==1 && _Rows!=1) ? EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION
66 : EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION ),
72 template<
typename Derived>
class MatrixBase;
73 template<
typename Derived>
class ArrayBase;
75 template<
typename ExpressionType,
unsigned int Added,
unsigned int Removed>
class Flagged;
76 template<
typename ExpressionType,
template <
typename>
class StorageBase >
class NoAlias;
77 template<
typename ExpressionType>
class NestByValue;
78 template<
typename ExpressionType>
class ForceAlignedAccess;
79 template<
typename ExpressionType>
class SwapWrapper;
81 template<
typename XprType,
int BlockRows=Dynamic,
int BlockCols=Dynamic,
bool InnerPanel = false>
class Block;
83 template<
typename MatrixType,
int Size=Dynamic>
class VectorBlock;
84 template<
typename MatrixType>
class Transpose;
85 template<
typename MatrixType>
class Conjugate;
86 template<
typename NullaryOp,
typename MatrixType>
class CwiseNullaryOp;
87 template<
typename UnaryOp,
typename MatrixType>
class CwiseUnaryOp;
88 template<
typename ViewOp,
typename MatrixType>
class CwiseUnaryView;
89 template<
typename BinaryOp,
typename Lhs,
typename Rhs>
class CwiseBinaryOp;
90 template<
typename TernaryOp,
typename Arg1,
typename Arg2,
typename Arg3>
class CwiseTernaryOp;
91 template<
typename Decomposition,
typename Rhstype>
class Solve;
92 template<
typename XprType>
class Inverse;
94 template<
typename Lhs,
typename Rhs,
int Option = DefaultProduct>
class Product;
96 template<
typename Derived>
class DiagonalBase;
98 template<
typename _Scalar,
int SizeAtCompileTime,
int MaxSizeAtCompileTime=SizeAtCompileTime>
class DiagonalMatrix;
99 template<
typename MatrixType,
typename DiagonalType,
int ProductOrder>
class DiagonalProduct;
100 template<
typename MatrixType,
int Index = 0>
class Diagonal;
101 template<
int SizeAtCompileTime,
int MaxSizeAtCompileTime = SizeAtCompileTime,
typename IndexType=
int>
class PermutationMatrix;
102 template<
int SizeAtCompileTime,
int MaxSizeAtCompileTime = SizeAtCompileTime,
typename IndexType=
int>
class Transpositions;
104 template<
typename Derived>
class TranspositionsBase;
106 template<
typename _IndicesType>
class TranspositionsWrapper;
108 template<
typename Derived,
111 template<
int InnerStr
ideAtCompileTime,
int OuterStr
ideAtCompileTime>
class Stride;
114 template<
typename MatrixType,
int MapOptions=Unaligned,
typename Str
ideType = Str
ide<0,0> >
class Map;
115 template<
typename Derived>
class RefBase;
116 template<
typename PlainObjectType,
int Options = 0,
117 typename StrideType =
typename internal::conditional<PlainObjectType::IsVectorAtCompileTime,InnerStride<1>,
OuterStride<> >::type >
class Ref;
120 template<
typename MatrixType,
unsigned int Mode>
class TriangularView;
121 template<
typename MatrixType,
unsigned int Mode>
class SelfAdjointView;
123 template<
typename ExpressionType>
class WithFormat;
125 template<
typename Derived>
class ReturnByValue;
129 template<
typename XprType>
class InnerIterator;
132 template<
typename DecompositionType>
struct kernel_retval_base;
133 template<
typename DecompositionType>
struct kernel_retval;
134 template<
typename DecompositionType>
struct image_retval_base;
135 template<
typename DecompositionType>
struct image_retval;
139 template<
typename _Scalar,
int Rows=Dynamic,
int Cols=Dynamic,
int Supers=Dynamic,
int Subs=Dynamic,
int Options=0>
class BandMatrix;
143 template<
typename Lhs,
typename Rhs>
struct product_type;
145 template<
bool>
struct EnableIf;
152 template<
typename T,
153 int ProductTag = internal::product_type<typename T::Lhs,typename T::Rhs>::ret,
154 typename LhsShape =
typename evaluator_traits<typename T::Lhs>::Shape,
155 typename RhsShape =
typename evaluator_traits<typename T::Rhs>::Shape,
156 typename LhsScalar =
typename traits<typename T::Lhs>::Scalar,
157 typename RhsScalar =
typename traits<typename T::Rhs>::Scalar
158 >
struct product_evaluator;
161 template<
typename Lhs,
typename Rhs,
162 int ProductType = internal::product_type<Lhs,Rhs>::value>
163 struct ProductReturnType;
166 template<
typename Lhs,
typename Rhs>
struct LazyProductReturnType;
172 template<
typename LhsScalar,
typename RhsScalar,
bool ConjLhs=false,
bool ConjRhs=false>
struct conj_helper;
174 template<
typename LhsScalar,
typename RhsScalar=LhsScalar>
struct scalar_sum_op;
175 template<
typename LhsScalar,
typename RhsScalar=LhsScalar>
struct scalar_difference_op;
176 template<
typename LhsScalar,
typename RhsScalar=LhsScalar>
struct scalar_conj_product_op;
177 template<
typename LhsScalar,
typename RhsScalar=LhsScalar>
struct scalar_min_op;
178 template<
typename LhsScalar,
typename RhsScalar=LhsScalar>
struct scalar_max_op;
179 template<
typename Scalar>
struct scalar_opposite_op;
180 template<
typename Scalar>
struct scalar_conjugate_op;
181 template<
typename Scalar>
struct scalar_real_op;
182 template<
typename Scalar>
struct scalar_imag_op;
183 template<
typename Scalar>
struct scalar_abs_op;
184 template<
typename Scalar>
struct scalar_abs2_op;
185 template<
typename Scalar>
struct scalar_sqrt_op;
186 template<
typename Scalar>
struct scalar_rsqrt_op;
187 template<
typename Scalar>
struct scalar_exp_op;
188 template<
typename Scalar>
struct scalar_log_op;
189 template<
typename Scalar>
struct scalar_cos_op;
190 template<
typename Scalar>
struct scalar_sin_op;
191 template<
typename Scalar>
struct scalar_acos_op;
192 template<
typename Scalar>
struct scalar_asin_op;
193 template<
typename Scalar>
struct scalar_tan_op;
194 template<
typename Scalar>
struct scalar_inverse_op;
195 template<
typename Scalar>
struct scalar_square_op;
196 template<
typename Scalar>
struct scalar_cube_op;
197 template<
typename Scalar,
typename NewType>
struct scalar_cast_op;
198 template<
typename Scalar>
struct scalar_random_op;
199 template<
typename Scalar>
struct scalar_constant_op;
200 template<
typename Scalar>
struct scalar_identity_op;
201 template<
typename Scalar,
bool iscpx>
struct scalar_sign_op;
202 template<
typename Scalar,
typename ScalarExponent>
struct scalar_pow_op;
203 template<
typename LhsScalar,
typename RhsScalar=LhsScalar>
struct scalar_hypot_op;
204 template<
typename LhsScalar,
typename RhsScalar=LhsScalar>
struct scalar_product_op;
205 template<
typename LhsScalar,
typename RhsScalar=LhsScalar>
struct scalar_quotient_op;
208 template<
typename Scalar>
struct scalar_lgamma_op;
209 template<
typename Scalar>
struct scalar_digamma_op;
210 template<
typename Scalar>
struct scalar_erf_op;
211 template<
typename Scalar>
struct scalar_erfc_op;
212 template<
typename Scalar>
struct scalar_igamma_op;
213 template<
typename Scalar>
struct scalar_igammac_op;
214 template<
typename Scalar>
struct scalar_zeta_op;
215 template<
typename Scalar>
struct scalar_betainc_op;
222 template<
typename _Scalar,
int _Rows,
int _Cols,
224 #if EIGEN_GNUC_AT(3,4)
231 : !(_Cols==1 && _Rows!=1) ? EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION
236 : EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION ),
238 int _MaxRows = _Rows,
int _MaxCols = _Cols>
class Array;
239 template<
typename ConditionMatrixType,
typename ThenMatrixType,
typename ElseMatrixType>
class Select;
242 template<
typename MatrixType,
int RowFactor,
int ColFactor>
class Replicate;
243 template<
typename MatrixType,
int Direction = BothDirections>
class Reverse;
248 template<
typename MatrixType>
struct inverse_impl;
254 template<
typename MatrixType,
int QRPreconditioner = ColPivHouseholderQRPreconditioner>
class JacobiSVD;
255 template<
typename MatrixType>
class BDCSVD;
256 template<
typename MatrixType,
int UpLo = Lower>
class LLT;
257 template<
typename MatrixType,
int UpLo = Lower>
class LDLT;
263 template<
typename Lhs,
typename Rhs>
class Cross;
269 template<
typename Scalar,
int Options = AutoAlign>
class Quaternion;
270 template<
typename Scalar,
int Dim,
int Mode,
int _Options=AutoAlign>
class Transform;
271 template <
typename _Scalar,
int _AmbientDim,
int Options=AutoAlign>
class ParametrizedLine;
272 template <
typename _Scalar,
int _AmbientDim,
int Options=AutoAlign>
class Hyperplane;
273 template<
typename Scalar>
class UniformScaling;
280 template<
typename Derived>
struct MatrixExponentialReturnValue;
281 template<
typename Derived>
class MatrixFunctionReturnValue;
282 template<
typename Derived>
class MatrixSquareRootReturnValue;
283 template<
typename Derived>
class MatrixLogarithmReturnValue;
284 template<
typename Derived>
class MatrixPowerReturnValue;
285 template<
typename Derived>
class MatrixComplexPowerReturnValue;
288 template <
typename Scalar>
291 typedef std::complex<typename NumTraits<Scalar>::Real> ComplexScalar;
292 typedef ComplexScalar type(ComplexScalar,
int);
298 #endif // EIGEN_FORWARDDECLARATIONS_H
Expression of the inverse of another expression.
Definition: Inverse.h:44
Namespace containing all symbols from the Eigen library.
Definition: Core:309
Represents a diagonal matrix with its storage.
Definition: DiagonalMatrix.h:118
LU decomposition of a matrix with partial pivoting, and related features.
Definition: ForwardDeclarations.h:246
Holds strides information for Map.
Definition: Stride.h:45
Generic expression where a coefficient-wise binary operator is applied to two expressions.
Definition: CwiseBinaryOp.h:84
Convenience specialization of Stride to specify only an inner stride See class Map for some examples.
Definition: Stride.h:91
Represents a 3D rotation as a rotation angle around an arbitrary 3D axis.
Definition: ForwardDeclarations.h:266
Pseudo expression providing partial reduction operations.
Definition: ForwardDeclarations.h:241
Represents a sequence of transpositions (row/column interchange)
Definition: Transpositions.h:159
Expression of a selfadjoint matrix from a triangular part of a dense matrix.
Definition: SelfAdjointView.h:51
Expression of a mathematical vector or matrix as an array object.
Definition: ArrayWrapper.h:43
@ RowMajor
Definition: Constants.h:322
Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.
Definition: CwiseUnaryView.h:59
Rotation given by a cosine-sine pair.
Definition: ForwardDeclarations.h:259
LU decomposition of a matrix with complete pivoting, and related features.
Definition: ForwardDeclarations.h:245
An axis aligned box.
Definition: ForwardDeclarations.h:268
Expression of the transpose of a matrix.
Definition: Transpose.h:54
const unsigned int DirectAccessBit
Definition: Constants.h:150
Generic expression of a matrix where all coefficients are defined by a functor.
Definition: CwiseNullaryOp.h:61
Expression of one (or a set of) homogeneous vector(s)
Definition: ForwardDeclarations.h:274
Householder rank-revealing QR decomposition of a matrix with full pivoting.
Definition: ForwardDeclarations.h:252
@ DirectAccessors
Definition: Constants.h:370
Class to view a vector of integers as a permutation matrix.
Definition: PermutationMatrix.h:515
const unsigned int LvalueBit
Definition: Constants.h:139
Base class for triangular part in a matrix.
Definition: TriangularMatrix.h:28
class Bidiagonal Divide and Conquer SVD
Definition: ForwardDeclarations.h:255
Common base class for compact rotation representations.
Definition: ForwardDeclarations.h:262
Expression of a diagonal/subdiagonal/superdiagonal in a matrix.
Definition: Diagonal.h:65
Expression of the reverse of a vector or matrix.
Definition: Reverse.h:65
Expression of the multiple replication of a matrix or vector.
Definition: Replicate.h:63
A hyperplane.
Definition: ForwardDeclarations.h:272
Convenience specialization of Stride to specify only an outer stride See class Map for some examples.
Definition: Stride.h:102
Complete orthogonal decomposition (COD) of a matrix.
Definition: ForwardDeclarations.h:253
Expression of the product of two arbitrary matrices or vectors.
Definition: Product.h:75
Robust Cholesky decomposition of a matrix with pivoting.
Definition: LDLT.h:51
@ AutoAlign
Definition: Constants.h:324
Householder rank-revealing QR decomposition of a matrix with column-pivoting.
Definition: ForwardDeclarations.h:251
A matrix or vector expression mapping an existing array of data.
Definition: Map.h:96
Expression of a diagonal matrix.
Definition: DiagonalMatrix.h:247
A parametrized line.
Definition: ForwardDeclarations.h:271
@ ReadOnlyAccessors
Definition: Constants.h:366
Represents a rotation/orientation in a 2 dimensional space.
Definition: ForwardDeclarations.h:265
Two-sided Jacobi SVD decomposition of a rectangular matrix.
Definition: ForwardDeclarations.h:254
Generic expression where a coefficient-wise ternary operator is applied to two expressions.
Definition: CwiseTernaryOp.h:88
The quaternion class used to represent 3D orientations and rotations.
Definition: ForwardDeclarations.h:269
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
Definition: LLT.h:57
Pseudo expression representing a solving operation.
Definition: Solve.h:63
A matrix or vector expression mapping an existing expression.
Definition: Ref.h:195
Base class for permutations.
Definition: PermutationMatrix.h:47
Generic expression where a coefficient-wise unary operator is applied to an expression.
Definition: CwiseUnaryOp.h:56
Permutation matrix.
Definition: PermutationMatrix.h:309
Helper class used by the comma initializer operator.
Definition: CommaInitializer.h:29
Expression of a fixed-size or dynamic-size sub-vector.
Definition: ForwardDeclarations.h:83
Expression of a dense or sparse matrix with zero or too small values removed.
Definition: ForwardDeclarations.h:122
Base class of any sparse matrices or sparse expressions.
Definition: ForwardDeclarations.h:277
@ DirectWriteAccessors
Definition: Constants.h:372
Represents a translation transformation.
Definition: ForwardDeclarations.h:267
@ ColMajor
Definition: Constants.h:320
Expression of an array as a mathematical vector or matrix.
Definition: ArrayBase.h:15
Generic expression of a partially reduxed matrix.
Definition: ForwardDeclarations.h:240
Expression of a triangular part in a matrix.
Definition: TriangularMatrix.h:188
@ WriteAccessors
Definition: Constants.h:368
Base class for quaternion expressions.
Definition: ForwardDeclarations.h:264
A base class for matrix decomposition and solvers.
Definition: SolverBase.h:42
Householder QR decomposition of a matrix.
Definition: ForwardDeclarations.h:250
Sequence of Householder reflections acting on subspaces with decreasing size.
Definition: ForwardDeclarations.h:258