00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef TYPES_HPP
00020 #define TYPES_HPP
00021
00022 #include <boost/numeric/ublas/vector.hpp>
00023 #include <boost/numeric/ublas/matrix.hpp>
00024 #include <boost/numeric/ublas/triangular.hpp>
00025 #include <boost/numeric/ublas/symmetric.hpp>
00026 #include <boost/call_traits.hpp>
00027
00028
00029 namespace ublas = boost::numeric::ublas;
00030
00036 namespace Types {
00037
00039 typedef double RValue;
00040
00042 typedef boost::call_traits<RValue>::param_type RValueP;
00043
00045 typedef double RParam;
00046
00050 typedef ublas::vector<RValue> vector;
00051
00055 typedef boost::call_traits<vector>::param_type Input;
00056
00060 typedef RValue OutputT;
00061
00065 typedef boost::call_traits<OutputT>::param_type Output;
00066
00067
00069 typedef RValue Activation;
00070
00072 typedef ublas::matrix<RValue,ublas::column_major> Matrix;
00073
00075 typedef ublas::symmetric_matrix<RValue,ublas::upper> SymMatrix;
00076
00078 typedef ublas::triangular_matrix<RValue,ublas::upper> UTMatrix;
00079
00080
00081 };
00082
00083 #endif