arrange_sigma: Extracting diagonal and upper off-diagonal elements of a...

View source: R/arrange_sigma.R

arrange_sigmaR Documentation

Extracting diagonal and upper off-diagonal elements of a squre matrix.

Description

Suppose x is a d \times d square matrix. This function extracts the diagonal and upper off-diagonal elements of a given square matrix.

Usage

arrange_sigma(x)

Arguments

x

a squre matrix.

Value

diagonal and upper off-diagonal elements of {x} that consist of {x}_{11},{x}_{12},\cdots,{x}_{1d},{x}_{21},{x}_{22},\cdots,{x}_{2d},\cdots,{x}_{dd} .

Author(s)

Mahdi Teimouri

Examples


x <- matrix( c( 0.4, -0.20, -0.20, 0.5 ), nrow = 2, ncol = 2 )
arrange_sigma(x)


mixbox documentation built on May 29, 2024, 3:58 a.m.

Related to arrange_sigma in mixbox...