R/segTraj_repmat.R

Defines functions repmat

Documented in repmat

# repmat
#' repmat repeats a matrix
#' @param a the base matrix
#' @param n number of repetition in lines
#' @param m number of repetition in columns
#' @return a matrix with n repeats of a in lines et m in columns
repmat <- function(a,n,m) {kronecker(matrix(1,n,m),a)} 

Try the segclust2d package in your browser

Any scripts or data that you put into this service are public.

segclust2d documentation built on Oct. 11, 2021, 9:10 a.m.