quadratic matrix