types.hpp

00001 //
00002 //  Copyright (c) 2005-2007
00003 //  James N Knight
00004 //
00005 //  Permission to use, copy, modify, distribute and sell this software
00006 //  and its documentation for any purpose is hereby granted without fee,
00007 //  provided that the above copyright notice appear in all copies and
00008 //  that both that copyright notice and this permission notice appear
00009 //  in supporting documentation.  The authors make no representations
00010 //  about the suitability of this software for any purpose.
00011 //  It is provided "as is" without express or implied warranty.
00012 //
00013 //  
00014 // See http://homepages.inf.ed.ac.uk/svijayak/publications/vijayakumar-NeuCom2005.pdf
00015 // for the original publication of this algorithm.
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

Generated on Fri Jul 27 00:24:01 2007 for LWPR by  doxygen 1.5.1