@@ -239,17 +239,71 @@ end
239
239
function GxB_SelectOp_new (op:: GxB_SelectOp , GxB_select_function:: Function , xtype:: GrB_Type{T} , thunk_type:: GrB_Type{U} ) where {T, U}
240
240
241
241
GxB_select_function_C = @cfunction (
242
- $ GxB_select_function,
242
+ $ GxB_select_function,
243
243
Bool,
244
244
(Cuintmax_t, Cuintmax_t, Cuintmax_t, Cuintmax_t, Ref{T}, Ref{U})
245
245
)
246
-
246
+
247
+ return GrB_Info (
248
+ ccall (
249
+ dlsym (graphblas_lib, " GxB_SelectOp_new" ),
250
+ Cint,
251
+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
252
+ pointer_from_objref (op), GxB_select_function_C, xtype. p
253
+ )
254
+ )
255
+ end
256
+
257
+ function GxB_SelectOp_new (op:: GxB_SelectOp , GxB_select_function:: Function , xtype:: GrB_NULL_Type , thunk_type:: GrB_NULL_Type )
258
+
259
+ GxB_select_function_C = @cfunction (
260
+ $ GxB_select_function,
261
+ Bool,
262
+ (Cuintmax_t, Cuintmax_t, Cuintmax_t, Cuintmax_t, Ptr{Cvoid}, Ptr{Cvoid})
263
+ )
264
+
265
+ return GrB_Info (
266
+ ccall (
267
+ dlsym (graphblas_lib, " GxB_SelectOp_new" ),
268
+ Cint,
269
+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
270
+ pointer_from_objref (op), GxB_select_function_C, xtype. p
271
+ )
272
+ )
273
+ end
274
+
275
+ function GxB_SelectOp_new (op:: GxB_SelectOp , GxB_select_function:: Function , xtype:: GrB_NULL_Type , thunk_type:: GrB_Type{U} ) where U
276
+
277
+ GxB_select_function_C = @cfunction (
278
+ $ GxB_select_function,
279
+ Bool,
280
+ (Cuintmax_t, Cuintmax_t, Cuintmax_t, Cuintmax_t, Ptr{Cvoid}, Ref{U})
281
+ )
282
+
283
+ return GrB_Info (
284
+ ccall (
285
+ dlsym (graphblas_lib, " GxB_SelectOp_new" ),
286
+ Cint,
287
+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
288
+ pointer_from_objref (op), GxB_select_function_C, xtype. p
289
+ )
290
+ )
291
+ end
292
+
293
+ function GxB_SelectOp_new (op:: GxB_SelectOp , GxB_select_function:: Function , xtype:: GrB_Type{T} , thunk_type:: GrB_NULL_Type ) where T
294
+
295
+ GxB_select_function_C = @cfunction (
296
+ $ GxB_select_function,
297
+ Bool,
298
+ (Cuintmax_t, Cuintmax_t, Cuintmax_t, Cuintmax_t, Ref{T}, Ptr{Cvoid})
299
+ )
300
+
247
301
return GrB_Info (
248
302
ccall (
249
303
dlsym (graphblas_lib, " GxB_SelectOp_new" ),
250
304
Cint,
251
305
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
252
- op . p , GxB_select_function_C, xtype. p
306
+ pointer_from_objref (op) , GxB_select_function_C, xtype. p
253
307
)
254
308
)
255
309
end
0 commit comments