max_in_place - example of multi-threaded MEX function

버전 1.0.4 (10.3 KB) 작성자: Yair Altman
Example of a multi-threaded MEX function, that can easily be adapted
다운로드 수: 247
업데이트 날짜: 2018/7/19

라이선스 보기

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: http://UndocumentedMatlab.com/blog/multi-threaded-mex

인용 양식

Yair Altman (2024). max_in_place - example of multi-threaded MEX function (https://www.mathworks.com/matlabcentral/fileexchange/68237-max_in_place-example-of-multi-threaded-mex-function), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2017b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.4

Added reference to Dirk-Jan Kroon'ssubmissions

1.0.3

Yet another attempt to update the screenshot...

1.0.2

another attempt to upload a screenshot...

1.0.1

screenshot img

1.0.0