Code covered by the BSD License  

Highlights from
Statistical Learning Toolbox

from Statistical Learning Toolbox by Dahua Lin
Functions for statistical learning, pattern recognition and computer vision, covering many topics.

Description of install_cppcores
Home > sltoolbox > install_cppcores.m

install_cppcores

PURPOSE ^

mex ALL cpp cores in sltoolbox

SYNOPSIS ^

function install_cppcores()

DESCRIPTION ^

 mex ALL cpp cores in sltoolbox
 Note those relying on third-party libraries are not involved here
 such as annsearch, which need to be mex separately.

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:

SOURCE CODE ^

0001 function install_cppcores()
0002 % mex ALL cpp cores in sltoolbox
0003 % Note those relying on third-party libraries are not involved here
0004 % such as annsearch, which need to be mex separately.
0005 
0006 % core\pwcalc_core.cpp
0007 % core\pwdiff_core.cpp
0008 % core\rowcolop_core.cpp
0009 % core\vecop_core.cpp
0010 % discrete\histmetricpw_core.cpp
0011 % utils_ex\win32guid_core.cpp
0012 
0013 srcs = { ...
0014     'core', 'pwcalc_core.cpp'; ...
0015     'core', 'pwdiff_core.cpp'; ...
0016     'core', 'rowcolop_core.cpp'; ...
0017     'core', 'vecop_core.cpp'; ...
0018     'discrete', 'histmetricpw_core.cpp'; ...
0019     'utils_ex', 'win32guid_core.cpp'};
0020     
0021 n = size(srcs, 1);
0022 for i = 1 : n
0023    subdir = srcs{i, 1};
0024    srcfn = srcs{i, 2};
0025    
0026    fprintf('Processing %s\\%s ...\n', subdir, srcfn);
0027    
0028    cd(subdir);
0029    mex('-O', srcfn);
0030    cd('..');
0031 
0032 end
0033

Generated on Wed 20-Sep-2006 12:43:11 by m2html © 2003

Contact us at files@mathworks.com