adjacent matrix translation