SourceForge Logo Tiny Vector Matrix library using Expression Templates Sourceforge Project Page

include/tvmet/tvmet.h
Go to the documentation of this file.
00001 /*
00002  * Tiny Vector Matrix Library
00003  * Dense Vector Matrix Libary of Tiny size using Expression Templates
00004  *
00005  * Copyright (C) 2001 - 2007 Olaf Petzold <opetzold@users.sourceforge.net>
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  * $Id: tvmet.h,v 1.22 2008/02/08 19:02:23 opetzold Exp $
00022  */
00023 
00024 #ifndef TVMET_H
00025 #define TVMET_H
00026 
00027 #include <tvmet/config.h>
00028 
00029 
00030 /***********************************************************************
00031  * Compiler specifics
00032  *
00033  * for other compiler see at:
00034  * http://predef.sourceforge.net/precomp.html#sec8
00035  ***********************************************************************/
00036 #if defined(__GNUC__)
00037 #  include <tvmet/config/config-gcc.h>
00038 #endif
00039 
00040 #if defined(__INTEL_COMPILER)
00041 #  include <tvmet/config/config-icc.h>
00042 #endif
00043 
00044 #if defined(__KCC)
00045 #  include <tvmet/config/config-kcc.h>
00046 #endif
00047 
00048 #if defined(__PGI)
00049 #  include <tvmet/config/config-pgi.h>
00050 #endif
00051 
00052 // vc7.1: 1310 and vc7.0 1300
00053 #if defined(_MSC_VER) && (_MSC_VER >= 1310)
00054 #  include <tvmet/config/config-vc71.h>
00055 #endif
00056 
00057 // diab
00058 #if defined(__DCC__)
00059 #  include <tvmet/config/config-dcc.h>
00060 #endif
00061 
00062 
00063 // give up for these cases
00064 #if !defined(TVMET_HAVE_MUTABLE)
00065 #  error "Your compiler doesn't support the mutable keyword! Giving up."
00066 #endif
00067 
00068 #if !defined(TVMET_HAVE_TYPENAME)
00069 #  error "Your compiler doesn't support the typename keyword! Giving up."
00070 #endif
00071 
00072 #if !defined(TVMET_HAVE_NAMESPACES)
00073 #  error "Your compiler doesn't support the namespace concept! Giving up."
00074 #endif
00075 
00076 #if !defined(TVMET_HAVE_PARTIAL_SPECIALIZATION)
00077 #  error "Your compiler doesn't support partial specialization! Giving up."
00078 #endif
00079 
00080 
00081 /*
00082  * other compiler specific stuff
00083  */
00084 
00093 #if !defined(TVMET_CXX_ALWAYS_INLINE)
00094 #define TVMET_CXX_ALWAYS_INLINE
00095 #endif
00096 
00097 
00098 /*
00099  * Complexity triggers, compiler and architecture specific.
00100  * If not defined, use defaults.
00101  */
00102 
00107 #if !defined(TVMET_COMPLEXITY_DEFAULT_TRIGGER)
00108 #  define TVMET_COMPLEXITY_DEFAULT_TRIGGER  1000
00109 #endif
00110 
00115 #if !defined(TVMET_COMPLEXITY_M_ASSIGN_TRIGGER)
00116 #  define TVMET_COMPLEXITY_M_ASSIGN_TRIGGER 8*8
00117 #endif
00118 
00125 #if !defined(TVMET_COMPLEXITY_MM_TRIGGER)
00126 #  define TVMET_COMPLEXITY_MM_TRIGGER   8*8
00127 #endif
00128 
00133 #if !defined(TVMET_COMPLEXITY_V_ASSIGN_TRIGGER)
00134 #  define TVMET_COMPLEXITY_V_ASSIGN_TRIGGER 8
00135 #endif
00136 
00143 #if !defined(TVMET_COMPLEXITY_MV_TRIGGER)
00144 #  define TVMET_COMPLEXITY_MV_TRIGGER   8*8
00145 #endif
00146 
00147 
00148 /***********************************************************************
00149  * other specials
00150  ***********************************************************************/
00151 #if defined(TVMET_HAVE_IEEE_MATH)
00152 #  define _ALL_SOURCE
00153 #  if !defined(_XOPEN_SOURCE)
00154 #    define _XOPEN_SOURCE
00155 #  endif
00156 #  if !defined(_XOPEN_SOURCE_EXTENDED)
00157 #    define _XOPEN_SOURCE_EXTENDED
00158 #  endif
00159 #endif
00160 
00161 
00183 #if !defined(TVMET_OPTIMIZE)
00184 #  undef  TVMET_CXX_ALWAYS_INLINE
00185 #  define TVMET_CXX_ALWAYS_INLINE
00186 #endif
00187 
00188 
00189 /***********************************************************************
00190  * Namespaces
00191  ***********************************************************************/
00192 
00193 
00225 /***********************************************************************
00226  * forwards
00227  ***********************************************************************/
00228 #if defined(TVMET_HAVE_COMPLEX)
00229 namespace std {
00230   template<class T> class complex;
00231 }
00232 #endif
00233 
00234 
00235 /***********************************************************************
00236  * other stuff
00237  ***********************************************************************/
00238 #include <tvmet/TvmetBase.h>
00239 
00240 
00241 #endif // TVMET_H
00242 
00243 // Local Variables:
00244 // mode:C++
00245 // tab-width:8
00246 // End:
00247 // LocalWords:  gnuc gcc's icc's std
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Author: