@@ -76,7 +76,7 @@ function GrB_Vector_assign( # w<mask>(I) = accum (w(I),u)
7676 ccall (
7777 dlsym (graphblas_lib, " GrB_Vector_assign" ),
7878 Cint,
79- (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cintmax_t}, Cintmax_t , Ptr{Cvoid}),
79+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cintmax_t}, Cuintmax_t , Ptr{Cvoid}),
8080 w. p, mask. p, accum. p, u. p, pointer (I), ni, desc. p
8181 )
8282 )
@@ -135,7 +135,7 @@ function GrB_Matrix_assign( # C<Mask>(I,J) = accum (C(I,J),A)
135135 ccall (
136136 dlsym (graphblas_lib, " GrB_Matrix_assign" ),
137137 Cint,
138- (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cintmax_t }, Cintmax_t , Ptr{Cintmax_t }, Cintmax_t , Ptr{Cvoid}),
138+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Y }, Cuintmax_t , Ptr{Y }, Cuintmax_t , Ptr{Cvoid}),
139139 C. p, Mask. p, accum. p, A. p, pointer (I), ni, pointer (J), nj, desc. p
140140 )
141141 )
@@ -199,7 +199,7 @@ function GrB_Col_assign( # C<mask>(I,j) = accum (C(I,j),u)
199199 ccall (
200200 dlsym (graphblas_lib, " GrB_Col_assign" ),
201201 Cint,
202- (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cintmax_t }, Cintmax_t, Cintmax_t , Ptr{Cvoid}),
202+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cuintmax_t }, Cuintmax_t, Cuintmax_t , Ptr{Cvoid}),
203203 C. p, mask. p, accum. p, u. p, pointer (I), ni, j, desc. p
204204 )
205205 )
@@ -263,7 +263,7 @@ function GrB_Row_assign( # C<mask'>(i,J) = accum (C(i,J),u')
263263 ccall (
264264 dlsym (graphblas_lib, " GrB_Row_assign" ),
265265 Cint,
266- (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cintmax_t , Ptr{Cintmax_t }, Cintmax_t , Ptr{Cvoid}),
266+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cuintmax_t , Ptr{Cuintmax_t }, Cuintmax_t , Ptr{Cvoid}),
267267 C. p, mask. p, accum. p, u. p, i, pointer (J), nj, desc. p
268268 )
269269 )
@@ -311,7 +311,29 @@ function GrB_Vector_assign( # w<mask>(I) = accum (w(I),x)
311311 ccall (
312312 dlsym (graphblas_lib, fn_name),
313313 Cint,
314- (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cintmax_t, Ptr{Cintmax_t}, Cintmax_t, Ptr{Cvoid}),
314+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cintmax_t, Ptr{Cuintmax_t}, Cuintmax_t, Ptr{Cvoid}),
315+ w. p, mask. p, accum. p, x, pointer (I), ni, desc. p
316+ )
317+ )
318+ end
319+
320+ function GrB_Vector_assign ( # w<mask>(I) = accum (w(I),x)
321+ w:: GrB_Vector{UInt64} , # input/output vector for results
322+ mask:: T , # optional mask for w, unused if NULL
323+ accum:: U , # optional accum for Z=accum(w(I),x)
324+ x:: Y , # scalar to assign to w(I)
325+ I:: S , # row indices
326+ ni:: X , # number of row indices
327+ desc:: V # descriptor for w and mask
328+ ) where {T <: valid_vector_mask_types , U <: valid_accum_types , V <: valid_desc_types , X <: GrB_Index , Y <: valid_types , S <: valid_indices_types }
329+
330+ fn_name = " GrB_Vector_assign_UINT64"
331+
332+ return GrB_Info (
333+ ccall (
334+ dlsym (graphblas_lib, fn_name),
335+ Cint,
336+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cuintmax_t, Ptr{Cuintmax_t}, Cuintmax_t, Ptr{Cvoid}),
315337 w. p, mask. p, accum. p, x, pointer (I), ni, desc. p
316338 )
317339 )
@@ -331,7 +353,7 @@ function GrB_Vector_assign( # w<mask>(I) = accum (w(I),x)
331353 ccall (
332354 dlsym (graphblas_lib, " GrB_Vector_assign_FP64" ),
333355 Cint,
334- (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cdouble, Ptr{Cintmax_t }, Cintmax_t , Ptr{Cvoid}),
356+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cdouble, Ptr{Cuintmax_t }, Cuintmax_t , Ptr{Cvoid}),
335357 w. p, mask. p, accum. p, x, pointer (I), ni, desc. p
336358 )
337359 )
@@ -351,7 +373,7 @@ function GrB_Vector_assign( # w<mask>(I) = accum (w(I),x)
351373 ccall (
352374 dlsym (graphblas_lib, " GrB_Vector_assign_FP32" ),
353375 Cint,
354- (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cfloat, Ptr{Cintmax_t }, Cintmax_t , Ptr{Cvoid}),
376+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cfloat, Ptr{Cuintmax_t }, Cuintmax_t , Ptr{Cvoid}),
355377 w. p, mask. p, accum. p, x, pointer (I), ni, desc. p
356378 )
357379 )
@@ -401,7 +423,29 @@ function GrB_Matrix_assign( # C<Mask>(I,J) = accum (C(I,J),x)
401423 ccall (
402424 dlsym (graphblas_lib, fn_name),
403425 Cint,
404- (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cintmax_t, Ptr{Cintmax_t}, Cintmax_t, Ptr{Cintmax_t}, Cintmax_t, Ptr{Cvoid}),
426+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cintmax_t, Ptr{S}, Cuintmax_t, Ptr{S}, Cuintmax_t, Ptr{Cvoid}),
427+ C. p, Mask. p, accum. p, x, pointer (I), ni, pointer (J), nj, desc. p
428+ )
429+ )
430+ end
431+
432+ function GrB_Matrix_assign ( # C<Mask>(I,J) = accum (C(I,J),x)
433+ C:: GrB_Matrix{UInt64} , # input/output matrix for results
434+ Mask:: T , # optional mask for C, unused if NULL
435+ accum:: U , # optional accum for Z=accum(C(I,J),x)
436+ x:: Y , # scalar to assign to C(I,J)
437+ I:: S , # row indices
438+ ni:: X , # number of row indices
439+ J:: S , # column indices
440+ nj:: X , # number of column indices
441+ desc:: V # descriptor for C and Mask
442+ ) where {T <: valid_matrix_mask_types , U <: valid_accum_types , V <: valid_desc_types , X <: GrB_Index , Y <: valid_types , S <: valid_indices_types }
443+
444+ return GrB_Info (
445+ ccall (
446+ dlsym (graphblas_lib, " GrB_Matrix_assign_UINT64" ),
447+ Cint,
448+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cuintmax_t, Ptr{S}, Cuintmax_t, Ptr{S}, Cuintmax_t, Ptr{Cvoid}),
405449 C. p, Mask. p, accum. p, x, pointer (I), ni, pointer (J), nj, desc. p
406450 )
407451 )
@@ -423,7 +467,7 @@ function GrB_Matrix_assign( # C<Mask>(I,J) = accum (C(I,J),x)
423467 ccall (
424468 dlsym (graphblas_lib, " GrB_Matrix_assign_FP64" ),
425469 Cint,
426- (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cdouble, Ptr{Cintmax_t }, Cintmax_t , Ptr{Cintmax_t }, Cintmax_t , Ptr{Cvoid}),
470+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cdouble, Ptr{S }, Cuintmax_t , Ptr{S }, Cuintmax_t , Ptr{Cvoid}),
427471 C. p, Mask. p, accum. p, x, pointer (I), ni, pointer (J), nj, desc. p
428472 )
429473 )
@@ -445,7 +489,7 @@ function GrB_Matrix_assign( # C<Mask>(I,J) = accum (C(I,J),x)
445489 ccall (
446490 dlsym (graphblas_lib, " GrB_Matrix_assign_FP32" ),
447491 Cint,
448- (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cfloat, Ptr{Cintmax_t }, Cintmax_t , Ptr{Cintmax_t }, Cintmax_t , Ptr{Cvoid}),
492+ (Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Cfloat, Ptr{S }, Cuintmax_t , Ptr{S }, Cuintmax_t , Ptr{Cvoid}),
449493 C. p, Mask. p, accum. p, x, pointer (I), ni, pointer (J), nj, desc. p
450494 )
451495 )
0 commit comments