Skip to content

error in tolerance_svd when nu = 0 or nv = 0 #34

Description

@LukeMoraglia

Hey Derek,

When calling tolerance_svd() with nu = 0 or nv = 0, there are errors since svd_res$u and svd_res$v don't exist.

I'm not immediately sure the cleanest way to check for this and adjust the function. I'm happy to help if you want me to take a stab at it, but maybe you have a good idea of how to fix it.

Thanks,
Luke

small example

library(GSVD)
set.seed(42)
X <- matrix(sample.int(20, 20*3, replace = TRUE), 20, 3)
tolerance_svd(X, nu = 0, nv = 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions