@Test
public void testDMatrixSparseCSC() throws Exception {

    DMatrixSparseCSC expected = new DMatrixSparseCSC(18, 21, 10);
    expected.set(3, 8, rnd.nextDouble());
    expected.set(12, 18, rnd.nextDouble());
    expected.set(7, 9, rnd.nextDouble());
    expected.set(3, 6, rnd.nextDouble());
    expected.sortIndices(null);
    // Read CSC
    EjmlUnitTests.assertEquals(expected, saveAndLoad(expected, expected.createLike()), TEST_F64);
    // Read Triplet
    DMatrixSparseTriplet triplet = saveAndLoad(expected, new DMatrixSparseTriplet());
    DMatrixSparseCSC actual = ConvertDMatrixStruct.convert(triplet, expected.createLike());
    EjmlUnitTests.assertEquals(expected, actual, TEST_F64);
    // Read Dense
    EjmlUnitTests.assertEquals(expected, saveAndLoad(expected, new DMatrixRMaj(0)), TEST_F64);
}