~choreonoid/choreonoid/debian

« back to all changes in this revision

Viewing changes to thirdparty/eigen3/Eigen/src/Core/arch/Default/Settings.h

  • Committer: Thomas Moulard
  • Date: 2012-10-23 12:43:24 UTC
  • Revision ID: git-v1:351cf736ad49bc7a9a7b9767dee760a013517a5d
Tags: upstream/1.1.0
ImportedĀ UpstreamĀ versionĀ 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This file is part of Eigen, a lightweight C++ template library
 
2
// for linear algebra.
 
3
//
 
4
// Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
 
5
// Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
 
6
//
 
7
// Eigen is free software; you can redistribute it and/or
 
8
// modify it under the terms of the GNU Lesser General Public
 
9
// License as published by the Free Software Foundation; either
 
10
// version 3 of the License, or (at your option) any later version.
 
11
//
 
12
// Alternatively, you can redistribute it and/or
 
13
// modify it under the terms of the GNU General Public License as
 
14
// published by the Free Software Foundation; either version 2 of
 
15
// the License, or (at your option) any later version.
 
16
//
 
17
// Eigen is distributed in the hope that it will be useful, but WITHOUT ANY
 
18
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
19
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License or the
 
20
// GNU General Public License for more details.
 
21
//
 
22
// You should have received a copy of the GNU Lesser General Public
 
23
// License and a copy of the GNU General Public License along with
 
24
// Eigen. If not, see <http://www.gnu.org/licenses/>.
 
25
 
 
26
 
 
27
/* All the parameters defined in this file can be specialized in the
 
28
 * architecture specific files, and/or by the user.
 
29
 * More to come... */
 
30
 
 
31
#ifndef EIGEN_DEFAULT_SETTINGS_H
 
32
#define EIGEN_DEFAULT_SETTINGS_H
 
33
 
 
34
/** Defines the maximal loop size to enable meta unrolling of loops.
 
35
  * Note that the value here is expressed in Eigen's own notion of "number of FLOPS",
 
36
  * it does not correspond to the number of iterations or the number of instructions
 
37
  */
 
38
#ifndef EIGEN_UNROLLING_LIMIT
 
39
#define EIGEN_UNROLLING_LIMIT 100
 
40
#endif
 
41
 
 
42
/** Defines the threshold between a "small" and a "large" matrix.
 
43
  * This threshold is mainly used to select the proper product implementation.
 
44
  */
 
45
#ifndef EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD
 
46
#define EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD 8
 
47
#endif
 
48
 
 
49
/** Defines the maximal width of the blocks used in the triangular product and solver
 
50
  * for vectors (level 2 blas xTRMV and xTRSV). The default is 8.
 
51
  */
 
52
#ifndef EIGEN_TUNE_TRIANGULAR_PANEL_WIDTH
 
53
#define EIGEN_TUNE_TRIANGULAR_PANEL_WIDTH 8
 
54
#endif
 
55
 
 
56
 
 
57
/** Defines the default number of registers available for that architecture.
 
58
  * Currently it must be 8 or 16. Other values will fail.
 
59
  */
 
60
#ifndef EIGEN_ARCH_DEFAULT_NUMBER_OF_REGISTERS
 
61
#define EIGEN_ARCH_DEFAULT_NUMBER_OF_REGISTERS 8
 
62
#endif
 
63
 
 
64
#endif // EIGEN_DEFAULT_SETTINGS_H