Calculate contextual distribution matrix block by block.