Compute vector of indices for efficient access to diagonal
of a square matrix
integer dimension of (square) matrix
integer vector of length n with indices (unidimensional) of
ind <- diag_ind(5)
Questions? Problems? Suggestions? Tweet to @rdrrHQian@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.