[ENH] vectorize CLA `_reduce_matrix` using `numpy` advanced indexing (#693)
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.
P
Philipp D. Dubach committed
da9f980ea8d46a8f5bfba3638604fe770228a7d5
Parent: 6d837f1
Committed by GitHub <noreply@github.com>
on 2/26/2026, 11:15:53 PM