sum(-x * log(x)).

entropy(x)

Arguments

x

input vector or matrix, x > 0.