Add zeros, ones, infs and nans methods taking an AbstractMatrix argument