A library for calculating the maximum value of a two-dimensional array.
1. Functions
1.1. max
function max(
uint256[][] self
) internal returns (uint256 index1, uint256 index2, uint256 value)
Take the maximum value and index in a two-dimensional array
Parameters:
Name | Type | Description |
---|---|---|
self |
uint256[][] | Two-dimensional array |
Return Values:
Name | Type | Description |
---|---|---|
index1 |
uint256 | One-dimensional index |
index2 |
uint256 | Two-dimensional index |
value |
uint256 | Maximum value |