fast Pearson Primitive
Computes Pearson correlation on two primitive arrays.
Allocation-free: only accumulators are used.
Suitable for hot paths (e.g., iterative evaluations).
Return
Pearson’s r in [-1.0, +1.0]
, or 0.0
if denominator is 0
Parameters
left
left-hand vector
right
right-hand vector