### Question:
Scalar extends Tensor<Scalar> { @Override public Scalar zeros() { return new Scalar(0D); } Scalar(double value); @Override Scalar zeros(); @Override Scalar copy(); @Override Scalar add(Scalar b);  }### Answer:
@Test void returnsScalarZero() { var scalar = new Scalar(5D); Scalar zero = scalar.zeros(); assertNotSame(scalar, zero); assertArrayEquals(new double[] {0D}, zero.data); }