Skip to content

Conversation

@andrewkern
Copy link
Collaborator

Adds comprehensive tests for spatial interaction kernel calculations:

  • Script-level tests verifying kernel formulas at known distances
  • SIMD vs scalar consistency tests comparing i1.strength() against i1.totalOfNeighborStrengths()
  • C++ level tests calling SIMD functions directly with 1000 random values

All five kernel types covered: Linear, Exponential, Normal, Cauchy, Student's T.

Note: Two tests fail, exposing a pre-existing bug in the scalar tdist() function (see #591)

@andrewkern
Copy link
Collaborator Author

as expected-- two tests are failing in CI:

FAILURE count: 2
SUCCESS count: 36837

this is good.

@bhaller, next I'll issue a separate PR with the patch on the original implementation of the Student's T kernel. Once that is merged we can rerun these tests and they should all go green

Add comprehensive tests comparing SIMD kernel implementations against
scalar paths to ensure consistency. Tests cover all kernel types:
Linear, Exponential, Normal, Cauchy, and Student's T.

Key additions:
- Individual kernel value tests verifying formulas at known distances
- SIMD vs scalar consistency tests using i1.strength() vs
  i1.totalOfNeighborStrengths() to compare code paths
- Tests for 1D, 2D, and multi-individual scenarios
- C++ level tests calling SIMD functions directly with 1000 random values
@andrewkern andrewkern force-pushed the simd_spatial_interaction branch from 5629406 to 07de8ec Compare December 17, 2025 19:02
@andrewkern
Copy link
Collaborator Author

okay this is all green! 🟢

ready to merge @bhaller

@bhaller bhaller merged commit 8834d12 into MesserLab:master Dec 17, 2025
17 checks passed
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.

2 participants