#NEWLINE# def test_build_mixed_sparsity( self , backend , msparsity ) : #NEWLINE# #INDENT# 'Building a sparsity from a pair of mixed maps should give the\n        expected rowptr and colidx for each block.' #NEWLINE# assert all ( ( msparsity . _rowptr [ 0 ] == [ 0 , 1 , 2 , 3 ] ) ) #NEWLINE# assert all ( ( msparsity . _rowptr [ 1 ] == [ 0 , 2 , 4 , 6 ] ) ) #NEWLINE# assert all ( ( msparsity . _rowptr [ 2 ] == [ 0 , 1 , 3 , 5 , 6 ] ) ) #NEWLINE# assert all ( ( msparsity . _rowptr [ 3 ] == [ 0 , 2 , 5 , 8 , 10 ] ) ) #NEWLINE# assert all ( ( msparsity . _colidx [ 0 ] == [ 0 , 1 , 2 ] ) ) #NEWLINE# assert all ( ( msparsity . _colidx [ 1 ] == [ 0 , 1 , 1 , 2 , 2 , 3 ] ) ) #NEWLINE# assert all ( ( msparsity . _colidx [ 2 ] == [ 0 , 0 , 1 , 1 , 2 , 2 ] ) ) #NEWLINE# assert all ( ( self . _colidx [ 3 ] == [ 0 , 1 , 0 , 1 , 2 , 1 , 2 , 3 , 2 , 3 ] ) )