> For the complete documentation index, see [llms.txt](https://docs.essencefinance.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.essencefinance.io/development/smart-contracts/libs/uintarrayops.md).

# UintArrayOps

## Functions

### sum

```solidity
function sum(
    uint256[] array
) internal returns (uint256 _sum)
```

#### Parameters

| Name    | Type       | Description |
| ------- | ---------- | ----------- |
| `array` | uint256\[] |             |

### signedDifference

```solidity
function signedDifference(
    uint256[] a,
    uint256[] b
) internal returns (int256[] _difference)
```

#### Parameters

| Name | Type       | Description |
| ---- | ---------- | ----------- |
| `a`  | uint256\[] |             |
| `b`  | uint256\[] |             |

### positiveDifference

```solidity
function positiveDifference(
    uint256[] a,
    uint256[] b
) internal returns (uint256[] _positiveDifference)
```

given two int arrays a & b, returns an array c such that c\[i] = a\[i] - b\[i], with negative values truncated to 0

#### Parameters

| Name | Type       | Description |
| ---- | ---------- | ----------- |
| `a`  | uint256\[] |             |
| `b`  | uint256\[] |             |
