Skip to main content

UintArrayOps

Functions

sum

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

Parameters

NameTypeDescription
arrayuint256[]

signedDifference

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

Parameters

NameTypeDescription
auint256[]
buint256[]

positiveDifference

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

NameTypeDescription
auint256[]
buint256[]