BayesOpt
specialtypes.hpp
Go to the documentation of this file.
1 
2 /*
3 -------------------------------------------------------------------------
4  This file is part of BayesOpt, an efficient C++ library for
5  Bayesian optimization.
6 
7  Copyright (C) 2011-2015 Ruben Martinez-Cantin <rmcantin@unizar.es>
8 
9  BayesOpt is free software: you can redistribute it and/or modify it
10  under the terms of the GNU Affero General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  BayesOpt is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU Affero General Public License for more details.
18 
19  You should have received a copy of the GNU Affero General Public License
20  along with BayesOpt. If not, see <http://www.gnu.org/licenses/>.
21 ------------------------------------------------------------------------
22 */
23 
24 #ifndef __SPECIALTYPES_HPP__
25 #define __SPECIALTYPES_HPP__
26 
27 #include <boost/numeric/ublas/matrix.hpp>
28 //#include <boost/numeric/ublas/matrix_proxy.hpp>
29 #include <boost/numeric/ublas/vector.hpp>
30 #include <boost/numeric/ublas/io.hpp>
31 
32 typedef boost::numeric::ublas::vector<int> vectori;
33 typedef boost::numeric::ublas::vector<double> vectord;
34 typedef boost::numeric::ublas::zero_vector<double> zvectord;
35 typedef boost::numeric::ublas::scalar_vector<double> svectord;
36 typedef boost::numeric::ublas::matrix<double> matrixd;
37 typedef boost::numeric::ublas::zero_matrix<double> zmatrixd;
38 
39 typedef std::vector<vectord> vecOfvec;
40 
41 // Surprisingly, this is the most efficient version of a growing
42 // matrix for uBlas, but I leave here the old experiments because it
43 // might change in the future.
44 typedef boost::numeric::ublas::matrix<double> covMatrix;
45 
46 // typedef boost::numeric::ublas::bounded_matrix<double, MAX_ITERATIONS,
47 // MAX_ITERATIONS> covMatrix;
48 
49 // typedef boost::numeric::ublas::symmetric_matrix<double,lower,row_major,
50 // bounded_array<double,90000> > covMatrix;
51 
52 #endif