Compute logB function

logB(W, nu)

Arguments

W

KxK matrix

nu

Vector of length K