Used to reduce array dimensions by replacing A(x,y,z) by A*(x,pair.index(y,z))

pair.index(u, v)

Arguments

u

positive integer scalar

v

positive integer scalar

Value

integer scalar

Author

Murray Jorgensen

Examples

pair.index(11,17)
#> [1] 131
pair.index(2,12)
#> [1] 57