Array.ones constructor

Array.ones({
  1. required Tuple2<int, int> shape,
})

Implementation

factory Array.ones({required Tuple2<int, int> shape}) {
  return Array.fromValue(1.0, shape: shape);
}