Skip to content

Low memory#475

Draft
M-Kusumgar wants to merge 10 commits into
masterfrom
low-memory
Draft

Low memory#475
M-Kusumgar wants to merge 10 commits into
masterfrom
low-memory

Conversation

@M-Kusumgar

Copy link
Copy Markdown
Contributor

No description provided.

@M-Kusumgar
M-Kusumgar marked this pull request as draft July 25, 2025 17:02
Comment thread R/tmb-model.R
Comment on lines +797 to +807
get_samples <- function(varnames) {
samples_list_new <- lapply(1:nsample, function(i) {
fit$obj$env$f(smp[i, ], order = 0, type = "double")
mget(varnames, envir = fit$obj$env$reportenv)
})
samples <- lapply(varnames, function(name) {
matrix(unlist(lapply(samples_list_new, `[[`, name)), ncol = nsample)
})
names(samples) <- varnames
samples
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the main difference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant