| 34 | } |
| 35 | |
| 36 | GrB_Info RG_Matrix_copy |
| 37 | ( |
| 38 | RG_Matrix C, |
| 39 | const RG_Matrix A |
| 40 | ) { |
| 41 | RG_Matrix_checkCompatible(C, A); |
| 42 | |
| 43 | GrB_Matrix in_m = RG_MATRIX_M(A); |
| 44 | GrB_Matrix out_m = RG_MATRIX_M(C); |
| 45 | GrB_Matrix in_delta_plus = RG_MATRIX_DELTA_PLUS(A); |
| 46 | GrB_Matrix in_delta_minus = RG_MATRIX_DELTA_MINUS(A); |
| 47 | GrB_Matrix out_delta_plus = RG_MATRIX_DELTA_PLUS(C); |
| 48 | GrB_Matrix out_delta_minus = RG_MATRIX_DELTA_MINUS(C); |
| 49 | |
| 50 | _copyMatrix(in_m, out_m); |
| 51 | _copyMatrix(in_delta_plus, out_delta_plus); |
| 52 | _copyMatrix(in_delta_minus, out_delta_minus); |
| 53 | |
| 54 | return GrB_SUCCESS; |
| 55 | } |
| 56 | |