repeat_matrix: Repeat a matrix along the diagonal.

View source: R/inla-idx.R

repeat_matrixR Documentation

Repeat a matrix along the diagonal.

Description

The output should have dimensions 'dim(M) * n'.

Usage

repeat_matrix(M, n)

Arguments

M

A matrix.

n

The number of times to be repeated.

Value

A repeated matrix.


athowes/multi.utils documentation built on July 20, 2024, 10:57 p.m.