Hat-Matrix