Added a scale() method to linalg.