mat.vectorization: Matrix vectorization

View source: R/mat.vectorization.R

mat.vectorizationR Documentation

Matrix vectorization

Description

Transform a matrix into a vector.

Usage

mat.vectorization(M, sym = FALSE, erase.diag = TRUE)

Arguments

M

an adjacency matrix or list of adjacency matrices.

sym

if true will vectorize only the lower triangle.

erase.diag

if true will not keep the diagonal of the matrix.

Details

Transform an adjacency matrix (symetric or not) into a vector.


SebastianSosa/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.