divScalar method

Tensor divScalar(
  1. double s
)

Divide all elements by a scalar.

Implementation

Tensor divScalar(double s) => map((x) => x / s);