utils_rescale_laplacian: Rescale a Laplacian

Description Usage Arguments Value

View source: R/utils.R

Description

\loadmathjax

Rescales the Laplacian eigenvalues in -1,1, using lmax as largest eigenvalue.

Usage

1

Arguments

L

rank 2 array or sparse matrix

lmax

if NULL, compute largest eigenvalue with scipy.linalg.eisgh. If the eigendecomposition fails, lmax is set to 2 automatically. If scalar, use this value as largest eignevalue when rescaling.

Value

the rescaled Laplacian


rdinnager/rspektral documentation built on June 12, 2021, 1:26 a.m.