/**
  * Create a dataset from an object which could be a Java list, array (of arrays...) or Number.
  * Ragged sequences or arrays are padded with zeros.
  *
  * @param obj
  * @return dataset with contents given by input
  */
 public static BooleanDataset createFromObject(final Object obj) {
   BooleanDatasetBase result = BooleanDatasetBase.createFromObject(obj);
   return new BooleanDataset(result.data, result.shape);
 }
 /**
  * @param shape
  * @return a dataset filled with trues
  */
 public static BooleanDataset ones(final int... shape) {
   BooleanDatasetBase result = BooleanDatasetBase.ones(shape);
   return new BooleanDataset(result.data, result.shape);
 }