GraphBLAS / graphblas-api-c

Other
7 stars 3 forks source link

GrB_Vector_diag #47

Open DrTimothyAldenDavis opened 2 years ago

DrTimothyAldenDavis commented 2 years ago

Consider the following method (see SuiteSparse GxB_Vector_diag); this issue was mentioned in #35 but is listed here to separate the issues:

GrB_Vector_diag (v, A, k)

which extracts the kth diagonal from the matrix A. This is like GrB_select (... DIAG ...) except it returns a vector, not a matrix.

I also have a descriptor in my GxB_Vector_diag, which controls the # of threads I can use. That's another issue (#48 )