1. A method for transferring a matrix for performing one or more operations, wherein the method comprises: applying a permutation on at least one of one or more columns and one or more rows of a matrix to group each of at least one of one or more columns and one or more rows of the matrix with a same alignment; blocking at least one of the grouped columns and grouped rows; and performing one or more operations on each matrix block.