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

libalgebra-demo/libalgebra/basis_traits.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 #pragma once
00014 #ifndef basis_traits_h__
00015 #define basis_traits_h__
00016 
00017 
00022 enum basis_product_trait
00023 {
00024         Without_Degree,
00025         With_Degree,
00026         No_Product
00027 };
00028 
00030 
00033 template <
00034         basis_product_trait trait = Without_Degree,
00035         DEG no_letters = 0,
00036         DEG max_degree = 0>
00037 struct basis_traits
00038 {
00039 
00042         static const DEG NO_LETTERS = no_letters;       
00044         static const basis_product_trait PRODUCT_TYPE = trait;
00046         static const DEG MAX_DEGREE = (trait == With_Degree)? max_degree : DEG(0);
00047 
00048 };
00049 
00050 #endif // basis_traits_h__

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