1
// This file is part of Eigen, a lightweight C++ template library
4
// Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
5
// Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
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.
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.
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.
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/>.
27
/* All the parameters defined in this file can be specialized in the
28
* architecture specific files, and/or by the user.
31
#ifndef EIGEN_DEFAULT_SETTINGS_H
32
#define EIGEN_DEFAULT_SETTINGS_H
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
38
#ifndef EIGEN_UNROLLING_LIMIT
39
#define EIGEN_UNROLLING_LIMIT 100
42
/** Defines the threshold between a "small" and a "large" matrix.
43
* This threshold is mainly used to select the proper product implementation.
45
#ifndef EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD
46
#define EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD 8
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.
52
#ifndef EIGEN_TUNE_TRIANGULAR_PANEL_WIDTH
53
#define EIGEN_TUNE_TRIANGULAR_PANEL_WIDTH 8
57
/** Defines the default number of registers available for that architecture.
58
* Currently it must be 8 or 16. Other values will fail.
60
#ifndef EIGEN_ARCH_DEFAULT_NUMBER_OF_REGISTERS
61
#define EIGEN_ARCH_DEFAULT_NUMBER_OF_REGISTERS 8
64
#endif // EIGEN_DEFAULT_SETTINGS_H