@@ -44,7 +44,7 @@ module Matrix =
4444 Rows = copy processor allocationMode m.Rows
4545 ColumnPointers = copy processor allocationMode m.ColumnPointers
4646 Values = copyData processor allocationMode m.Values }
47- | ClMatrix.Rows matrix ->
47+ | ClMatrix.LIL matrix ->
4848 matrix.Rows
4949 |> Array.map (
5050 Option.bind
@@ -56,7 +56,7 @@ module Matrix =
5656 ColumnCount = matrix.ColumnCount
5757 Rows = rows
5858 NNZ = matrix.NNZ }
59- |> ClMatrix.Rows
59+ |> ClMatrix.LIL
6060
6161 /// <summary >
6262 /// Creates a new matrix, represented in CSR format, that is equal to the given one.
@@ -82,7 +82,7 @@ module Matrix =
8282 m.ToCSR
8383 |> transpose processor allocationMode
8484 |> ClMatrix.CSR
85- | ClMatrix.Rows m ->
85+ | ClMatrix.LIL m ->
8686 rowsToCSR processor allocationMode m
8787 |> ClMatrix.CSR
8888
@@ -136,7 +136,7 @@ module Matrix =
136136 |> toCOO processor allocationMode
137137 |> transposeInPlace processor
138138 |> ClMatrix.COO
139- | ClMatrix.Rows m ->
139+ | ClMatrix.LIL m ->
140140 rowsToCSR processor allocationMode m
141141 |> toCOO processor allocationMode
142142 |> ClMatrix.COO
@@ -183,7 +183,8 @@ module Matrix =
183183 let transposeCOO =
184184 COO.Matrix.transpose clContext workGroupSize
185185
186- let rowsToCSR = Rows.Matrix.toCSR clContext workGroupSize
186+ let rowsToCSR =
187+ Rows.Matrix.toCSR clContext workGroupSize
187188
188189 fun ( processor : MailboxProcessor < _ >) allocationMode ( matrix : ClMatrix < 'a >) ->
189190 match matrix with
@@ -196,7 +197,7 @@ module Matrix =
196197 |> COOtoCSR processor allocationMode)
197198 .ToCSC
198199 |> ClMatrix.CSC
199- | ClMatrix.Rows m ->
200+ | ClMatrix.LIL m ->
200201 rowsToCSR processor allocationMode m
201202 |> transposeCSR processor allocationMode
202203 |> fun m -> m.ToCSC
@@ -241,23 +242,24 @@ module Matrix =
241242 let transposeCSR =
242243 CSR.Matrix.transposeInPlace clContext workGroupSize
243244
244- let CSRToRows = CSR.Matrix.toRows clContext workGroupSize
245+ let CSRToRows =
246+ CSR.Matrix.toRows clContext workGroupSize
245247
246248 fun ( processor : MailboxProcessor < _ >) allocationMode ( matrix : ClMatrix < 'a >) ->
247249 match matrix with
248250 | ClMatrix.CSC m ->
249251 m.ToCSR
250252 |> transposeCSR processor allocationMode
251253 |> CSRToRows processor allocationMode
252- |> ClMatrix.Rows
254+ |> ClMatrix.LIL
253255 | ClMatrix.CSR m ->
254256 CSRToRows processor allocationMode m
255- |> ClMatrix.Rows
257+ |> ClMatrix.LIL
256258 | ClMatrix.COO m ->
257259 COOToCSR processor allocationMode m
258260 |> CSRToRows processor allocationMode
259- |> ClMatrix.Rows
260- | ClMatrix.Rows _ -> copy processor allocationMode matrix
261+ |> ClMatrix.LIL
262+ | ClMatrix.LIL _ -> copy processor allocationMode matrix
261263
262264 let map ( clContext : ClContext ) ( opAdd : Expr < 'a option -> 'b option >) workGroupSize =
263265 let mapCOO =
@@ -363,7 +365,7 @@ module Matrix =
363365 | ClMatrix.COO m -> COOTransposeInPlace processor m |> ClMatrix.COO
364366 | ClMatrix.CSR m -> ClMatrix.CSC m.ToCSC
365367 | ClMatrix.CSC m -> ClMatrix.CSR m.ToCSR
366- | ClMatrix.Rows _ -> failwith " Not yet implemented"
368+ | ClMatrix.LIL _ -> failwith " Not yet implemented"
367369
368370 /// <summary >
369371 /// Transposes the given matrix and returns result as a new matrix.
@@ -406,7 +408,7 @@ module Matrix =
406408 Columns = copy processor allocationMode m.Rows
407409 Values = copyData processor allocationMode m.Values }
408410 |> ClMatrix.CSR
409- | ClMatrix.Rows _ -> failwith " Not yet implemented"
411+ | ClMatrix.LIL _ -> failwith " Not yet implemented"
410412
411413 module SpGeMM =
412414 let masked
@@ -437,5 +439,6 @@ module Matrix =
437439 fun ( processor : MailboxProcessor < _ >) allocationMode ( leftMatrix : ClMatrix < 'a >) ( rightMatrix : ClMatrix < 'b >) ->
438440 match leftMatrix, rightMatrix with
439441 | ClMatrix.CSR leftMatrix, ClMatrix.CSR rightMatrix ->
440- ClMatrix.Rows <| run processor allocationMode leftMatrix rightMatrix
442+ ClMatrix.LIL
443+ <| run processor allocationMode leftMatrix rightMatrix
441444 | _ -> failwith " Matrix formats are not matching"
0 commit comments