matrixdiagcopy: Copy the upper matrix triangle to the lower one

View source: R/tools.R

matrixdiagcopyR Documentation

Copy the upper matrix triangle to the lower one

Description

Copy the upper matrix triangle to the lower one

Usage

matrixdiagcopy(.mat)

Arguments

.mat

Matrix.

Value

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

Developer Examples

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


immunomind/immunarch documentation built on March 20, 2024, 12:01 p.m.