Fixed import cycle in linalg.