Methods that apply to rows and columns of a matrix