STK++ 0.9.13
STK_Constants.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright (C) 2004-2016 Serge Iovleff
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this program; if not, write to the
16 Free Software Foundation, Inc.,
17 59 Temple Place,
18 Suite 330,
19 Boston, MA 02111-1307
20 USA
21
22 Contact : S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
23*/
24
25/*
26 * Project: stkpp::stkernel
27 * created on: 14 sept. 2012
28 * Author: iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 **/
30
36#ifndef STK_CONSTANTS_H
37#define STK_CONSTANTS_H
38
39#include <climits>
40
41#ifndef MAXUNROLLVALUE
42#define MAXUNROLLVALUE 20 // unroll operations on fixed size containers
43#endif
44
45#ifndef MAXUNROLLSLICEVALUE
46#define MAXUNROLLSLICEVALUE 5 // unroll operations rows or columns on fixed size 2D containers
47#endif
48
49#ifndef MAXFIXEDSIZEVALUE
50#define MAXFIXEDSIZEVALUE 1024 // maximal fixed size that can be used automatically
51#endif
52
53
54namespace STK
55{
60#if defined(STKBASEARRAYS)
61const int baseIdx = STKBASEARRAYS;
62#else
63const int baseIdx = 0; // default is 0 based array
64#endif
65
71
77const int UnknownSize = INT_MAX;
81const int SqrtUnknownSize = (1 << (sizeof(int) * (CHAR_BIT/2)));
82
87
92
93} // namespace STK
94
95
96#endif /* STK_CONSTANTS_H */
#define MAXFIXEDSIZEVALUE
#define MAXUNROLLVALUE
#define MAXUNROLLSLICEVALUE
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
const int MaxUnroll
When don't unroll loops on fixed size containers if fixed size is greater than this value.
const int maxFixedSize
maximal size of fixed size containers This value is used when fixed size containers are automatically...
const int UnknownSize
This value means that an integer is not known at compile-time, and that instead the value is stored i...
const int baseIdx
base index of the containers created in STK++.
const int SqrtUnknownSize
Same as floor(sqrt(INT_MAX+1))
const int MaxUnrollSlice
This value means that when we unroll loops we go until MaxUnrollSlice.
The namespace STK is the main domain space of the Statistical ToolKit project.