-
Notifications
You must be signed in to change notification settings - Fork 11
gh-486: run individual iternorms
on ell blocks
#591
New issue
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needs ncorr
to be a list, and -
every block will need it's own stack of ncorr[i] previous iterations
But I don't think it's that bad — if you figure out the block boundaries in alm beforehand, you need to iterate over them (say k1, k2) zipped with each individual j, and you can update the stack of y with j and z[k1 : k2]
That's why we rearrange the alm — now the block between l1 and l2 is contiguous, so you can cut a slice out of z
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ntessore could you look at this and see if this is the right direction? Thanks!
alm = _multalm(z, s) | ||
|
||
# add the mean of the conditional distribution | ||
y = np.zeros((n * (n + 1) // 2, ncorr), dtype=np.complex128) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that y
is has a dimension ncorr
, should be initialised inside the loop or should it be given the dimension ncorrs
.
for i in range(ncorr): | ||
# calculate ks | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am thinking that this should be possible.
I'll take this one on now that fields has been refactored. |
Description
Closes: #486
Checks