def permute(self, ordering: np.ndarray, *, axis: int) -> None:
if axis == <NUM_LIT:0>:<EOL><INDENT>self.values = self.values[ordering, :]<EOL><DEDENT>elif axis == <NUM_LIT:1>:<EOL><INDENT>self.values = self.values[:, ordering]<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Permute the layer along an axis

Args:
        axis: The axis to permute (0, permute the rows; 1, permute the columns)
        ordering: The permutation vector