Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

Composite

여러 워커에 분산되지 않은 변수를 클라이언트에서 액세스

생성자

Composite

설명

spmd 문을 실행하는 워커에 있는 변수는 클라이언트에서 Composite 객체로 액세스할 수 있습니다. Composite는 각 워커에 대해 하나의 요소를 가진 셀형 배열과 유사합니다. 따라서 Composite C의 경우 다음과 같습니다.

C{1} represents value of C on worker1
C{2} represents value of C on worker2
etc.

spmd 문이 Composite를 자동으로 생성하므로 명령문이 완료된 후 액세스할 수 있습니다. 또한 Composite 함수를 사용하여 명시적으로 Composite를 생성할 수도 있습니다.

메서드

existCheck whether Composite is defined on workers
gatherTransfer distributed array, Composite object, or gpuArray object to local workspace
subsasgnSubscripted assignment for Composite
subsrefSubscripted reference for Composite

Composite 객체의 다른 메서드는 다음과 같은 MATLAB® 배열 함수와 유사하게 동작합니다.

dispComposite 표시
end마지막 Composite 인덱스를 나타냄
isemptyComposite가 비어 있는지 여부 결정
lengthComposite의 길이
ndimsComposite 차원 수
numelComposite의 요소 개수
sizeComposite 차원

버전 내역

R2008b에 개발됨