I am using version 1.0.8 of the package.
The documentation (and message() from the function) says it calculates the "Eigenvalues of a 640x640 random matrix"; however, upon inspecting the source code, it is actually on a 600x600 matrix.
bm_matrix_fun_eigen = function(runs = 3, verbose = TRUE) {
b = 0
timings = data.frame(user = numeric(runs), system = 0, elapsed = 0,
test = "eigen", test_group = "matrix_fun",
stringsAsFactors = FALSE)
for (i in 1:runs) {
a = array(Rnorm(600 * 600), dim = c(600, 600))
invisible(gc())
timings[i, 1:3] = system.time({
b <- eigen(a, symmetric = FALSE, only.values = TRUE)$Value})[1:3] #nolint
}
if (verbose)
message(c("\tEigenvalues of a 640 x 640 random matrix", timings_mean(timings)))
timings
}
I am using version 1.0.8 of the package.
The documentation (and
message()from the function) says it calculates the "Eigenvalues of a 640x640 random matrix"; however, upon inspecting the source code, it is actually on a 600x600 matrix.