by nequo · 4y ago · 0 comments
Sorry, it is early for me too. I am wondering if there is a mistake here. Do you mean that addition is where multiplication would be and min is where addition would be?
The regular inner product would be
C_ij := \sum_k A_ik B_kj
and the modified one is C_ij := \min_k (A_ik + B_kj)
?Note that this pseudo-code is very nearly valid Julia code (with my package):
@tullio (min) C[i,j] := A[i,k] + B[k,j]