Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

nObs needs to be at start of data block #26

Open
aylapear opened this issue Oct 12, 2023 · 0 comments
Open

nObs needs to be at start of data block #26

aylapear opened this issue Oct 12, 2023 · 0 comments

Comments

@aylapear
Copy link
Member

The output of data block needs to have nObs at the start.

Current output:

> mod_data <- nlist::as_nlist(list(
+   X = c(1L, 2L, 3L, 4L),
+   nObs = 4L
+ ))
> x <- data_block(mod_data)
> cat(x)
data {
  int X[nObs];
  int nObs;
}

Needs to be

> mod_data <- nlist::as_nlist(list(
+   X = c(1L, 2L, 3L, 4L),
+   nObs = 4L
+ ))
> x <- data_block(mod_data)
> cat(x)
data {
  int nObs;
  int X[nObs];
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant