Changeset 662
- Timestamp:
- 10/15/09 12:07:25 (15 years ago)
- Location:
- library
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/itpp_ext.cpp
r661 r662 115 115 } 116 116 117 #if 0117 //#if 0 118 118 Gamma_RNG::Gamma_RNG (double a, double b) 119 119 { … … 317 317 } 318 318 319 #endif319 //#endif 320 320 std::string num2str (double d) 321 321 { -
library/bdm/itpp_ext.h
r661 r662 43 43 const double inf = std::numeric_limits<double>::infinity(); 44 44 45 #if 045 //#if 0 46 46 /*! 47 47 \brief Gamma distribution … … 91 91 }; 92 92 bool qr ( const mat &A, mat &R ); 93 #endif93 //#endif 94 94 //! reimplementation of matlab num2str 95 95 std::string num2str ( double d ); -
library/system/FindMatlab.cmake
r592 r662 64 64 65 65 FILE(GLOB _auto_matlab_prefixes "/usr/local/matlab*" "/opt/matlab*" "~/bin" ${MATLAB_ROOT}) 66 IF(APPLE) 67 FILE(GLOB _auto_matlab_prefixes "/Applications/MATLAB*") 68 ENDIF(APPLE) 66 69 67 70 IF(CMAKE_SIZEOF_VOID_P EQUAL 4) … … 73 76 SET(MATLAB_MEX_SUFFIX mexa64) 74 77 ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4) 78 79 IF(APPLE) 80 SET(_matlab_path_suffixes "bin/maci") 81 SET(MATLAB_MEX_SUFFIX mexmaci) 82 ENDIF(APPLE) 75 83 76 84 SET(_libmex_name "mex") … … 116 124 ENDFOREACH(_matlab_prefix) 117 125 126 # APPLE has system libmx.dylib which is prefrred over the matlab one -- hard code Matlab 127 IF(APPLE) 128 SET(MATLAB_MX_LIBRARY "${_matlab_libdir}/libmx.dylib") 129 ENDIF(APPLE) 130 118 131 SET(MATLAB_LIBRARIES 119 132 ${MATLAB_MEX_LIBRARY} … … 125 138 SET(MATLAB_FOUND 1) 126 139 MESSAGE(STATUS "Found Matlab arch ${MATLAB_MEX_SUFFIX} at ${MATLAB_INCLUDE_DIR}") 140 IF(APPLE) 141 MESSAGE(STATUS "MX at ${MATLAB_MX_LIBRARY}") 142 ENDIF(APPLE) 143 127 144 ELSE(MATLAB_INCLUDE_DIR AND MATLAB_LIBRARIES) 128 145 MESSAGE(STATUS "Matlab not found") -
library/system/SetBdmEnv.cmake
r623 r662 30 30 IF(APPLE) 31 31 IF(NOT ITPP_DIR) 32 SET(ITPP_DIR "${BDM_SOURCE_DIR}/ macosx/itpp-4.0.6")32 SET(ITPP_DIR "${BDM_SOURCE_DIR}/system/macosx/itpp-4.0.6") 33 33 ENDIF(NOT ITPP_DIR) 34 34 FIND_LIBRARY(FRAMEWORK_VECLIB vecLib) … … 51 51 FIND_PACKAGE(ACML COMPONENTS) 52 52 FIND_PACKAGE(Matlab COMPONENTS) 53 FIND_PROGRAM(MEX_COMPILER mex)54 53 55 54 IF(ITPP_FOUND) … … 122 121 123 122 MACRO(MEX FN) 124 IF(M EX_COMPILER)123 IF(MATLAB_FOUND) 125 124 INCLUDE_DIRECTORIES(${MATLAB_INCLUDE_DIR} "${BDM_SOURCE_DIR}/bdm") 126 125 LINK_DIRECTORIES("${BDM_SOURCE_DIR}/bdm") 126 IF(APPLE) 127 LINK_DIRECTORIES("/Applications/MATLAB_R2007b/bin/maci/") 128 ENDIF(APPLE) 127 129 IF(WIN32) 128 130 ADD_LIBRARY("${FN}.${MATLAB_MEX_SUFFIX}" MODULE ${FN}.cpp "${BDM_SOURCE_DIR}/system/mexFunction.def") … … 148 150 ## Additional libraries can be added to a macro 149 151 target_link_libraries ("${FN}.${MATLAB_MEX_SUFFIX}" ${ARGN}) 150 ENDIF(M EX_COMPILER)152 ENDIF(MATLAB_FOUND) 151 153 ENDMACRO(MEX) -
library/tests/arx_straux_test.cpp
r647 r662 27 27 // straux1(L, d, nu, L0, d0, nu0, belief, nbest, max_nrep, lambda, 28 28 // order_k); 29 iveco2;29 Array<str_aux> o2; 30 30 ivec o1 = straux1(Ld1,20, Ld0, 10, belief, nbest, nrep, lambda, k, o2); 31 31