function zeros (shape, dtype) {
  if (_.isNumber(shape) && shape >= 0) {
    shape = [shape];
  }
  var s = _.shapeSize(shape);
  var T = _.getType(dtype);
  var arr = new NdArray(new T(s), shape);
  if (arr.dtype === 'array') {
    ops.assigns(arr.selection, 0);
  }
  return arr;
}
Return a new array of given shape and type, filled with zeros.

@param {(Array|int)} shape - Shape of the new array, e.g., [2, 3] or 2.
@param {(String|Object)}  [dtype=Array]  The type of the output array.

@return {NdArray} Array of zeros with the given shape and dtype