Skip to content

Commit 8fd003c

Browse files
small bug fixes
1 parent 57daf4c commit 8fd003c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

src/Operations/Element_wise_addition.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function GrB_eWiseAdd_Matrix_Semiring( # C<Mask> = accum (C, A+B)
8989

9090
return GrB_Info(
9191
ccall(
92-
dlsym(graphblas_lib, fn_name),
92+
dlsym(graphblas_lib, "GrB_eWiseAdd_Matrix_Semiring"),
9393
Cint,
9494
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
9595
C.p, Mask.p, accum.p, semiring.p, A.p, B.p, desc.p
@@ -109,7 +109,7 @@ function GrB_eWiseAdd_Matrix_Monoid( # C<Mask> = accum (C, A+B)
109109

110110
return GrB_Info(
111111
ccall(
112-
dlsym(graphblas_lib, fn_name),
112+
dlsym(graphblas_lib, "GrB_eWiseAdd_Matrix_Monoid"),
113113
Cint,
114114
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
115115
C.p, Mask.p, accum.p, monoid.p, A.p, B.p, desc.p
@@ -129,7 +129,7 @@ function GrB_eWiseAdd_Matrix_BinaryOp( # C<Mask> = accum (C, A+B)
129129

130130
return GrB_Info(
131131
ccall(
132-
dlsym(graphblas_lib, fn_name),
132+
dlsym(graphblas_lib, "GrB_eWiseAdd_Matrix_BinaryOp"),
133133
Cint,
134134
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
135135
C.p, Mask.p, accum.p, mult.p, A.p, B.p, desc.p

src/Operations/Element_wise_multiplication.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function GrB_eWiseMult_Matrix_Semiring( # C<Mask> = accum (C, A.*B)
8989

9090
return GrB_Info(
9191
ccall(
92-
dlsym(graphblas_lib, fn_name),
92+
dlsym(graphblas_lib, "GrB_eWiseMult_Matrix_Semiring"),
9393
Cint,
9494
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
9595
C.p, Mask.p, accum.p, semiring.p, A.p, B.p, desc.p
@@ -109,7 +109,7 @@ function GrB_eWiseMult_Matrix_Monoid( # C<Mask> = accum (C, A.*B)
109109

110110
return GrB_Info(
111111
ccall(
112-
dlsym(graphblas_lib, fn_name),
112+
dlsym(graphblas_lib, "GrB_eWiseMult_Matrix_Monoid"),
113113
Cint,
114114
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
115115
C.p, Mask.p, accum.p, monoid.p, A.p, B.p, desc.p
@@ -129,7 +129,7 @@ function GrB_eWiseMult_Matrix_BinaryOp( # C<Mask> = accum (C, A.*B)
129129

130130
return GrB_Info(
131131
ccall(
132-
dlsym(graphblas_lib, fn_name),
132+
dlsym(graphblas_lib, "GrB_eWiseMult_Matrix_BinaryOp"),
133133
Cint,
134134
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
135135
C.p, Mask.p, accum.p, mult.p, A.p, B.p, desc.p

src/Operations/Reduce.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ function GrB_Matrix_reduce_BinaryOp( # w<mask> = accum (w,reduce(A))
3636
)
3737
end
3838

39-
function GrB_Vector_reduce( # c = accum (c, reduce_to_scalar (u))
40-
accum::U, # optional accum for c=accum(c,t)
41-
monoid::GrB_Monoid, # monoid to do the reduction
42-
u::GrB_Vector{T}, # vector to reduce
43-
desc::V # descriptor (currently unused)
39+
function GrB_Vector_reduce( # c = accum (c, reduce_to_scalar (u))
40+
accum::U, # optional accum for c=accum(c,t)
41+
monoid::GrB_Monoid, # monoid to do the reduction
42+
u::GrB_Vector{T}, # vector to reduce
43+
desc::V # descriptor (currently unused)
4444
) where {T <: valid_types, U <: valid_accum_types, V <: valid_desc_types}
4545

4646
scalar = Ref(T(0))
@@ -59,11 +59,11 @@ function GrB_Vector_reduce( # c = accum (c, reduce_to_scalar (u))
5959
return scalar[]
6060
end
6161

62-
function GrB_Matrix_reduce( # c = accum (c, reduce_to_scalar (A))
63-
accum::U, # optional accum for c=accum(c,t)
64-
monoid::GrB_Monoid, # monoid to do the reduction
65-
A::GrB_Matrix{T}, # matrix to reduce
66-
desc::V # descriptor (currently unused)
62+
function GrB_Matrix_reduce( # c = accum (c, reduce_to_scalar (A))
63+
accum::U, # optional accum for c=accum(c,t)
64+
monoid::GrB_Monoid, # monoid to do the reduction
65+
A::GrB_Matrix{T}, # matrix to reduce
66+
desc::V # descriptor (currently unused)
6767
) where {T <: valid_types, U <: valid_accum_types, V <: valid_desc_types}
6868

6969
scalar = Ref(T(0))

0 commit comments

Comments
 (0)