---
name: "MPE_Decomp1d"
section: "4"
platform: "linux"
package: "mpi-doc"
version: "1.2.7-9.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/MPE_Decomp1d"
---

# MPE\_Decomp1d(4)

Compute a balanced decomposition of a 1-D array

## NAME

MPE\_Decomp1d -  Compute a balanced decomposition of a 1-D array

## SYNOPSIS

```
int MPE_Decomp1d( n, size, rank, s, e )
int n, size, rank, *s, *e;
```

## INPUT PARAMETERS

- **n**

  \- Length of the array

- **size**

  \- Number of processors in decomposition

- **rank**

  \- Rank of this processor in the decomposition (0 \<= rank \< size)

## OUTPUT PARAMETERS

- **s,e**

  \- Array indices are s:e, with the original array considered as 1:n.

## LOCATION

decomp.c
