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