Nothing
#' Linear positions of the entries of a strictly lower triangular matrix
#'
#' Returns the linear indices of the non-zero entries of a strictly lower
#' triangular matrix.
#'
#' @param n Dimension of a `n` by `n` square matrix.
#'
#' @return An integer vector of linear positions in column-major order.
#'
#' @examples
#' sltm_k(3)
#'
#' @noRd
#' @keywords internal
sltm_k <- function(n) {
if (!(n > 1)) stop("`n` must be greater than 1")
utils::combn(seq_len(n), 2, function(ij) {
ij2k(i = ij[2], j = ij[1], n)
})
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.