def test_build_mixed_sparsity_vector(self, backend, mvsparsity):
        assert all(mvsparsity._rowptr[0] == [0, 1, 2, 3])
        assert all(mvsparsity._rowptr[1] == [0, 2, 4, 6])
        assert all(mvsparsity._rowptr[2] == [0, 1, 3, 5, 6])
        assert all(mvsparsity._rowptr[3] == [0, 2, 5, 8, 10])
        assert all(mvsparsity._colidx[0] == [0, 1, 2])
        assert all(mvsparsity._colidx[1] == [0, 1, 1, 2, 2, 3])
        assert all(mvsparsity._colidx[2] == [0, 0, 1, 1, 2, 2])
        assert all(mvsparsity._colidx[3] == [0, 1, 0, 1, 2, 1, 2, 3, 2, 3])
Building a sparsity from a pair of mixed maps and a vector DataSet
dataset/ETHPy150Open OP2/PyOP2/test/unit/test_matrices.py/TestSparsity.test_build_mixed_sparsity_vector