ifdef lapack in inference method - since gaussian is only available with it