FixedMatrix implements Matrix<T> { @Override public final Scalar<T>[] coords() { return Arrays.copyOf(this.coors, this.coors.length); } @SuppressWarnings("unchecked")  FixedMatrix(final int lines, final int columns,
        final Iterable<? extends Scalar<T>> coor); @Override final Scalar<T>[] coords(); @Override final Scalar<T>[] column(final int index); @Override final Scalar<T>[] line(final int index); @Override final Vect<T> apply(final Vect<T> input); @Override final int columns(); @Override final int lines();  }
@Test public void returnsCoords() { final int lines = 3; final int cols = 4; final Iterable<Scalar<Object>> scalars = new Scalars<>(lines * cols); final FixedMatrix<Object> matrix = new FixedMatrix<>(lines, cols, scalars); MatcherAssert.assertThat( Arrays.asList(matrix.coords()), Matchers.equalTo(Lists.newArrayList(scalars)) ); }