MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / RG_Matrix_copy

Function RG_Matrix_copy

src/graph/rg_matrix/rg_copy.c:36–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36GrB_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

Callers 2

_Eval_MulFunction · 0.85
test_RGMatrix_copyFunction · 0.85

Calls 2

_copyMatrixFunction · 0.85

Tested by 1

test_RGMatrix_copyFunction · 0.68