max_in_place - example of multi-threaded MEX function

Versión 1.0.4 (10.3 KB) por Yair Altman
Example of a multi-threaded MEX function, that can easily be adapted
247 descargas
Actualizado 19 Jul 2018

Ver licencia

Max_in_place is a sample MEX file that shows a generic framework for multi-threaded processing in MEX functions.

Syntax: max_in_place(matrix1, matrix2)

The 2 input matrices must be real non-sparse and have the same number of elements. The matrix1 input is updated in-place (without memory reallocation) with the maximal value of corresponding elements in the two matrices.

Multi-threading is controlled via Matlab's builtin maxNumCompThreads function.
The code can easily be adapted for other processing types.

A detailed description is found at:

Citar como

Yair Altman (2024). max_in_place - example of multi-threaded MEX function (, MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2017b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Etiquetas Añadir etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión

Added reference to Dirk-Jan Kroon'ssubmissions


Yet another attempt to update the screenshot...


another attempt to upload a screenshot...


screenshot img