offdiag: Extracting the off-diagonal part of A

View source: R/linalg.R

offdiagR Documentation

Extracting the off-diagonal part of A

Description

Extracting the off-diagonal part of A

Usage

offdiag(A, as.vector = FALSE)

Arguments

A

a rectangular matrix

as.vector

if FALSE, a matrix with main diagonal set to 0 is returned otherwise, a vector of offdiagonal entries is returned


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.