brest_matrix