expand method

Tensor<T> expand({
  1. int axis = 0,
})

Returns a view with a single-element axis at axis added.

Implementation

Tensor<T> expand({int axis = 0}) => Tensor<T>.internal(
    type: type, layout: layout.expand(axis: axis), data: data);