Skip to content

revisit ordering of loops in declaration functions #17

Description

@paciorek

This shouldn't matter except for very large matrices/arrays, but if we have a matrix stored column major, we would want the looping in the declaration functions to loop over the rows in the inner loop.

If one writes a model like this:

for(i in 1:n)
  for(j in 1:m)
    y[i,j] ~ dfoo()

then the looping at the moment will be over columns in the inner loop.

This is presumably a minor efficiency issue, and we should not focus on it now.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions