PARFOR slicing of user-defined objects
Ältere Kommentare anzeigen
I have a user-defined class with its own overloaded subsref and subsasgn methods to define indexing expressions like A(:,:,i). My question is, how would parfor treat a loop like the following with respect to slicing,
parfor i=1:N
x(:,i)=some_function( A(:,:,i) );
end
Will my object A be sliced as a normal numeric array would, and if so how is my overloaded subsref/subsasgn method involved in this process? Will parfor execute my subsref method when it tries to extract a chunk A(:,:,m:n) to send to the workers?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Parallel for-Loops (parfor) finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!