Skip to content

Conversation

Saransh-cpp
Copy link
Member

Description

Closes: #486

Checks

  • Is your code passing linting?
  • Is your code passing tests?
  • Have you added additional tests (if required)?
  • Have you modified/extended the documentation (if required)?
  • Have you added a one-liner changelog entry above (if required)?

@Saransh-cpp Saransh-cpp added maintenance Maintenance: refactoring, typos, etc. performance Performance improvements or regressions labels Mar 24, 2025
@Saransh-cpp Saransh-cpp self-assigned this Mar 24, 2025
Copy link
Member Author

@Saransh-cpp Saransh-cpp left a 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

Copy link
Member Author

@Saransh-cpp Saransh-cpp left a 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)
Copy link
Member Author

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.

Comment on lines +442 to +444
for i in range(ncorr):
# calculate ks
pass
Copy link
Member Author

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.

@Saransh-cpp Saransh-cpp added the blocked The issue or pull request is blocked by something label May 30, 2025
@ntessore ntessore assigned ntessore and unassigned Saransh-cpp Oct 14, 2025
@ntessore
Copy link
Collaborator

I'll take this one on now that fields has been refactored.

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

Labels

blocked The issue or pull request is blocked by something maintenance Maintenance: refactoring, typos, etc. performance Performance improvements or regressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run individual iternorms on ell blocks

2 participants