We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, to set the field values for the ijk struct, I convert first to linear indexing.
lh = LazyRow(h,i + Ny*(j-1) + Nx*Ny * (k-1)); setproperty!(lh,:x,hx) setproperty!(lh,:y,hy) setproperty!(lh,:z,hz)
I wonder if there is a direct way:
lh = LazyRow(h,(i,j,k)); setproperty!(lh,:x,hx) setproperty!(lh,:y,hy) setproperty!(lh,:z,hz)
The text was updated successfully, but these errors were encountered:
Ah, LazyRow is actually a bit too low-level, because it assumes that the passed index type is the optimal one for the array you are using.
LazyRow
lh = LazyRows(t)[i, j, k]
is probably what you want. Keeping the issue open because the docs should probably get updated to make this clearer.
Sorry, something went wrong.
No branches or pull requests
Currently, to set the field values for the ijk struct, I convert first to linear indexing.
I wonder if there is a direct way:
The text was updated successfully, but these errors were encountered: