drop0_killdiag: Set diagonal entries to zero and sparsify

View source: R/utils.R

drop0_killdiagR Documentation

Set diagonal entries to zero and sparsify

Description

Set the diagonal entries of a matrix to zero and convert it to sparse form.

Usage

drop0_killdiag(some_mat)

Arguments

some_mat

A square matrix.

Value

A sparse-form copy of some_mat with its diagonal entries set to zero.


motifcluster documentation built on Nov. 18, 2022, 9:06 a.m.