Path Tracer
Constants.h
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 
30 const int UndefinedIncr = 0xfffffe;
31 
35 const int Infinity = -1;
36 
43 const int HugeCost = 10000;
44 
65 const unsigned int RowMajorBit = 0x1;
66 
69 const unsigned int EvalBeforeNestingBit = 0x2;
70 
74 EIGEN_DEPRECATED
75 const unsigned int EvalBeforeAssigningBit = 0x4; // FIXME deprecated
76 
93 const unsigned int PacketAccessBit = 0x8;
94 
95 #ifdef EIGEN_VECTORIZE
96 
104 const unsigned int ActualPacketAccessBit = PacketAccessBit;
105 #else
106 const unsigned int ActualPacketAccessBit = 0x0;
107 #endif
108 
129 const unsigned int LinearAccessBit = 0x10;
130 
143 const unsigned int LvalueBit = 0x20;
144 
154 const unsigned int DirectAccessBit = 0x40;
155 
166 EIGEN_DEPRECATED const unsigned int AlignedBit = 0x80;
167 
168 const unsigned int NestByRefBit = 0x100;
169 
177 const unsigned int NoPreferredStorageOrderBit = 0x200;
178 
190 const unsigned int CompressedAccessBit = 0x400;
191 
192 
193 // list of flags that are inherited by default
194 const unsigned int HereditaryBits = RowMajorBit
196 
206 enum UpLoType {
208  Lower=0x1,
210  Upper=0x2,
212  UnitDiag=0x4,
214  ZeroDiag=0x8,
226  Symmetric=0x20
227 };
228 
238  AlignedMask=255,
239  Aligned=16,
240 #if EIGEN_MAX_ALIGN_BYTES==128
241  AlignedMax = Aligned128
242 #elif EIGEN_MAX_ALIGN_BYTES==64
243  AlignedMax = Aligned64
244 #elif EIGEN_MAX_ALIGN_BYTES==32
245  AlignedMax = Aligned32
246 #elif EIGEN_MAX_ALIGN_BYTES==16
247  AlignedMax = Aligned16
248 #elif EIGEN_MAX_ALIGN_BYTES==8
249  AlignedMax = Aligned8
250 #elif EIGEN_MAX_ALIGN_BYTES==0
251  AlignedMax = Unaligned
252 #else
253 #error Invalid value for EIGEN_MAX_ALIGN_BYTES
254 #endif
255 };
256 
270 };
271 
274 enum TraversalType {
276  DefaultTraversal,
278  LinearTraversal,
281  InnerVectorizedTraversal,
284  LinearVectorizedTraversal,
287  SliceVectorizedTraversal,
289  InvalidTraversal,
291  AllAtOnceTraversal
292 };
293 
296 enum UnrollingType {
298  NoUnrolling,
300  InnerUnrolling,
303  CompleteUnrolling
304 };
305 
308 enum SpecializedType {
309  Specialized,
310  BuiltIn
311 };
312 
318  ColMajor = 0,
320  RowMajor = 0x1, // it is only a coincidence that this is equal to RowMajorBit -- don't rely on that
322  AutoAlign = 0, // FIXME --- clarify the situation
324  DontAlign = 0x2
325 };
326 
329 enum SideType {
333  OnTheRight = 2
334 };
335 
345 };
346 
347 /* the following used to be written as:
348  *
349  * struct NoChange_t {};
350  * namespace {
351  * EIGEN_UNUSED NoChange_t NoChange;
352  * }
353  *
354  * on the ground that it feels dangerous to disambiguate overloaded functions on enum/integer types.
355  * However, this leads to "variable declared but never referenced" warnings on Intel Composer XE,
356  * and we do not know how to get rid of them (bug 450).
357  */
358 
359 enum NoChange_t { NoChange };
360 enum Sequential_t { Sequential };
361 enum Default_t { Default };
362 
365 enum AmbiVectorMode {
366  IsDense = 0,
367  IsSparse
368 };
369 
382 };
383 
388  Pivoting = 0x01,
390  NoPivoting = 0x02,
392  ComputeFullU = 0x04,
394  ComputeThinU = 0x08,
396  ComputeFullV = 0x10,
398  ComputeThinV = 0x20,
406  EigVecMask = EigenvaluesOnly | ComputeEigenvectors,
409  Ax_lBx = 0x100,
412  ABx_lx = 0x200,
415  BAx_lx = 0x400,
417  GenEigMask = Ax_lBx | ABx_lx | BAx_lx
418 };
419 
431 };
432 
433 #ifdef Success
434 #error The preprocessor symbol 'Success' is defined, possibly by the X11 header file X.h
435 #endif
436 
441  Success = 0,
448  InvalidInput = 3
449 };
450 
456  Isometry = 0x1,
459  Affine = 0x2,
463  Projective = 0x20
464 };
465 
468 namespace Architecture
469 {
470  enum Type {
471  Generic = 0x0,
472  SSE = 0x1,
473  AltiVec = 0x2,
474  VSX = 0x3,
475  NEON = 0x4,
476  MSA = 0x5,
477 #if defined EIGEN_VECTORIZE_SSE
478  Target = SSE
479 #elif defined EIGEN_VECTORIZE_ALTIVEC
480  Target = AltiVec
481 #elif defined EIGEN_VECTORIZE_VSX
482  Target = VSX
483 #elif defined EIGEN_VECTORIZE_NEON
484  Target = NEON
485 #elif defined EIGEN_VECTORIZE_MSA
486  Target = MSA
487 #else
488  Target = Generic
489 #endif
490  };
491 }
492 
495 enum ProductImplType
496 { DefaultProduct=0, LazyProduct, AliasFreeProduct, CoeffBasedProductMode, LazyCoeffBasedProductMode, OuterProduct, InnerProduct, GemvProduct, GemmProduct };
497 
500 enum Action {GetAction, SetAction};
501 
503 struct Dense {};
504 
506 struct Sparse {};
507 
509 struct SolverStorage {};
510 
513 
516 
518 struct MatrixXpr {};
519 
521 struct ArrayXpr {};
522 
523 // An evaluator must define its shape. By default, it can be one of the following:
524 struct DenseShape { static std::string debugName() { return "DenseShape"; } };
525 struct SolverShape { static std::string debugName() { return "SolverShape"; } };
526 struct HomogeneousShape { static std::string debugName() { return "HomogeneousShape"; } };
527 struct DiagonalShape { static std::string debugName() { return "DiagonalShape"; } };
528 struct BandShape { static std::string debugName() { return "BandShape"; } };
529 struct TriangularShape { static std::string debugName() { return "TriangularShape"; } };
530 struct SelfAdjointShape { static std::string debugName() { return "SelfAdjointShape"; } };
531 struct PermutationShape { static std::string debugName() { return "PermutationShape"; } };
532 struct TranspositionsShape { static std::string debugName() { return "TranspositionsShape"; } };
533 struct SparseShape { static std::string debugName() { return "SparseShape"; } };
534 
535 namespace internal {
536 
537  // random access iterators based on coeff*() accessors.
538 struct IndexBased {};
539 
540 // evaluator based on iterators to access coefficients.
541 struct IteratorBased {};
542 
546 enum ComparisonName {
547  cmp_EQ = 0,
548  cmp_LT = 1,
549  cmp_LE = 2,
550  cmp_UNORD = 3,
551  cmp_NEQ = 4,
552  cmp_GT = 5,
553  cmp_GE = 6
554 };
555 } // end namespace internal
556 
557 } // end namespace Eigen
558 
559 #endif // EIGEN_CONSTANTS_H
Eigen::NumericalIssue
@ NumericalIssue
Definition: Constants.h:443
Eigen::HugeCost
const int HugeCost
Definition: Constants.h:43
Eigen::MatrixXpr
Definition: Constants.h:518
Eigen::FullPivHouseholderQRPreconditioner
@ FullPivHouseholderQRPreconditioner
Definition: Constants.h:430
Eigen::Symmetric
@ Symmetric
Definition: Constants.h:226
Eigen
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
Eigen::BAx_lx
@ BAx_lx
Definition: Constants.h:415
Eigen::SolverShape
Definition: Constants.h:525
Eigen::ComputeFullV
@ ComputeFullV
Definition: Constants.h:396
Eigen::UndefinedIncr
const int UndefinedIncr
Definition: Constants.h:30
Eigen::UpLoType
UpLoType
Definition: Constants.h:206
Eigen::DenseShape
Definition: Constants.h:524
Eigen::Affine
@ Affine
Definition: Constants.h:459
Eigen::Horizontal
@ Horizontal
Definition: Constants.h:266
Eigen::Sparse
Definition: Constants.h:506
Eigen::Unaligned
@ Unaligned
Definition: Constants.h:232
Eigen::EvalBeforeAssigningBit
EIGEN_DEPRECATED const unsigned int EvalBeforeAssigningBit
Definition: Constants.h:75
Eigen::RowMajorBit
const unsigned int RowMajorBit
Definition: Constants.h:65
Eigen::SideType
SideType
Definition: Constants.h:329
Eigen::UnitUpper
@ UnitUpper
Definition: Constants.h:218
Eigen::CompressedAccessBit
const unsigned int CompressedAccessBit
Definition: Constants.h:190
Eigen::Upper
@ Upper
Definition: Constants.h:210
Eigen::ComputeFullU
@ ComputeFullU
Definition: Constants.h:392
Eigen::Success
@ Success
Definition: Constants.h:441
Eigen::BandShape
Definition: Constants.h:528
Eigen::DirectionType
DirectionType
Definition: Constants.h:260
Eigen::RowMajor
@ RowMajor
Definition: Constants.h:320
Eigen::PropagateFast
@ PropagateFast
Definition: Constants.h:340
Eigen::ColPivHouseholderQRPreconditioner
@ ColPivHouseholderQRPreconditioner
Definition: Constants.h:428
Eigen::ComputeEigenvectors
@ ComputeEigenvectors
Definition: Constants.h:404
Eigen::DontAlign
@ DontAlign
Definition: Constants.h:324
Eigen::DirectAccessBit
const unsigned int DirectAccessBit
Definition: Constants.h:154
Eigen::StorageOptions
StorageOptions
Definition: Constants.h:316
Eigen::PacketAccessBit
const unsigned int PacketAccessBit
Definition: Constants.h:93
Eigen::OnTheLeft
@ OnTheLeft
Definition: Constants.h:331
Eigen::ArrayXpr
Definition: Constants.h:521
Eigen::StrictlyUpper
@ StrictlyUpper
Definition: Constants.h:222
Eigen::DirectAccessors
@ DirectAccessors
Definition: Constants.h:379
Eigen::NoConvergence
@ NoConvergence
Definition: Constants.h:445
Eigen::PropagateNaN
@ PropagateNaN
Definition: Constants.h:342
Eigen::LvalueBit
const unsigned int LvalueBit
Definition: Constants.h:143
Eigen::Isometry
@ Isometry
Definition: Constants.h:456
Eigen::SolverStorage
Definition: Constants.h:509
Eigen::ComputeThinU
@ ComputeThinU
Definition: Constants.h:394
Eigen::TransformTraits
TransformTraits
Definition: Constants.h:454
Eigen::ZeroDiag
@ ZeroDiag
Definition: Constants.h:214
Eigen::Dynamic
const int Dynamic
Definition: Constants.h:21
Eigen::HouseholderQRPreconditioner
@ HouseholderQRPreconditioner
Definition: Constants.h:426
Eigen::SparseShape
Definition: Constants.h:533
Eigen::HomogeneousShape
Definition: Constants.h:526
Eigen::Ax_lBx
@ Ax_lBx
Definition: Constants.h:409
Eigen::internal::IteratorBased
Definition: Constants.h:541
Eigen::Projective
@ Projective
Definition: Constants.h:463
Eigen::StrictlyLower
@ StrictlyLower
Definition: Constants.h:220
Eigen::EigenvaluesOnly
@ EigenvaluesOnly
Definition: Constants.h:401
Eigen::Aligned8
@ Aligned8
Definition: Constants.h:233
Eigen::AutoAlign
@ AutoAlign
Definition: Constants.h:322
Eigen::Lower
@ Lower
Definition: Constants.h:208
Eigen::Vertical
@ Vertical
Definition: Constants.h:263
Eigen::OnTheRight
@ OnTheRight
Definition: Constants.h:333
Eigen::Aligned128
@ Aligned128
Definition: Constants.h:237
Eigen::NoQRPreconditioner
@ NoQRPreconditioner
Definition: Constants.h:424
Eigen::ReadOnlyAccessors
@ ReadOnlyAccessors
Definition: Constants.h:375
Eigen::NaNPropagationOptions
NaNPropagationOptions
Definition: Constants.h:338
Eigen::Aligned16
@ Aligned16
Definition: Constants.h:234
Eigen::LinearAccessBit
const unsigned int LinearAccessBit
Definition: Constants.h:129
Eigen::DecompositionOptions
DecompositionOptions
Definition: Constants.h:386
Eigen::ComputeThinV
@ ComputeThinV
Definition: Constants.h:398
Eigen::PermutationStorage
Definition: Constants.h:512
Eigen::AlignmentType
AlignmentType
Definition: Constants.h:231
Eigen::TriangularShape
Definition: Constants.h:529
Eigen::AlignedBit
EIGEN_DEPRECATED const unsigned int AlignedBit
Definition: Constants.h:166
Eigen::SelfAdjointShape
Definition: Constants.h:530
Eigen::QRPreconditioners
QRPreconditioners
Definition: Constants.h:422
Eigen::DirectWriteAccessors
@ DirectWriteAccessors
Definition: Constants.h:381
Eigen::TranspositionsStorage
Definition: Constants.h:515
Eigen::ABx_lx
@ ABx_lx
Definition: Constants.h:412
Eigen::BothDirections
@ BothDirections
Definition: Constants.h:269
Eigen::InvalidInput
@ InvalidInput
Definition: Constants.h:448
Eigen::DynamicIndex
const int DynamicIndex
Definition: Constants.h:26
Eigen::AffineCompact
@ AffineCompact
Definition: Constants.h:461
Eigen::ColMajor
@ ColMajor
Definition: Constants.h:318
Eigen::NoPreferredStorageOrderBit
const unsigned int NoPreferredStorageOrderBit
Definition: Constants.h:177
Eigen::EvalBeforeNestingBit
const unsigned int EvalBeforeNestingBit
Definition: Constants.h:69
Eigen::ComputationInfo
ComputationInfo
Definition: Constants.h:439
Eigen::WriteAccessors
@ WriteAccessors
Definition: Constants.h:377
Eigen::UnitLower
@ UnitLower
Definition: Constants.h:216
Eigen::Aligned32
@ Aligned32
Definition: Constants.h:235
Eigen::internal::IndexBased
Definition: Constants.h:538
Eigen::Infinity
const int Infinity
Definition: Constants.h:35
Eigen::Aligned64
@ Aligned64
Definition: Constants.h:236
Eigen::AccessorLevels
AccessorLevels
Definition: Constants.h:373
Eigen::SelfAdjoint
@ SelfAdjoint
Definition: Constants.h:224
Eigen::PropagateNumbers
@ PropagateNumbers
Definition: Constants.h:344
Eigen::UnitDiag
@ UnitDiag
Definition: Constants.h:212
Eigen::TranspositionsShape
Definition: Constants.h:532
Eigen::Aligned
@ Aligned
Definition: Constants.h:239
Eigen::Dense
Definition: Constants.h:503
Eigen::DiagonalShape
Definition: Constants.h:527
Eigen::PermutationShape
Definition: Constants.h:531