Skip to content

Conversation

@philippdubach
Copy link

Replace nested loop implementation with np.ix_ based vectorized selection. Performance improvement: 10-36x speedup depending on matrix size.

Benchmarks (100 iterations):

  • n=20: 10x faster
  • n=50: 18x faster
  • n=100: 12x faster
  • n=200: 34x faster
  • n=500: 37x faster

All existing CLA tests pass with identical numerical results.

Replace nested loop implementation with np.ix_ based vectorized selection.
Performance improvement: 10-36x speedup depending on matrix size.

Benchmarks (100 iterations):
- n=20:  10x faster
- n=50:  18x faster
- n=100: 12x faster
- n=200: 34x faster
- n=500: 37x faster

All existing CLA tests pass with identical numerical results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant