add matrix_X argument

This commit is contained in:
Niclas
2026-03-11 09:56:15 +01:00
parent 8517c5534d
commit 14b4425570
2 changed files with 20 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ source(here::here("R", "singular_values.R"))
source(here::here("R", "graphon_distribution.R"))
# expr_to_label ----------------------------------------------------------------
# Convert a call or character to a nicely formatted character string.
# * If the user supplied a character, we keep it unchanged.
# * If the user supplied a call (e.g. quote(20 / sqrt(x))) we deparse it
@@ -17,6 +18,7 @@ expr_to_label <- function(expr) {
}
# smallest_sv_sequence ---------------------------------------------------------
#' Compute the smallest singular value of a sequence of matrices Q(K)
#'
#' @title Smallest singular values for a family of matrices Q(K)
@@ -149,10 +151,10 @@ smallest_sv_sequence <- function(
sample_X_fn = sampler_fn,
fv = fv,
Fv = Fv,
guard = guard
guard = guard,
scaled = FALSE
)
Q <- 1 /sqrt(n) * Q
sv_res <- compute_minmax_sv(Q)
if (!is.list(sv_res) || is.null(sv_res$smallest_singular_value)) {