matrix: default to square matrix