mat2UT: Matrix to Upper Triangular Vector

View source: R/UT.R

mat2UTR Documentation

Matrix to Upper Triangular Vector

Description

Returns the vectorized upper triangle of a square matrix

Usage

mat2UT(x, diag = FALSE)

Arguments

x

A square matrix

diag

Get the diagonal values too? Default: FALSE

Value

The vectorized upper triangle of x.


fMRItools documentation built on June 10, 2025, 9:09 a.m.