• Main Page
  • Namespaces
  • Classes
  • Files
  • File List

RDE_lib2/alg_types2.h

00001 /* *************************************************************
00002 
00003 Copyright 2010 Terry Lyons, Stephen Buckley, Djalil Chafai, 
00004 Greg Gyurkó and Arend Janssen. 
00005 
00006 Distributed under the terms of the GNU General Public License, 
00007 Version 3. (See accompanying file License.txt)
00008 
00009 ************************************************************* */
00010 
00011 
00012 
00013 //  alg_types2.h : provides an interface to and sets consistent sets of basic algebraic types
00014 
00015 
00016 #pragma once
00017 
00018 #ifndef alg_types2_h__
00019 #define alg_types2_h__
00020 
00021 #include "mtl/mtl.h"
00022 #include "alg_types.h"
00023 
00024 namespace {
00025 template <typename SCALAR>
00026 struct matrix_types 
00027 {
00028         typedef mtl::dense1D<SCALAR> mtlVector;
00029         typedef typename mtl::matrix<SCALAR, mtl::rectangle<>, mtl::dense<>, mtl::row_major>::type mtlMatrix;
00030         typedef typename mtl::matrix<SCALAR, mtl::diagonal<>, mtl::packed<>, mtl::row_major>::type mtlDiagMat;
00031 };
00032 }
00033 
00034 template <unsigned D, unsigned W, coefficient_t F = Rational> 
00035 struct matrix_alg_types : alg_types < D, W, F >,  matrix_types < typename alg_types < D, W, F >::SCA > {};
00036 
00037 #endif // alg_types2_h__

Generated on Fri Jan 14 2011 17:50:33 for Rough Differential Equation Solver by  doxygen 1.7.1