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)
Hey Derek,
When calling
tolerance_svd()withnu = 0ornv = 0, there are errors sincesvd_res$uandsvd_res$vdon'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