Normalized cross-correlation between P experimental and D dictionary patterns is, once both are zero-mean / unit-norm, a single matmul E @ Dᵀ → (P, D), followed by top-k.
- Chunk over both
P and D with a running top-k so the (P, D) intermediate never materialises — 65k × 100k float32 is 26 GB whole.
- kikuchipy does this with dask; torch should be dramatically faster.
- Support
NormalizedCrossCorrelationMetric and NormalizedDotProductMetric semantics.
Acceptance: score and index parity against kikuchipy.indexing on the same dictionary, plus a benchmark at real scan scale.
Part of #68.
Plan: RELEASE_0_3_0_PLAN.md
Normalized cross-correlation between
Pexperimental andDdictionary patterns is, once both are zero-mean / unit-norm, a single matmulE @ Dᵀ→(P, D), followed by top-k.PandDwith a running top-k so the(P, D)intermediate never materialises — 65k × 100k float32 is 26 GB whole.NormalizedCrossCorrelationMetricandNormalizedDotProductMetricsemantics.Acceptance: score and index parity against
kikuchipy.indexingon the same dictionary, plus a benchmark at real scan scale.Part of #68.
Plan:
RELEASE_0_3_0_PLAN.md