@@ -99,9 +99,6 @@ module Matrix =
9999 let transposeInPlace =
100100 CSR.Matrix.transposeInPlace clContext workGroupSize
101101
102- let rowsToCSR =
103- Rows.Matrix.toCSR clContext workGroupSize
104-
105102 fun ( processor : MailboxProcessor < _ >) allocationMode ( matrix : ClMatrix < 'a >) ->
106103 match matrix with
107104 | ClMatrix.COO m ->
@@ -112,7 +109,7 @@ module Matrix =
112109 m.ToCSR
113110 |> transposeInPlace processor allocationMode
114111 |> ClMatrix.CSR
115- | _ -> failwith " not yet supported "
112+ | _ -> failwith " Not yet implemented "
116113
117114 /// <summary >
118115 /// Creates a new matrix, represented in COO format, that is equal to the given one.
@@ -156,9 +153,6 @@ module Matrix =
156153 let transposeInPlace =
157154 COO.Matrix.transposeInplace clContext workGroupSize
158155
159- let rowsToCOO =
160- Rows.Matrix.toCOO clContext workGroupSize
161-
162156 fun ( processor : MailboxProcessor < _ >) allocationMode ( matrix : ClMatrix < 'a >) ->
163157 match matrix with
164158 | ClMatrix.COO _ -> matrix
@@ -170,7 +164,7 @@ module Matrix =
170164 |> toCOOInPlace processor allocationMode
171165 |> transposeInPlace processor
172166 |> ClMatrix.COO
173- | _ -> failwith " not yet supported "
167+ | _ -> failwith " Not yet implemented "
174168
175169 /// <summary >
176170 /// Creates a new matrix, represented in CSC format, that is equal to the given one.
@@ -199,7 +193,7 @@ module Matrix =
199193 |> COOtoCSR processor allocationMode)
200194 .ToCSC
201195 |> ClMatrix.CSC
202- | _ -> failwith " not yet supported "
196+ | _ -> failwith " Not yet implemented "
203197
204198 /// <summary >
205199 /// Returns the matrix, represented in CSC format, that is equal to the given one.
@@ -245,6 +239,7 @@ module Matrix =
245239 | ClMatrix.CSC m ->
246240 ( mapCSR processor allocationMode m.ToCSR) .ToCSC
247241 |> ClMatrix.CSC
242+ | _ -> failwith " Not yet implemented"
248243
249244 let map2 ( clContext : ClContext ) ( opAdd : Expr < 'a option -> 'b option -> 'c option >) workGroupSize = // TODO()
250245 let map2COO =
@@ -395,19 +390,19 @@ module Matrix =
395390 | ClMatrix.CSR m1, ClMatrix.CSC m2, ClMatrix.COO mask -> runCSRnCSC queue m1 m2 mask |> ClMatrix.COO
396391 | _ -> failwith " Matrix formats are not matching"
397392
398- let expand
399- ( clContext : ClContext )
400- workGroupSize
401- ( opAdd : Expr < 'c -> 'c -> 'c option >)
402- ( opMul : Expr < 'a -> 'b -> 'c option >)
403- =
404-
405- let run =
406- SpGeMM.Expand.run clContext workGroupSize opAdd opMul
407-
408- fun ( processor : MailboxProcessor < _ >) allocationMode ( leftMatrix : ClMatrix < 'a >) ( rightMatrix : ClMatrix < 'b >) ->
409- match leftMatrix, rightMatrix with
410- | ClMatrix.CSR leftMatrix, ClMatrix.CSR rightMatrix ->
411- run processor allocationMode leftMatrix rightMatrix
412- |> ClMatrix.COO
413- | _ -> failwith " Matrix formats are not matching"
393+ // let expand // TODO()
394+ // (clContext: ClContext)
395+ // workGroupSize
396+ // (opAdd: Expr<'c -> 'c -> 'c option>)
397+ // (opMul: Expr<'a -> 'b -> 'c option>)
398+ // =
399+ //
400+ // let run =
401+ // SpGeMM.Expand.run clContext workGroupSize opAdd opMul
402+ //
403+ // fun (processor: MailboxProcessor<_>) allocationMode (leftMatrix: ClMatrix<'a>) (rightMatrix: ClMatrix<'b>) ->
404+ // match leftMatrix, rightMatrix with
405+ // | ClMatrix.CSR leftMatrix, ClMatrix.CSR rightMatrix ->
406+ // run processor allocationMode leftMatrix rightMatrix
407+ // |> ClMatrix.COO
408+ // | _ -> failwith "Matrix formats are not matching"
0 commit comments