![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
00001 #include "gurls++/optmatrix.h" 00002 00003 namespace gurls 00004 { 00005 00006 template<> 00007 GURLS_EXPORT OptMatrixBase::MatrixType getMatrixCellType<gMat2D<float> >() 00008 { 00009 return OptMatrixBase::FLOAT; 00010 } 00011 00012 template<> 00013 GURLS_EXPORT OptMatrixBase::MatrixType getMatrixCellType<gMat2D<double> >() 00014 { 00015 return OptMatrixBase::DOUBLE; 00016 } 00017 00018 template<> 00019 GURLS_EXPORT OptMatrixBase::MatrixType getMatrixCellType<const gMat2D<float> >() 00020 { 00021 return OptMatrixBase::FLOAT; 00022 } 00023 00024 template<> 00025 GURLS_EXPORT OptMatrixBase::MatrixType getMatrixCellType<const gMat2D<double> >() 00026 { 00027 return OptMatrixBase::DOUBLE; 00028 } 00029 00030 template<> 00031 GURLS_EXPORT OptMatrixBase::MatrixType getMatrixCellType<gMat2D<unsigned long> >() 00032 { 00033 return OptMatrixBase::ULONG; 00034 } 00035 00036 #ifdef _BGURLS 00037 00038 template<> 00039 GURLS_EXPORT OptMatrixBase::MatrixType getMatrixCellType<BigArray<float> >() 00040 { 00041 return OptMatrixBase::FLOAT; 00042 } 00043 00044 template<> 00045 GURLS_EXPORT OptMatrixBase::MatrixType getMatrixCellType<BigArray<double> >() 00046 { 00047 return OptMatrixBase::DOUBLE; 00048 } 00049 00050 template<> 00051 GURLS_EXPORT OptMatrixBase::MatrixType getMatrixCellType<BigArray<unsigned long> >() 00052 { 00053 return OptMatrixBase::ULONG; 00054 } 00055 00056 //template <> 00057 //GURLS_EXPORT bool OptMatrix <BigArray<float> >::hasBigArray() const 00058 //{ 00059 // return true; 00060 //} 00061 // 00062 //template <> 00063 //GURLS_EXPORT bool OptMatrix <BigArray<double> >::hasBigArray() const 00064 //{ 00065 // return true; 00066 //} 00067 // 00068 //template <> 00069 //GURLS_EXPORT bool OptMatrix <BigArray<unsigned long> >::hasBigArray() const 00070 //{ 00071 // return true; 00072 //} 00073 00074 #endif 00075 00076 }