B matrix