matrixdiagcopy: Copy the upper matrix triangle to the lower one

Description Usage Arguments Value Examples

View source: R/tools.R

Description

Copy the upper matrix triangle to the lower one

Usage

1

Arguments

.mat

Matrix.

Value

Matrix with its upper tri part copied to the lower tri part.

Examples

1
2
3
4
5
mat <- matrix(0, 3, 3)
mat
mat[1, 3] <- 1
mat <- immunarch:::matrixdiagcopy(mat)
mat

abrown435/immunarch-test documentation built on July 29, 2020, 12:04 a.m.