@Test
public void testInitSparseMatrixFromCpp() {

    SparseMatrix m = new SparseMatrix(2, 5, new int[] {0, -1, 2, -1, 3, 4}, new int[] {0, 1, 0, 1}, new double[] {1d, 2d, 3d, 4d});
    assertArrayEquals(new int[] {2, 0, 1, 0, 1}, m.getColumnValueCount());
}