12#ifndef EIGEN_FORWARDDECLARATIONS_H
13#define EIGEN_FORWARDDECLARATIONS_H
16#include "../InternalHeaderCheck.h"
29struct traits<const T> : traits<T> {};
31template <
typename Derived>
32struct has_direct_access : bool_constant<(traits<Derived>::Flags & DirectAccessBit) != 0> {};
34template <
typename Derived>
35struct accessors_level {
38 has_write_access = (traits<Derived>::Flags &
LvalueBit) ? 1 : 0,
45struct evaluator_traits;
55template <
typename Derived>
57template <
typename Derived>
59template <
typename Derived>
61template <
typename Derived,
int Level>
64template <
typename Scalar_,
int Rows_,
int Cols_,
67 : EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION),
68 int MaxRows_ = Rows_,
int MaxCols_ = Cols_>
71template <
typename Derived>
73template <
typename Derived>
76template <
typename ExpressionType,
template <
typename>
class StorageBase>
78template <
typename ExpressionType>
80template <
typename ExpressionType>
83template <
typename XprType,
int BlockRows = Dynamic,
int BlockCols = Dynamic,
bool InnerPanel = false>
85template <
typename XprType,
typename RowIndices,
typename ColIndices>
87template <
typename XprType,
int Rows = Dynamic,
int Cols = Dynamic,
int Order = 0>
89template <
typename FirstType,
typename SizeType,
typename IncrType>
90class ArithmeticSequence;
92template <
typename MatrixType,
int Size = Dynamic>
94template <
typename MatrixType>
96template <
typename MatrixType>
98template <
typename NullaryOp,
typename MatrixType>
100template <
typename UnaryOp,
typename MatrixType>
102template <
typename BinaryOp,
typename Lhs,
typename Rhs>
104template <
typename TernaryOp,
typename Arg1,
typename Arg2,
typename Arg3>
106template <
typename Decomposition,
typename Rhstype>
108template <
typename XprType>
111template <
typename Lhs,
typename Rhs,
int Option = DefaultProduct>
114template <
typename Derived>
116template <
typename DiagonalVectorType_>
117class DiagonalWrapper;
118template <
typename Scalar_,
int SizeAtCompileTime,
int MaxSizeAtCompileTime = SizeAtCompileTime>
120template <
typename MatrixType,
int Index = 0>
122template <
typename Derived>
123class SkewSymmetricBase;
124template <
typename VectorType_>
125class SkewSymmetricWrapper;
126template <
typename Scalar_>
127class SkewSymmetricMatrix3;
128template <
int SizeAtCompileTime,
int MaxSizeAtCompileTime = SizeAtCompileTime,
typename IndexType =
int>
129class PermutationMatrix;
130template <
typename Scalar_,
int SizeAtCompileTime,
int MaxSizeAtCompileTime = SizeAtCompileTime,
131 typename StorageIndex_ =
int>
132class ScaledPermutationMatrix;
133template <
typename Derived>
134class ScaledPermutationBase;
135template <
int SizeAtCompileTime,
int MaxSizeAtCompileTime = SizeAtCompileTime,
typename IndexType =
int>
137template <
typename Derived>
138class PermutationBase;
139template <
typename Derived>
140class TranspositionsBase;
141template <
typename IndicesType_>
142class PermutationWrapper;
143template <
typename IndicesType_>
144class TranspositionsWrapper;
146template <
typename Derived,
149template <
int OuterStr
ideAtCompileTime,
int InnerStr
ideAtCompileTime>
151template <
int Value = Dynamic>
153template <
int Value = Dynamic>
155template <
typename MatrixType,
int MapOptions = Unaligned,
typename Str
ideType = Str
ide<0, 0>>
157template <
typename Derived>
159template <
typename PlainObjectType,
int Options = 0,
160 typename StrideType =
161 std::conditional_t<PlainObjectType::IsVectorAtCompileTime, InnerStride<1>, OuterStride<>>>
163template <
typename ViewOp,
typename MatrixType,
typename Str
ideType = Str
ide<0, 0>>
166template <
typename Derived>
168template <
typename MatrixType,
unsigned int Mode>
170template <
typename MatrixType,
unsigned int Mode>
171class SelfAdjointView;
172template <
typename Derived>
174template <
typename MatrixType>
176template <
typename ExpressionType>
178template <
typename MatrixType>
179struct CommaInitializer;
180template <
typename Derived>
182template <
typename ExpressionType>
184template <
typename ExpressionType>
186template <
typename Derived>
188template <
typename XprType>
192template <
typename XprType>
193class generic_randaccess_stl_iterator;
194template <
typename XprType>
195class pointer_based_stl_iterator;
196template <
typename XprType, DirectionType Direction>
197class subvector_stl_iterator;
198template <
typename XprType, DirectionType Direction>
199class subvector_stl_reverse_iterator;
203template <
typename Scalar_,
int Rows = Dynamic,
int Cols = Dynamic,
int Supers = Dynamic,
int Subs = Dynamic,
209template <
typename Lhs,
typename Rhs>
211template <
typename Derived,
typename Func,
typename Identity>
212EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE
typename Derived::Scalar redux_with_identity(
const DenseBase<Derived>& xpr,
214 Identity&& identity);
221template <typename T, int ProductTag = internal::product_type<typename T::Lhs, typename T::Rhs>::value,
222 typename LhsShape =
typename evaluator_traits<typename T::Lhs>::Shape,
223 typename RhsShape =
typename evaluator_traits<typename T::Rhs>::Shape,
224 typename LhsScalar =
typename traits<typename T::Lhs>::Scalar,
225 typename RhsScalar =
typename traits<typename T::Rhs>::Scalar>
226struct product_evaluator;
233template <
typename LhsScalar,
typename RhsScalar,
bool ConjLhs = false,
bool ConjRhs = false>
236template <
typename LhsScalar,
typename RhsScalar = LhsScalar>
238template <
typename LhsScalar,
typename RhsScalar = LhsScalar>
239struct scalar_difference_op;
240template <
typename LhsScalar,
typename RhsScalar = LhsScalar>
241struct scalar_conj_product_op;
242template <
typename LhsScalar,
typename RhsScalar = LhsScalar,
int NaNPropagation = PropagateFast>
244template <
typename LhsScalar,
typename RhsScalar = LhsScalar,
int NaNPropagation = PropagateFast>
246template <
typename Scalar>
247struct scalar_opposite_op;
248template <
typename Scalar>
249struct scalar_conjugate_op;
250template <
typename Scalar>
251struct scalar_real_op;
252template <
typename Scalar>
253struct scalar_imag_op;
254template <
typename Scalar>
256template <
typename Scalar>
257struct scalar_abs2_op;
258template <
typename LhsScalar,
typename RhsScalar = LhsScalar>
259struct scalar_absolute_difference_op;
260template <
typename Scalar>
261struct scalar_sqrt_op;
262template <
typename Scalar>
263struct scalar_cbrt_op;
264template <
typename Scalar>
265struct scalar_rsqrt_op;
266template <
typename Scalar>
268template <
typename Scalar>
270template <
typename Scalar>
272template <
typename Scalar>
274template <
typename Scalar>
275struct scalar_acos_op;
276template <
typename Scalar>
277struct scalar_asin_op;
278template <
typename Scalar>
280template <
typename Scalar>
281struct scalar_atan_op;
282template <
typename LhsScalar,
typename RhsScalar = LhsScalar>
283struct scalar_atan2_op;
284template <
typename Scalar>
285struct scalar_inverse_op;
286template <
typename Scalar>
287struct scalar_square_op;
288template <
typename Scalar>
289struct scalar_cube_op;
290template <
typename Scalar,
typename NewType>
291struct scalar_cast_op;
292template <
typename Scalar>
293struct scalar_random_op;
294template <
typename Scalar>
295struct scalar_constant_op;
296template <
typename Scalar>
297struct scalar_identity_op;
298template <
typename Scalar>
299struct scalar_sign_op;
300template <
typename Scalar,
typename ScalarExponent>
302template <
typename Scalar,
typename ScalarExponent,
bool BaseIsInteger,
bool ExponentIsInteger,
bool BaseIsComplex,
303 bool ExponentIsComplex>
304struct scalar_unary_pow_op;
305template <
typename LhsScalar,
typename RhsScalar = LhsScalar>
306struct scalar_hypot_op;
307template <
typename LhsScalar,
typename RhsScalar = LhsScalar>
308struct scalar_product_op;
309template <
typename LhsScalar,
typename RhsScalar = LhsScalar>
310struct scalar_quotient_op;
312template <
typename Scalar>
313struct scalar_boolean_and_op;
314template <
typename Scalar>
315struct scalar_boolean_or_op;
316template <
typename Scalar>
317struct scalar_boolean_xor_op;
318template <
typename Scalar>
319struct scalar_boolean_not_op;
320template <
typename Scalar>
321struct scalar_bitwise_and_op;
322template <
typename Scalar>
323struct scalar_bitwise_or_op;
324template <
typename Scalar>
325struct scalar_bitwise_xor_op;
326template <
typename Scalar>
327struct scalar_bitwise_not_op;
330template <
typename Scalar>
331struct scalar_lgamma_op;
332template <
typename Scalar>
333struct scalar_digamma_op;
334template <
typename Scalar>
336template <
typename Scalar>
337struct scalar_erfc_op;
338template <
typename Scalar>
339struct scalar_ndtri_op;
340template <
typename Scalar>
341struct scalar_igamma_op;
342template <
typename Scalar>
343struct scalar_igammac_op;
344template <
typename Scalar>
345struct scalar_zeta_op;
346template <
typename Scalar>
347struct scalar_betainc_op;
350template <
typename Scalar>
351struct scalar_bessel_i0_op;
352template <
typename Scalar>
353struct scalar_bessel_i0e_op;
354template <
typename Scalar>
355struct scalar_bessel_i1_op;
356template <
typename Scalar>
357struct scalar_bessel_i1e_op;
358template <
typename Scalar>
359struct scalar_bessel_j0_op;
360template <
typename Scalar>
361struct scalar_bessel_y0_op;
362template <
typename Scalar>
363struct scalar_bessel_j1_op;
364template <
typename Scalar>
365struct scalar_bessel_y1_op;
366template <
typename Scalar>
367struct scalar_bessel_k0_op;
368template <
typename Scalar>
369struct scalar_bessel_k0e_op;
370template <
typename Scalar>
371struct scalar_bessel_k1_op;
372template <
typename Scalar>
373struct scalar_bessel_k1e_op;
380template <
typename Scalar_,
int Rows_,
int Cols_,
383 : EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION),
384 int MaxRows_ = Rows_,
int MaxCols_ = Cols_>
386template <
typename MatrixType,
typename BinaryOp,
int Direction>
387class PartialReduxExpr;
388template <
typename ExpressionType,
int Direction>
390template <
typename MatrixType,
int RowFactor,
int ColFactor>
392template <
int Direction,
typename LhsType,
typename RhsType>
394template <
typename MatrixType,
int Direction = BothDirections>
402#ifndef EIGEN_HAS_LAPACK_INT
403#if defined(lapack_int) || defined(LAPACK_INT)
404#define EIGEN_HAS_LAPACK_INT 1
406#define EIGEN_HAS_LAPACK_INT 0
410#if defined(EIGEN_USE_LAPACKE) && EIGEN_HAS_LAPACK_INT
412using DefaultPermutationIndex = lapack_int;
414using DefaultPermutationIndex = int;
418#if defined(EIGEN_USE_LAPACKE) && defined(EIGEN_USE_BLAS) && EIGEN_HAS_LAPACK_INT
419static_assert(
sizeof(lapack_int) ==
sizeof(BlasIndex),
420 "LAPACKE integer width (lapack_int) does not match the BLAS integer width (Eigen::BlasIndex). Build "
421 "both backends against the same integer interface: pair EIGEN_64BIT_BLAS with an ILP64 LAPACKE "
422 "(lapack_int = 64-bit), or use the 32-bit interface for both.");
425template <
typename MatrixType,
typename PermutationIndex = DefaultPermutationIndex>
427template <
typename MatrixType,
typename PermutationIndex = DefaultPermutationIndex>
429template <
typename MatrixType>
431template <
typename MatrixType,
typename PermutationIndex = DefaultPermutationIndex>
432class ColPivHouseholderQR;
433template <
typename MatrixType,
typename PermutationIndex = DefaultPermutationIndex>
434class FullPivHouseholderQR;
435template <
typename MatrixType,
typename PermutationIndex = DefaultPermutationIndex>
436class RandColPivHouseholderQR;
437template <
typename MatrixType,
typename PermutationIndex = DefaultPermutationIndex>
438class CompleteOrthogonalDecomposition;
439template <
typename MatrixType,
typename PermutationIndex = DefaultPermutationIndex>
440class RandCompleteOrthogonalDecomposition;
442template <
typename MatrixType,
typename PermutationIndex,
template <
typename,
typename>
class RankRevealingQR>
443class CompleteOrthogonalDecompositionImpl;
445template <
typename MatrixType>
447template <
typename MatrixType,
int Options = 0>
449template <
typename MatrixType,
int Options = 0>
451template <
typename MatrixType,
int UpLo = Lower>
453template <
typename MatrixType,
int UpLo = Lower>
455template <
typename MatrixType,
int UpLo = Lower>
457template <
typename VectorsType,
typename CoeffsType,
int S
ide = OnTheLeft>
458class HouseholderSequence;
459template <
typename Scalar>
464template <typename Derived, typename OtherDerived, int Size = MatrixBase<Derived>::SizeAtCompileTime>
467template <
typename Derived,
int Dim_>
469template <
typename Derived>
471template <
typename Scalar>
473template <
typename Scalar>
475template <
typename Scalar,
int Dim>
477template <
typename Scalar,
int Dim>
479template <
typename Scalar,
int Options = AutoAlign>
481template <
typename Scalar,
int Dim,
int Mode,
int Options_ = AutoAlign>
483template <
typename Scalar_,
int AmbientDim_,
int Options = AutoAlign>
484class ParametrizedLine;
485template <
typename Scalar_,
int AmbientDim_,
int Options = AutoAlign>
487template <
typename Scalar>
489template <
typename MatrixType,
int Direction>
493template <
typename Derived>
494class SparseMatrixBase;
497template <
typename Derived>
498struct MatrixExponentialReturnValue;
499template <
typename Derived>
500class MatrixFunctionReturnValue;
501template <
typename Derived>
502class MatrixSquareRootReturnValue;
503template <
typename Derived>
504class MatrixLogarithmReturnValue;
505template <
typename Derived>
506class MatrixPowerReturnValue;
507template <
typename Derived>
508class MatrixComplexPowerReturnValue;
511template <
typename Scalar>
512struct stem_function {
513 using ComplexScalar = internal::make_complex_t<Scalar>;
514 using type = ComplexScalar(ComplexScalar,
int);
518template <
typename XprType,
typename Device>
522template <
typename Xpr>
523struct eigen_fill_helper;
524template <typename Xpr, bool use_fill = eigen_fill_helper<Xpr>::value>
525struct eigen_fill_impl;
526template <
typename Xpr>
527struct eigen_memset_helper;
528template <typename Xpr, bool use_memset = eigen_memset_helper<Xpr>::value>
529struct eigen_zero_impl;
531template <
typename Packet>
532struct has_packet_segment : std::false_type {};
535struct complex_array_access;
@ DirectAccessors
Definition Constants.h:381
@ ReadOnlyAccessors
Definition Constants.h:377
@ WriteAccessors
Definition Constants.h:379
@ DirectWriteAccessors
Definition Constants.h:383
@ ColMajor
Definition Constants.h:319
@ RowMajor
Definition Constants.h:321
@ AutoAlign
Definition Constants.h:323
constexpr unsigned int DirectAccessBit
Definition Constants.h:160
constexpr unsigned int LvalueBit
Definition Constants.h:149