Nothing
#' @importFrom Matrix triu
# frank matrix ---------------------------------------------------------
#' @name frank
#' @title Frank matrix of order \code{N}
#'
#' @description Frank matrix of order \code{N}. It is upper Hessenberg with
#' determinant 1.
#'
#' @param n order of the matrix
#' @param k If k is 1, the elements are reflected about the anti-diagonal.
#'
#' @return Frank matrix with ill-conditioned eigenvalues.
#'
#' @export
frank <- function(n, k = 0){
F <- minij(n)
F <- as.matrix(triu(F, -1))
if(k == 0){
p <- n:1
F <- t(F[p, p])
}
return(F)
}
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.