types.h
00001 /* Copyright (C) 2003-2005  Martin Förg
00002 
00003  * This library is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU Lesser General Public
00005  * License as published by the Free Software Foundation; either
00006  * version 2.1 of the License, or (at your option) any later version.
00007  * 
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Lesser General Public License for more details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public
00014  * License along with this library; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00016  *
00017  * Contact:
00018  *   martin.o.foerg@googlemail.com
00019  *
00020  */
00021 
00022 #ifndef types_h
00023 #define types_h
00024 
00025 #ifndef HAVE_LIBMKL_INTEL_LP64
00026 #ifndef CBLAS_ENUM_DEFINED_H
00027    #define CBLAS_ENUM_DEFINED_H
00028    enum CBLAS_ORDER {CblasRowMajor=101, CblasColMajor=102 };
00029    enum CBLAS_TRANSPOSE {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113,
00030                          AtlasConj=114};
00031    enum CBLAS_UPLO  {CblasUpper=121, CblasLower=122};
00032    enum CBLAS_DIAG  {CblasNonUnit=131, CblasUnit=132};
00033    enum CBLAS_SIDE  {CblasLeft=141, CblasRight=142};
00034 #endif
00035 #define CBLAS_INDEX int
00036 
00037 #ifndef ATLAS_ENUM_H
00038    #define ATLAS_ENUM_H
00039    #define ATLAS_ORDER CBLAS_ORDER
00040       #define AtlasRowMajor CblasRowMajor
00041       #define AtlasColMajor CblasColMajor
00042    #define ATLAS_TRANS CBLAS_TRANSPOSE
00043       #define AtlasNoTrans CblasNoTrans
00044       #define AtlasTrans CblasTrans
00045       #define AtlasConjTrans CblasConjTrans
00046    #define ATLAS_UPLO CBLAS_UPLO
00047       #define AtlasUpper CblasUpper
00048       #define AtlasLower CblasLower
00049    #define ATLAS_DIAG CBLAS_DIAG
00050       #define AtlasNonUnit CblasNonUnit
00051       #define AtlasUnit CblasUnit
00052    #define ATLAS_SIDE CBLAS_SIDE
00053       #define AtlasLeft  CblasLeft
00054       #define AtlasRight CblasRight
00055 #endif
00056 #else
00057 #include "mkl_cblas.h"
00058 #endif
00059 
00060 namespace fmatvec {
00061 
00062   class Ref {
00063   };
00064 
00065   class Var {
00066   };
00067 
00068   template<int M> class Fixed {
00069   };
00070 
00071 //  class General {
00072 //  };
00073 //
00074 //  class GeneralBand {
00075 //  };
00076 //
00077 //  class Symmetric {
00078 //  };
00079 //
00080 //  class Diagonal {
00081 //  };
00082 //
00083 //  class Sparse {
00084 //  };
00085 //
00086 //  /*! 
00087 //   *  \brief Basic shape class for matrices.
00088 //   *
00089 //   * Class BasicType is the basic shape type.
00090 //   * */
00091 //  template<class Shape, class Mem>
00092 //  class Type {
00093 //  };
00094 
00100   class General {
00101   };
00102 
00108   class GeneralBand {
00109   };
00110 
00116   class Symmetric {
00117   };
00118 
00124   class Rotation {
00125   };
00126 
00132   class Diagonal {
00133   };
00134 
00140   class Sparse {
00141   };
00142 
00143 //  template<int M, int N>
00144 //  class GeneralFixed: public BasicType {
00145 //  };
00146 //
00147 //  template<int M>
00148 //  class SymmetricFixed: public BasicType {
00149 //  };
00150 //
00151 //  class GeneralVar: public BasicType {
00152 //  };
00153 //
00154 //  class SymmetricVar: public BasicType {
00155 //  };
00156 //
00157 //  template<int M>
00158 //  class GeneralFixedVar: public BasicType {
00159 //  };
00160 //
00161 //  template<int N>
00162 //  class GeneralVarFixed: public BasicType {
00163 //  };
00164 
00165 }
00166 
00167 #endif