Skip to contents

Compute pairwise products v[i] * v[j] for all i < j. Thin wrapper around vector_to_ut.

Usage

vector_to_ut(v)

Arguments

v

Numeric vector or single-row matrix of code values

Value

Numeric row vector of pairwise products (length choose_two(length(v)))