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 //
7 // This Source Code Form is subject to the terms of the Mozilla
8 // Public License v. 2.0. If a copy of the MPL was not distributed
9 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 
11 #ifndef EIGEN_CONSTANTS_H
12 #define EIGEN_CONSTANTS_H
13 
14 namespace Eigen {
15 
21 const int Dynamic = -1;
22 
26 const int DynamicIndex = 0xffffff;
27 
31 const int Infinity = -1;
32 
39 const int HugeCost = 10000;
40 
61 const unsigned int RowMajorBit = 0x1;
62 
65 const unsigned int EvalBeforeNestingBit = 0x2;
66 
71 const unsigned int EvalBeforeAssigningBit = 0x4; // FIXME deprecated
72 
89 const unsigned int PacketAccessBit = 0x8;
90 
91 #ifdef EIGEN_VECTORIZE
92 
100 const unsigned int ActualPacketAccessBit = PacketAccessBit;
101 #else
102 const unsigned int ActualPacketAccessBit = 0x0;
103 #endif
104 
125 const unsigned int LinearAccessBit = 0x10;
126 
139 const unsigned int LvalueBit = 0x20;
140 
150 const unsigned int DirectAccessBit = 0x40;
151 
162 EIGEN_DEPRECATED const unsigned int AlignedBit = 0x80;
163 
164 const unsigned int NestByRefBit = 0x100;
165 
173 const unsigned int NoPreferredStorageOrderBit = 0x200;
174 
186 const unsigned int CompressedAccessBit = 0x400;
187 
188 
189 // list of flags that are inherited by default
190 const unsigned int HereditaryBits = RowMajorBit
192 
202 enum UpLoType {
204  Lower=0x1,
206  Upper=0x2,
208  UnitDiag=0x4,
210  ZeroDiag=0x8,
223 };
224 
235  Aligned=16,
236 #if EIGEN_MAX_ALIGN_BYTES==128
238 #elif EIGEN_MAX_ALIGN_BYTES==64
240 #elif EIGEN_MAX_ALIGN_BYTES==32
241  AlignedMax = Aligned32
242 #elif EIGEN_MAX_ALIGN_BYTES==16
243  AlignedMax = Aligned16
244 #elif EIGEN_MAX_ALIGN_BYTES==8
245  AlignedMax = Aligned8
246 #elif EIGEN_MAX_ALIGN_BYTES==0
247  AlignedMax = Unaligned
248 #else
249 #error Invalid value for EIGEN_MAX_ALIGN_BYTES
250 #endif
251 };
252 
255 // FIXME after the corner() API change, this was not needed anymore, except by AlignedBox
256 // TODO: find out what to do with that. Adapt the AlignedBox API ?
258 
272 };
273 
294 };
295 
306 };
307 
313 };
314 
320  ColMajor = 0,
322  RowMajor = 0x1, // it is only a coincidence that this is equal to RowMajorBit -- don't rely on that
324  AutoAlign = 0, // FIXME --- clarify the situation
326  DontAlign = 0x2
327 };
328 
331 enum SideType {
333  OnTheLeft = 1,
336 };
337 
338 /* the following used to be written as:
339  *
340  * struct NoChange_t {};
341  * namespace {
342  * EIGEN_UNUSED NoChange_t NoChange;
343  * }
344  *
345  * on the ground that it feels dangerous to disambiguate overloaded functions on enum/integer types.
346  * However, this leads to "variable declared but never referenced" warnings on Intel Composer XE,
347  * and we do not know how to get rid of them (bug 450).
348  */
349 
353 
357  IsDense = 0,
359 };
360 
373 };
374 
379  Pivoting = 0x01,
381  NoPivoting = 0x02,
383  ComputeFullU = 0x04,
385  ComputeThinU = 0x08,
387  ComputeFullV = 0x10,
389  ComputeThinV = 0x20,
400  Ax_lBx = 0x100,
403  ABx_lx = 0x200,
406  BAx_lx = 0x400,
409 };
410 
422 };
423 
424 #ifdef Success
425 #error The preprocessor symbol 'Success' is defined, possibly by the X11 header file X.h
426 #endif
427 
432  Success = 0,
440 };
441 
447  Isometry = 0x1,
450  Affine = 0x2,
454  Projective = 0x20
455 };
456 
459 namespace Architecture
460 {
461  enum Type {
462  Generic = 0x0,
463  SSE = 0x1,
464  AltiVec = 0x2,
465  VSX = 0x3,
466  NEON = 0x4,
467 #if defined EIGEN_VECTORIZE_SSE
468  Target = SSE
469 #elif defined EIGEN_VECTORIZE_ALTIVEC
470  Target = AltiVec
471 #elif defined EIGEN_VECTORIZE_VSX
472  Target = VSX
473 #elif defined EIGEN_VECTORIZE_NEON
474  Target = NEON
475 #else
476  Target = Generic
477 #endif
478  };
479 }
480 
485 
489 
491 struct Dense {};
492 
494 struct Sparse {};
495 
497 struct SolverStorage {};
498 
501 
504 
506 struct MatrixXpr {};
507 
509 struct ArrayXpr {};
510 
511 // An evaluator must define its shape. By default, it can be one of the following:
512 struct DenseShape { static std::string debugName() { return "DenseShape"; } };
513 struct SolverShape { static std::string debugName() { return "SolverShape"; } };
514 struct HomogeneousShape { static std::string debugName() { return "HomogeneousShape"; } };
515 struct DiagonalShape { static std::string debugName() { return "DiagonalShape"; } };
516 struct BandShape { static std::string debugName() { return "BandShape"; } };
517 struct TriangularShape { static std::string debugName() { return "TriangularShape"; } };
518 struct SelfAdjointShape { static std::string debugName() { return "SelfAdjointShape"; } };
519 struct PermutationShape { static std::string debugName() { return "PermutationShape"; } };
520 struct TranspositionsShape { static std::string debugName() { return "TranspositionsShape"; } };
521 struct SparseShape { static std::string debugName() { return "SparseShape"; } };
522 
523 namespace internal {
524 
525  // random access iterators based on coeff*() accessors.
526 struct IndexBased {};
527 
528 // evaluator based on iterators to access coefficients.
529 struct IteratorBased {};
530 
535  cmp_EQ = 0,
536  cmp_LT = 1,
537  cmp_LE = 2,
539  cmp_NEQ = 4,
540  cmp_GT = 5,
541  cmp_GE = 6
542 };
543 } // end namespace internal
544 
545 } // end namespace Eigen
546 
547 #endif // EIGEN_CONSTANTS_H
const unsigned int ActualPacketAccessBit
Definition: Constants.h:102
AccessorLevels
Definition: Constants.h:364
static std::string debugName()
Definition: Constants.h:516
const unsigned int CompressedAccessBit
Definition: Constants.h:186
CornerType
Definition: Constants.h:257
const int HugeCost
Definition: Constants.h:39
EIGEN_DEPRECATED const unsigned int EvalBeforeAssigningBit
Definition: Constants.h:71
const unsigned int DirectAccessBit
Definition: Constants.h:150
const unsigned int LvalueBit
Definition: Constants.h:139
DirectionType
Definition: Constants.h:262
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
const int DynamicIndex
Definition: Constants.h:26
Default_t
Definition: Constants.h:352
static std::string debugName()
Definition: Constants.h:513
ProductImplType
Definition: Constants.h:483
const unsigned int RowMajorBit
Definition: Constants.h:61
static std::string debugName()
Definition: Constants.h:515
const unsigned int PacketAccessBit
Definition: Constants.h:89
TraversalType
Definition: Constants.h:276
const unsigned int HereditaryBits
Definition: Constants.h:190
static std::string debugName()
Definition: Constants.h:518
SideType
Definition: Constants.h:331
TransformTraits
Definition: Constants.h:445
static std::string debugName()
Definition: Constants.h:519
StorageOptions
Definition: Constants.h:318
UnrollingType
Definition: Constants.h:298
AmbiVectorMode
Definition: Constants.h:356
static std::string debugName()
Definition: Constants.h:521
NoChange_t
Definition: Constants.h:350
EIGEN_DEPRECATED const unsigned int AlignedBit
Definition: Constants.h:162
const unsigned int NestByRefBit
Definition: Constants.h:164
static std::string debugName()
Definition: Constants.h:512
static std::string debugName()
Definition: Constants.h:517
AlignmentType
Definition: Constants.h:227
static std::string debugName()
Definition: Constants.h:520
Sequential_t
Definition: Constants.h:351
#define EIGEN_DEPRECATED
Definition: Macros.h:600
QRPreconditioners
Definition: Constants.h:413
static std::string debugName()
Definition: Constants.h:514
DecompositionOptions
Definition: Constants.h:377
UpLoType
Definition: Constants.h:202
const int Dynamic
Definition: Constants.h:21
const unsigned int EvalBeforeNestingBit
Definition: Constants.h:65
ComputationInfo
Definition: Constants.h:430
const unsigned int LinearAccessBit
Definition: Constants.h:125
SpecializedType
Definition: Constants.h:310
const int Infinity
Definition: Constants.h:31
const unsigned int NoPreferredStorageOrderBit
Definition: Constants.h:173


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:41:50