LabeledDenseMatrix implements LabeledMatrix<double[][], L> { public static <L extends Serializable> LabeledDenseMatrix<L> of(Matrix M, List<L> labels) { return new LabeledDenseMatrix<>(M, labels); } private  LabeledDenseMatrix(); private  LabeledDenseMatrix(Matrix M, List<L> labels); @Override double[][] getMatrix(); @Override List<L> getLabels(); static LabeledDenseMatrix<L> of(Matrix M, List<L> labels); static LabeledDenseMatrix<T> of(LabeledMTJMatrix<T> matrix); @SuppressWarnings("unchecked") static LabeledDenseMatrix<T> of();  }
@Test(expected = IllegalArgumentException.class) public void testCreation_withIncorrectSizes() { labels.remove(0); LabeledDenseMatrix.of(M, labels); }