@@ -7,12 +7,12 @@ open GraphBLAS.FSharp.Backend.Common
77
88module internal EWiseAdd =
99 let cooNotEmpty ( matrixLeft : COOFormat < 'a >) ( matrixRight : COOFormat < 'a >) ( mask : Mask2D option ) ( semiring : Semiring < 'a >) : OpenCLEvaluation < COOFormat < 'a >> = opencl {
10- let! allRows , allColumns , allValues = Merge.runM matrixLeft matrixRight mask
10+ let! allRows , allColumns , allValues = Merge.runForMatrix matrixLeft matrixRight mask
1111
1212 let ( BinaryOp append ) = semiring.PlusMonoid.Append
13- let! rawPositions = PreparePositions.runM allRows allColumns allValues append
13+ let! rawPositions = PreparePositions.runForMatrix allRows allColumns allValues append
1414
15- let! resultRows , resultColumns , resultValues = SetPositions.runM allRows allColumns allValues rawPositions
15+ let! resultRows , resultColumns , resultValues = SetPositions.runForMatrix allRows allColumns allValues rawPositions
1616
1717 return {
1818 RowCount = matrixLeft.RowCount
@@ -55,12 +55,12 @@ module internal EWiseAdd =
5555 else cooNotEmpty matrixLeft matrixRight mask semiring
5656
5757 let sparseNotEmpty ( leftIndices : int []) ( leftValues : 'a []) ( rightIndices : int []) ( rightValues : 'a []) ( mask : Mask1D option ) ( semiring : Semiring < 'a >) : OpenCLEvaluation < int [] * 'a []> = opencl {
58- let! allIndices , allValues = Merge.runV leftIndices leftValues rightIndices rightValues mask
58+ let! allIndices , allValues = Merge.runForVector leftIndices leftValues rightIndices rightValues mask
5959
6060 let ( BinaryOp append ) = semiring.PlusMonoid.Append
61- let! rawPositions = PreparePositions.runV allIndices allValues append
61+ let! rawPositions = PreparePositions.runForVector allIndices allValues append
6262
63- return ! SetPositions.runV allIndices allValues rawPositions
63+ return ! SetPositions.runForVector allIndices allValues rawPositions
6464 }
6565
6666 let sparse ( leftIndices : int []) ( leftValues : 'a []) ( rightIndices : int []) ( rightValues : 'a []) ( mask : Mask1D option ) ( semiring : Semiring < 'a >) : OpenCLEvaluation < int [] * 'a []> =
0 commit comments