diff --git a/src/simd/_gen/simdgen/ops/MLOps/categories.yaml b/src/simd/_gen/simdgen/ops/MLOps/categories.yaml index 8e1ffeb131a..772a7b3cf67 100644 --- a/src/simd/_gen/simdgen/ops/MLOps/categories.yaml +++ b/src/simd/_gen/simdgen/ops/MLOps/categories.yaml @@ -49,5 +49,5 @@ commutative: false documentation: !string |- // NAME sums the absolute distance of the two input vectors, each adjacent 8 bytes as a group. The output sum will - // be a vector of word-sized elements whose each 8*n-th element contains the sum of the n-th input group. + // be a vector of word-sized elements whose each 4*n-th element contains the sum of the n-th input group. The other elements in the result vector are zeroed. // This method could be seen as the norm of the L1 distance of each adjacent 8-byte vector group of the two input vectors. diff --git a/src/simd/ops_amd64.go b/src/simd/ops_amd64.go index e600f7c1a0c..bce30aa2cb7 100644 --- a/src/simd/ops_amd64.go +++ b/src/simd/ops_amd64.go @@ -6819,21 +6819,21 @@ func (x Uint16x32) SubSaturated(y Uint16x32) Uint16x32 /* SumAbsDiff */ // SumAbsDiff sums the absolute distance of the two input vectors, each adjacent 8 bytes as a group. The output sum will -// be a vector of word-sized elements whose each 8*n-th element contains the sum of the n-th input group. +// be a vector of word-sized elements whose each 4*n-th element contains the sum of the n-th input group. The other elements in the result vector are zeroed. // This method could be seen as the norm of the L1 distance of each adjacent 8-byte vector group of the two input vectors. // // Asm: VPSADBW, CPU Feature: AVX func (x Uint8x16) SumAbsDiff(y Uint8x16) Uint16x8 // SumAbsDiff sums the absolute distance of the two input vectors, each adjacent 8 bytes as a group. The output sum will -// be a vector of word-sized elements whose each 8*n-th element contains the sum of the n-th input group. +// be a vector of word-sized elements whose each 4*n-th element contains the sum of the n-th input group. The other elements in the result vector are zeroed. // This method could be seen as the norm of the L1 distance of each adjacent 8-byte vector group of the two input vectors. // // Asm: VPSADBW, CPU Feature: AVX2 func (x Uint8x32) SumAbsDiff(y Uint8x32) Uint16x16 // SumAbsDiff sums the absolute distance of the two input vectors, each adjacent 8 bytes as a group. The output sum will -// be a vector of word-sized elements whose each 8*n-th element contains the sum of the n-th input group. +// be a vector of word-sized elements whose each 4*n-th element contains the sum of the n-th input group. The other elements in the result vector are zeroed. // This method could be seen as the norm of the L1 distance of each adjacent 8-byte vector group of the two input vectors. // // Asm: VPSADBW, CPU Feature: AVX512