Skip to Main Content
High Performance Programming for Soft Computing
book

High Performance Programming for Soft Computing

by Oscar Montiel Ross, Roberto Sepulveda
February 2014
Intermediate to advanced content levelIntermediate to advanced
376 pages
11h 49m
English
CRC Press
Content preview from High Performance Programming for Soft Computing
92 High Performance Programming for Soft Computing
{
Result[1]+=(Data1[i]* Data2[i]);
}
}
// Set the thread finished variables
if(ThreadID[0]==1){ WaitForThread1 =0;}
if(ThreadID[0]==2){ WaitForThread2 =0;}
// explicit end thread, helps to ensure proper recovery of resources allocated for the thread
_endthreadex(0);
return0;
}
// The matlab mex function
void mexFunction(int nlhs, mxArray *plhs[],
int nrhs,const mxArray *prhs[])
{
double*Data1;// The input data
double*Data2;// The input data
double*Result;// The output data
mwSize Dcols, Drows; // Dimensions of input data
double**ThreadArgs1,**ThreadArgs2;// double pointer array to store all needed function ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Soft Computing and Its Applications, Volume One

Soft Computing and Its Applications, Volume One

Kumar S. Ray
Point-Based Graphics

Point-Based Graphics

Markus Gross, Hanspeter Pfister

Publisher Resources

ISBN: 9781466586017