reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1201 if (!mat) 1204 if (mat->n_col == mat->n_row) { 1204 if (mat->n_col == mat->n_row) { 1205 mat = isl_mat_cow(mat); 1205 mat = isl_mat_cow(mat); 1206 if (!mat) 1208 for (i = 0; i < mat->n_row; ++i) 1209 for (j = i + 1; j < mat->n_col; ++j) 1210 isl_int_swap(mat->row[i][j], mat->row[j][i]); 1210 isl_int_swap(mat->row[i][j], mat->row[j][i]); 1211 return mat; 1213 transpose = isl_mat_alloc(mat->ctx, mat->n_col, mat->n_row); 1213 transpose = isl_mat_alloc(mat->ctx, mat->n_col, mat->n_row); 1213 transpose = isl_mat_alloc(mat->ctx, mat->n_col, mat->n_row); 1216 for (i = 0; i < mat->n_row; ++i) 1217 for (j = 0; j < mat->n_col; ++j) 1218 isl_int_set(transpose->row[j][i], mat->row[i][j]); 1219 isl_mat_free(mat); 1222 isl_mat_free(mat);