`numpy.matrix` is on the way out. Use `ndarray` in documentation examples.