Sample from N(mu, Sigma) where Sigma = solve(crossprod(Phi) + solve(D)) and mu = Sigma*crossprod(Phi, alpha):
sampleFastGaussian(Phi, Ddiag, alpha)
Draw from N(mu, Sigma), which is p x 1
, and is computed in O(n^2*p)
n x p
matrix (of predictors)
p x 1
vector of diagonal components (of prior variance)
n x 1
vector (of data, scaled by variance)