Compute pivoted decomposition of routing matrix A into...

Compute vector of indices for efficient access to diagonal of a square matrix

1 | ```
diag_ind(n)
``` |

`n` |
integer dimension of (square) matrix |

integer vector of length n with indices (unidimensional) of square matrix

1 2 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.