Skip to content

Commit 77df414

Browse files
committed
Wrong matrix size and arguments for to COO fixed
1 parent d3a850c commit 77df414

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/GraphBLAS-sharp.Backend/Matrix/COOMatrix/COOMatrix.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ module COOMatrix =
355355
queue.Post(Msg.CreateFreeMsg<_>(allValues))
356356

357357
{ Context = clContext
358-
RowCount = resultRows.Length
359-
ColumnCount = resultColumns.Length
358+
RowCount = matrixLeft.RowCount
359+
ColumnCount = matrixLeft.ColumnCount
360360
Rows = resultRows
361361
Columns = resultColumns
362362
Values = resultValues }

src/GraphBLAS-sharp.Backend/Matrix/Matrix.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module Matrix =
1818
fun (processor: MailboxProcessor<_>) (matrix: Matrix<'a>) ->
1919
match matrix with
2020
| MatrixCOO _ -> matrix
21-
| MatrixCSR m -> toCOO processor workGroupSize m |> MatrixCOO
21+
| MatrixCSR m -> toCOO workGroupSize processor m |> MatrixCOO
2222

2323
let eWiseAdd (clContext: ClContext) (opAdd: Expr<'a -> 'a -> 'a>) workGroupSize =
2424
let COOeWiseAdd =

0 commit comments

Comments
 (0)