이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
distributed
클라이언트에서 분산 배열의 요소에 액세스
생성자
일부 MATLAB® 함수에서 distributed
출력값을 지정해 distributed
객체를 만들 수도 있습니다. 다음 표에는 distributed
객체를 직접 만들 수 있는 사용 가능한 MATLAB 함수가 나와 있습니다. 자세한 내용은 함수 도움말 페이지의 확장 기능 섹션을 참조하십시오.
| distributed.cell |
| distibuted. colon |
| distributed. linspace |
| distributed. logspace |
| distributed.spalloc |
| distributed.speye |
| distributed.sprand |
| distributed.sprandn |
| |
|
설명
분산 배열은 병렬 풀의 워커 간에 분할된 배열을 나타냅니다. 분산 배열은 요소를 인덱싱하고 조작한다는 측면에서 일반 MATLAB 배열과 유사하지만 클라이언트에는 요소가 존재하지 않습니다.
spmd
문 내에서 만드는 공동분산 배열은 클라이언트에서 분산 배열로 액세스할 수 있습니다.
gather
함수를 사용하여 클라이언트 작업 공간으로 분산 배열을 가져올 수 있습니다.
메서드
classUnderlying | (Not recommended) Class of elements within gpuArray or distributed array |
distributed.cell | Create distributed cell array |
distributed.spalloc | Allocate space for sparse distributed matrix |
distributed.speye | Create distributed sparse identity matrix |
distributed.sprand | Create distributed sparse array of uniformly distributed pseudo-random values |
distributed.sprandn | Create distributed sparse array of normally distributed pseudo-random values |
gather | Transfer distributed array, Composite object, or
gpuArray object to local workspace |
isaUnderlying | (Not recommended) True if distributed array's underlying elements are of specified class |
isdistributed | True for distributed array |
tall | Convert distributed array to equivalent tall array |
write | Write distributed data to an output location |
분산 배열 메서드는 여기에 나열하기에는 너무 많습니다. 대부분은 내장 MATLAB 함수와 유사하고 동일하게 작동합니다. 분산 배열을 사용하여 MATLAB 함수 실행 항목을 참조하십시오.
이러한 메서드 중에는 배열 자체의 특성을 확인하기 위한 몇 가지 메서드도 있습니다. 대부분 동일한 이름의 MATLAB 함수와 비슷하게 동작합니다.
함수 | 설명 |
---|---|
isdistributed | 배열이 분산되어 있는지 표시 |
isreal | 배열 요소가 실수인지 표시 |
isUnderlyingType | 배열의 기본 데이터가 지정된 유형인지 확인 |
length | 벡터 또는 가장 큰 배열 차원의 길이 |
ndims | 배열의 차원 수 |
size | 배열 차원의 크기 |
underlyingType | 배열에 있는 기본 데이터의 클래스(데이터형) |
버전 내역
R2008a에 개발됨