We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e3b53c commit 45e4536Copy full SHA for 45e4536
src/GraphBLAS-sharp.Backend/Matrix/Matrix.fs
@@ -305,6 +305,9 @@ module Matrix =
305
let CSRMap2 =
306
CSR.Matrix.map2AtLeastOne clContext opAdd workGroupSize
307
308
+ let COOTranspose =
309
+ COO.Matrix.transposeInPlace clContext workGroupSize
310
+
311
fun (processor: MailboxProcessor<_>) allocationMode matrix1 matrix2 ->
312
match matrix1, matrix2 with
313
| ClMatrix.COO m1, ClMatrix.COO m2 ->
@@ -315,6 +318,7 @@ module Matrix =
315
318
|> ClMatrix.COO
316
319
| ClMatrix.CSC m1, ClMatrix.CSC m2 ->
317
320
(CSRMap2 processor allocationMode m1.ToCSR m2.ToCSR)
321
+ |> COOTranspose processor
322
323
| _ -> failwith "Matrix formats are not matching"
324
0 commit comments