Example of a multi-threaded MEX function, that can easily be adapted
이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
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 (2026). max_in_place - example of multi-threaded MEX function (https://kr.mathworks.com/matlabcentral/fileexchange/68237-max_in_place-example-of-multi-threaded-mex-function), MATLAB Central File Exchange. 검색 날짜: .
