Convert to array
to_ar(h, lag_max, u = TRUE)
h
Distance matrix.
lag_max
Maximum time lag.
u
Logical; TRUE if u_ar needs to be outputted.
A list of arrays of h and u.