addScalar method

Tensor addScalar(
  1. double s
)

Add a scalar to all elements.

Implementation

Tensor addScalar(double s) => map((x) => x + s);