Fix bug in assertion.

Forked the repo today. Trying out the DBN example gave an error. I figured out it was because all(x>=0) returns an array of boolean values when you hand it a matrix. So all(all(x>=0)) return whether all the values is above or equal to zero.