Matrix based scaling.