Constants.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2008-2015 Gael Guennebaud <gael.guennebaud@inria.fr>
5 // Copyright (C) 2007-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
6 // Copyright (C) 2020, Arm Limited and Contributors
7 //
8 // This Source Code Form is subject to the terms of the Mozilla
9 // Public License v. 2.0. If a copy of the MPL was not distributed
10 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 
12 #ifndef EIGEN_CONSTANTS_H
13 #define EIGEN_CONSTANTS_H
14 
15 namespace Eigen {
16 
22 const int Dynamic = -1;
23 
27 const int DynamicIndex = 0xffffff;
28 
31 const int UndefinedIncr = 0xfffffe;
32 
36 const int Infinity = -1;
37 
44 const int HugeCost = 10000;
45 
66 const unsigned int RowMajorBit = 0x1;
67 
70 const unsigned int EvalBeforeNestingBit = 0x2;
71 
76 const unsigned int EvalBeforeAssigningBit = 0x4; // FIXME deprecated
77 
94 const unsigned int PacketAccessBit = 0x8;
95 
96 #ifdef EIGEN_VECTORIZE
97 
105 const unsigned int ActualPacketAccessBit = PacketAccessBit;
106 #else
107 const unsigned int ActualPacketAccessBit = 0x0;
108 #endif
109 
130 const unsigned int LinearAccessBit = 0x10;
131 
144 const unsigned int LvalueBit = 0x20;
145 
155 const unsigned int DirectAccessBit = 0x40;
156 
167 EIGEN_DEPRECATED const unsigned int AlignedBit = 0x80;
168 
169 const unsigned int NestByRefBit = 0x100;
170 
178 const unsigned int NoPreferredStorageOrderBit = 0x200;
179 
191 const unsigned int CompressedAccessBit = 0x400;
192 
193 
194 // list of flags that are inherited by default
195 const unsigned int HereditaryBits = RowMajorBit
197 
207 enum UpLoType {
209  Lower=0x1,
211  Upper=0x2,
213  UnitDiag=0x4,
215  ZeroDiag=0x8,
228 };
229 
240  Aligned=16,
241 #if EIGEN_MAX_ALIGN_BYTES==128
243 #elif EIGEN_MAX_ALIGN_BYTES==64
245 #elif EIGEN_MAX_ALIGN_BYTES==32
247 #elif EIGEN_MAX_ALIGN_BYTES==16
249 #elif EIGEN_MAX_ALIGN_BYTES==8
251 #elif EIGEN_MAX_ALIGN_BYTES==0
253 #else
254 #error Invalid value for EIGEN_MAX_ALIGN_BYTES
255 #endif
256 };
257 
271 };
272 
293 };
294 
305 };
306 
312 };
313 
319  ColMajor = 0,
321  RowMajor = 0x1, // it is only a coincidence that this is equal to RowMajorBit -- don't rely on that
323  AutoAlign = 0, // FIXME --- clarify the situation
325  DontAlign = 0x2
326 };
327 
330 enum SideType {
335 };
336 
346 };
347 
348 /* the following used to be written as:
349  *
350  * struct NoChange_t {};
351  * namespace {
352  * EIGEN_UNUSED NoChange_t NoChange;
353  * }
354  *
355  * on the ground that it feels dangerous to disambiguate overloaded functions on enum/integer types.
356  * However, this leads to "variable declared but never referenced" warnings on Intel Composer XE,
357  * and we do not know how to get rid of them (bug 450).
358  */
359 
363 
367  IsDense = 0,
369 };
370 
383 };
384 
389  Pivoting = 0x01,
391  NoPivoting = 0x02,
393  ComputeFullU = 0x04,
395  ComputeThinU = 0x08,
397  ComputeFullV = 0x10,
399  ComputeThinV = 0x20,
410  Ax_lBx = 0x100,
413  ABx_lx = 0x200,
416  BAx_lx = 0x400,
419 };
420 
432 };
433 
434 #ifdef Success
435 #error The preprocessor symbol 'Success' is defined, possibly by the X11 header file X.h
436 #endif
437 
442  Success = 0,
450 };
451 
457  Isometry = 0x1,
460  Affine = 0x2,
464  Projective = 0x20
465 };
466 
469 namespace Architecture
470 {
471  enum Type {
472  Generic = 0x0,
473  SSE = 0x1,
474  AltiVec = 0x2,
475  VSX = 0x3,
476  NEON = 0x4,
477  MSA = 0x5,
478  SVE = 0x6,
479 #if defined EIGEN_VECTORIZE_SSE
480  Target = SSE
481 #elif defined EIGEN_VECTORIZE_ALTIVEC
482  Target = AltiVec
483 #elif defined EIGEN_VECTORIZE_VSX
484  Target = VSX
485 #elif defined EIGEN_VECTORIZE_NEON
486  Target = NEON
487 #elif defined EIGEN_VECTORIZE_SVE
488  Target = SVE
489 #elif defined EIGEN_VECTORIZE_MSA
490  Target = MSA
491 #else
493 #endif
494  };
495 }
496 
501 
505 
507 struct Dense {};
508 
510 struct Sparse {};
511 
513 struct SolverStorage {};
514 
517 
520 
522 struct MatrixXpr {};
523 
525 struct ArrayXpr {};
526 
527 // An evaluator must define its shape. By default, it can be one of the following:
528 struct DenseShape { static std::string debugName() { return "DenseShape"; } };
529 struct SolverShape { static std::string debugName() { return "SolverShape"; } };
530 struct HomogeneousShape { static std::string debugName() { return "HomogeneousShape"; } };
531 struct DiagonalShape { static std::string debugName() { return "DiagonalShape"; } };
532 struct BandShape { static std::string debugName() { return "BandShape"; } };
533 struct TriangularShape { static std::string debugName() { return "TriangularShape"; } };
534 struct SelfAdjointShape { static std::string debugName() { return "SelfAdjointShape"; } };
535 struct PermutationShape { static std::string debugName() { return "PermutationShape"; } };
536 struct TranspositionsShape { static std::string debugName() { return "TranspositionsShape"; } };
537 struct SparseShape { static std::string debugName() { return "SparseShape"; } };
538 
539 namespace internal {
540 
541  // random access iterators based on coeff*() accessors.
542 struct IndexBased {};
543 
544 // evaluator based on iterators to access coefficients.
545 struct IteratorBased {};
546 
551  cmp_EQ = 0,
552  cmp_LT = 1,
553  cmp_LE = 2,
555  cmp_NEQ = 4,
556  cmp_GT = 5,
557  cmp_GE = 6
558 };
559 } // end namespace internal
560 
561 } // end namespace Eigen
562 
563 #endif // EIGEN_CONSTANTS_H
Eigen::DefaultProduct
@ DefaultProduct
Definition: Constants.h:500
Eigen::NumericalIssue
@ NumericalIssue
Definition: Constants.h:444
Eigen::Architecture::NEON
@ NEON
Definition: Constants.h:476
Eigen::HugeCost
const int HugeCost
Definition: Constants.h:44
Eigen::MatrixXpr
Definition: Constants.h:522
Eigen::internal::cmp_LT
@ cmp_LT
Definition: Constants.h:552
Eigen::FullPivHouseholderQRPreconditioner
@ FullPivHouseholderQRPreconditioner
Definition: Constants.h:431
Eigen::Symmetric
@ Symmetric
Definition: Constants.h:227
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Eigen::BAx_lx
@ BAx_lx
Definition: Constants.h:416
Eigen::Architecture::MSA
@ MSA
Definition: Constants.h:477
Eigen::SolverShape
Definition: Constants.h:529
Eigen::CoeffBasedProductMode
@ CoeffBasedProductMode
Definition: Constants.h:500
Eigen::GemvProduct
@ GemvProduct
Definition: Constants.h:500
Eigen::internal::cmp_UNORD
@ cmp_UNORD
Definition: Constants.h:554
Eigen::ComputeFullV
@ ComputeFullV
Definition: Constants.h:397
Eigen::SpecializedType
SpecializedType
Definition: Constants.h:309
Eigen::UndefinedIncr
const int UndefinedIncr
Definition: Constants.h:31
Eigen::UpLoType
UpLoType
Definition: Constants.h:207
Eigen::DenseShape
Definition: Constants.h:528
Eigen::Affine
@ Affine
Definition: Constants.h:460
Eigen::UnrollingType
UnrollingType
Definition: Constants.h:297
Eigen::Horizontal
@ Horizontal
Definition: Constants.h:267
Eigen::Sparse
Definition: Constants.h:510
Eigen::Unaligned
@ Unaligned
Definition: Constants.h:233
Eigen::TranspositionsShape::debugName
static std::string debugName()
Definition: Constants.h:536
Eigen::DefaultTraversal
@ DefaultTraversal
Definition: Constants.h:277
Eigen::RowMajorBit
const unsigned int RowMajorBit
Definition: Constants.h:66
Eigen::SideType
SideType
Definition: Constants.h:330
Eigen::UnitUpper
@ UnitUpper
Definition: Constants.h:219
Eigen::CompressedAccessBit
const unsigned int CompressedAccessBit
Definition: Constants.h:191
Eigen::Upper
@ Upper
Definition: Constants.h:211
EIGEN_DEPRECATED
#define EIGEN_DEPRECATED
Definition: Macros.h:1058
Eigen::ComputeFullU
@ ComputeFullU
Definition: Constants.h:393
Eigen::Success
@ Success
Definition: Constants.h:442
Eigen::BandShape
Definition: Constants.h:532
Eigen::DirectionType
DirectionType
Definition: Constants.h:261
Eigen::LazyCoeffBasedProductMode
@ LazyCoeffBasedProductMode
Definition: Constants.h:500
Eigen::IsSparse
@ IsSparse
Definition: Constants.h:368
Eigen::CompleteUnrolling
@ CompleteUnrolling
Definition: Constants.h:304
Eigen::InvalidTraversal
@ InvalidTraversal
Definition: Constants.h:290
Eigen::RowMajor
@ RowMajor
Definition: Constants.h:321
Eigen::NoChange_t
NoChange_t
Definition: Constants.h:360
Eigen::PropagateFast
@ PropagateFast
Definition: Constants.h:341
Eigen::ColPivHouseholderQRPreconditioner
@ ColPivHouseholderQRPreconditioner
Definition: Constants.h:429
Eigen::ComputeEigenvectors
@ ComputeEigenvectors
Definition: Constants.h:405
Eigen::DontAlign
@ DontAlign
Definition: Constants.h:325
Eigen::internal::ComparisonName
ComparisonName
Definition: Constants.h:550
Eigen::DirectAccessBit
const unsigned int DirectAccessBit
Definition: Constants.h:155
Eigen::StorageOptions
StorageOptions
Definition: Constants.h:317
Eigen::PermutationShape::debugName
static std::string debugName()
Definition: Constants.h:535
Eigen::NoUnrolling
@ NoUnrolling
Definition: Constants.h:299
Eigen::PacketAccessBit
const unsigned int PacketAccessBit
Definition: Constants.h:94
Eigen::OnTheLeft
@ OnTheLeft
Definition: Constants.h:332
Eigen::ArrayXpr
Definition: Constants.h:525
Eigen::StrictlyUpper
@ StrictlyUpper
Definition: Constants.h:223
Eigen::DirectAccessors
@ DirectAccessors
Definition: Constants.h:380
Eigen::InnerVectorizedTraversal
@ InnerVectorizedTraversal
Definition: Constants.h:282
Type
Definition: typing.h:67
Eigen::NoConvergence
@ NoConvergence
Definition: Constants.h:446
Eigen::PropagateNaN
@ PropagateNaN
Definition: Constants.h:343
Eigen::ActualPacketAccessBit
const unsigned int ActualPacketAccessBit
Definition: Constants.h:107
Eigen::Architecture::Target
@ Target
Definition: Constants.h:492
Eigen::LvalueBit
const unsigned int LvalueBit
Definition: Constants.h:144
Eigen::Isometry
@ Isometry
Definition: Constants.h:457
Eigen::SolverStorage
Definition: Constants.h:513
Eigen::SetAction
@ SetAction
Definition: Constants.h:504
Eigen::ComputeThinU
@ ComputeThinU
Definition: Constants.h:395
Eigen::TransformTraits
TransformTraits
Definition: Constants.h:455
Eigen::ZeroDiag
@ ZeroDiag
Definition: Constants.h:215
Eigen::Dynamic
const int Dynamic
Definition: Constants.h:22
Eigen::HouseholderQRPreconditioner
@ HouseholderQRPreconditioner
Definition: Constants.h:427
Eigen::SparseShape
Definition: Constants.h:537
Eigen::HomogeneousShape
Definition: Constants.h:530
Eigen::Architecture::Generic
@ Generic
Definition: Constants.h:472
Eigen::GenEigMask
@ GenEigMask
Definition: Constants.h:418
Eigen::IsDense
@ IsDense
Definition: Constants.h:367
Eigen::Ax_lBx
@ Ax_lBx
Definition: Constants.h:410
Eigen::internal::IteratorBased
Definition: Constants.h:545
Eigen::InnerUnrolling
@ InnerUnrolling
Definition: Constants.h:301
Eigen::GetAction
@ GetAction
Definition: Constants.h:504
Eigen::SliceVectorizedTraversal
@ SliceVectorizedTraversal
Definition: Constants.h:288
Eigen::Specialized
@ Specialized
Definition: Constants.h:310
Eigen::StrictlyLower
@ StrictlyLower
Definition: Constants.h:221
Eigen::DenseShape::debugName
static std::string debugName()
Definition: Constants.h:528
Eigen::GemmProduct
@ GemmProduct
Definition: Constants.h:500
Eigen::EigenvaluesOnly
@ EigenvaluesOnly
Definition: Constants.h:402
Eigen::Aligned8
@ Aligned8
Definition: Constants.h:234
Eigen::AutoAlign
@ AutoAlign
Definition: Constants.h:323
Eigen::AmbiVectorMode
AmbiVectorMode
Definition: Constants.h:366
Eigen::Sequential_t
Sequential_t
Definition: Constants.h:361
Eigen::Lower
@ Lower
Definition: Constants.h:209
Eigen::Vertical
@ Vertical
Definition: Constants.h:264
Eigen::OnTheRight
@ OnTheRight
Definition: Constants.h:334
Eigen::Aligned128
@ Aligned128
Definition: Constants.h:238
Eigen::EvalBeforeAssigningBit
const EIGEN_DEPRECATED unsigned int EvalBeforeAssigningBit
Definition: Constants.h:76
Eigen::NoQRPreconditioner
@ NoQRPreconditioner
Definition: Constants.h:425
Eigen::ReadOnlyAccessors
@ ReadOnlyAccessors
Definition: Constants.h:376
Eigen::NaNPropagationOptions
NaNPropagationOptions
Definition: Constants.h:339
Eigen::InnerProduct
@ InnerProduct
Definition: Constants.h:500
Eigen::NoPivoting
@ NoPivoting
Definition: Constants.h:391
Eigen::TriangularShape::debugName
static std::string debugName()
Definition: Constants.h:533
Eigen::HomogeneousShape::debugName
static std::string debugName()
Definition: Constants.h:530
Eigen::Aligned16
@ Aligned16
Definition: Constants.h:235
Eigen::LinearAccessBit
const unsigned int LinearAccessBit
Definition: Constants.h:130
Eigen::AlignedBit
const EIGEN_DEPRECATED unsigned int AlignedBit
Definition: Constants.h:167
Eigen::BandShape::debugName
static std::string debugName()
Definition: Constants.h:532
Eigen::DecompositionOptions
DecompositionOptions
Definition: Constants.h:387
Eigen::ComputeThinV
@ ComputeThinV
Definition: Constants.h:399
Eigen::internal::cmp_EQ
@ cmp_EQ
Definition: Constants.h:551
Eigen::LinearVectorizedTraversal
@ LinearVectorizedTraversal
Definition: Constants.h:285
Eigen::DiagonalShape::debugName
static std::string debugName()
Definition: Constants.h:531
Eigen::SolverShape::debugName
static std::string debugName()
Definition: Constants.h:529
Eigen::BuiltIn
@ BuiltIn
Definition: Constants.h:311
Eigen::internal::cmp_NEQ
@ cmp_NEQ
Definition: Constants.h:555
Eigen::PermutationStorage
Definition: Constants.h:516
Eigen::AlignmentType
AlignmentType
Definition: Constants.h:232
Eigen::Default_t
Default_t
Definition: Constants.h:362
Eigen::internal::cmp_LE
@ cmp_LE
Definition: Constants.h:553
Eigen::Action
Action
Definition: Constants.h:504
Eigen::TriangularShape
Definition: Constants.h:533
Eigen::AlignedMask
@ AlignedMask
Definition: Constants.h:239
Eigen::AlignedMax
@ AlignedMax
Definition: Constants.h:252
Eigen::LinearTraversal
@ LinearTraversal
Definition: Constants.h:279
Eigen::SelfAdjointShape
Definition: Constants.h:534
Eigen::AliasFreeProduct
@ AliasFreeProduct
Definition: Constants.h:500
Eigen::QRPreconditioners
QRPreconditioners
Definition: Constants.h:423
Eigen::DirectWriteAccessors
@ DirectWriteAccessors
Definition: Constants.h:382
Eigen::Default
@ Default
Definition: Constants.h:362
Eigen::TranspositionsStorage
Definition: Constants.h:519
Eigen::ABx_lx
@ ABx_lx
Definition: Constants.h:413
Eigen::BothDirections
@ BothDirections
Definition: Constants.h:270
Eigen::EigVecMask
@ EigVecMask
Definition: Constants.h:407
Eigen::Sequential
@ Sequential
Definition: Constants.h:361
Eigen::InvalidInput
@ InvalidInput
Definition: Constants.h:449
internal
Definition: BandTriangularSolver.h:13
Eigen::DynamicIndex
const int DynamicIndex
Definition: Constants.h:27
Eigen::NoChange
@ NoChange
Definition: Constants.h:360
Eigen::AffineCompact
@ AffineCompact
Definition: Constants.h:462
Eigen::TraversalType
TraversalType
Definition: Constants.h:275
Eigen::Architecture::VSX
@ VSX
Definition: Constants.h:475
Eigen::ColMajor
@ ColMajor
Definition: Constants.h:319
Eigen::NoPreferredStorageOrderBit
const unsigned int NoPreferredStorageOrderBit
Definition: Constants.h:178
Eigen::EvalBeforeNestingBit
const unsigned int EvalBeforeNestingBit
Definition: Constants.h:70
Eigen::internal::cmp_GT
@ cmp_GT
Definition: Constants.h:556
Eigen::ComputationInfo
ComputationInfo
Definition: Constants.h:440
Eigen::internal::cmp_GE
@ cmp_GE
Definition: Constants.h:557
Eigen::HereditaryBits
const unsigned int HereditaryBits
Definition: Constants.h:195
Eigen::OuterProduct
@ OuterProduct
Definition: Constants.h:500
Eigen::WriteAccessors
@ WriteAccessors
Definition: Constants.h:378
Eigen::UnitLower
@ UnitLower
Definition: Constants.h:217
Eigen::SparseShape::debugName
static std::string debugName()
Definition: Constants.h:537
Eigen::AllAtOnceTraversal
@ AllAtOnceTraversal
Definition: Constants.h:292
Eigen::Aligned32
@ Aligned32
Definition: Constants.h:236
Eigen::internal::IndexBased
Definition: Constants.h:542
Eigen::Architecture::SVE
@ SVE
Definition: Constants.h:478
Eigen::NestByRefBit
const unsigned int NestByRefBit
Definition: Constants.h:169
Eigen::LazyProduct
@ LazyProduct
Definition: Constants.h:500
Eigen::Infinity
const int Infinity
Definition: Constants.h:36
Eigen::Aligned64
@ Aligned64
Definition: Constants.h:237
Eigen::Architecture::SSE
@ SSE
Definition: Constants.h:473
Projective
Definition: testAdaptAutoDiff.cpp:83
Eigen::Architecture::AltiVec
@ AltiVec
Definition: Constants.h:474
Eigen::AccessorLevels
AccessorLevels
Definition: Constants.h:374
Eigen::SelfAdjoint
@ SelfAdjoint
Definition: Constants.h:225
Eigen::PropagateNumbers
@ PropagateNumbers
Definition: Constants.h:345
Eigen::UnitDiag
@ UnitDiag
Definition: Constants.h:213
Eigen::Pivoting
@ Pivoting
Definition: Constants.h:389
Eigen::TranspositionsShape
Definition: Constants.h:536
Eigen::Aligned
@ Aligned
Definition: Constants.h:240
Eigen::Dense
Definition: Constants.h:507
Eigen::ProductImplType
ProductImplType
Definition: Constants.h:499
Eigen::DiagonalShape
Definition: Constants.h:531
Eigen::SelfAdjointShape::debugName
static std::string debugName()
Definition: Constants.h:534
Eigen::PermutationShape
Definition: Constants.h:535


gtsam
Author(s):
autogenerated on Thu Dec 19 2024 04:00:52