@@ -10,9 +10,11 @@ open GraphBLAS.FSharp.Backend.Objects.ClMatrix
1010
1111module Matrix =
1212 let copy ( clContext : ClContext ) workGroupSize flag =
13- let copy = ClArray.copy clContext workGroupSize flag
13+ let copy =
14+ ClArray.copy clContext workGroupSize flag
1415
15- let copyData = ClArray.copy clContext workGroupSize flag
16+ let copyData =
17+ ClArray.copy clContext workGroupSize flag
1618
1719 fun ( processor : MailboxProcessor < _ >) ( matrix : ClMatrix < 'a >) ->
1820 match matrix with
@@ -47,7 +49,9 @@ module Matrix =
4749 ///<param name =" clContext " >OpenCL context.</param >
4850 ///<param name =" workGroupSize " >Should be a power of 2 and greater than 1.</param >
4951 let toCSR ( clContext : ClContext ) workGroupSize flag =
50- let toCSR = COOMatrix.toCSR clContext workGroupSize flag
52+ let toCSR =
53+ COOMatrix.toCSR clContext workGroupSize flag
54+
5155 let copy = copy clContext workGroupSize flag
5256
5357 let transpose =
@@ -103,7 +107,9 @@ module Matrix =
103107 ///<param name =" clContext " >OpenCL context.</param >
104108 ///<param name =" workGroupSize " >Should be a power of 2 and greater than 1.</param >
105109 let toCOO ( clContext : ClContext ) workGroupSize flag =
106- let toCOO = CSRMatrix.toCOO clContext workGroupSize flag
110+ let toCOO =
111+ CSRMatrix.toCOO clContext workGroupSize flag
112+
107113 let copy = copy clContext workGroupSize flag
108114
109115 let transposeInplace =
@@ -162,7 +168,9 @@ module Matrix =
162168 ///<param name =" clContext " >OpenCL context.</param >
163169 ///<param name =" workGroupSize " >Should be a power of 2 and greater than 1.</param >
164170 let toCSC ( clContext : ClContext ) workGroupSize flag =
165- let toCSR = COOMatrix.toCSR clContext workGroupSize flag
171+ let toCSR =
172+ COOMatrix.toCSR clContext workGroupSize flag
173+
166174 let copy = copy clContext workGroupSize flag
167175
168176 let transposeCSR =
@@ -352,7 +360,12 @@ module Matrix =
352360 |> ClMatrix.CSC
353361 | _ -> failwith " Matrix formats are not matching"
354362
355- let elementwiseAtLeastOneToCOO ( clContext : ClContext ) ( opAdd : Expr < AtLeastOne < 'a , 'b > -> 'c option >) workGroupSize flag =
363+ let elementwiseAtLeastOneToCOO
364+ ( clContext : ClContext )
365+ ( opAdd : Expr < AtLeastOne < 'a , 'b > -> 'c option >)
366+ workGroupSize
367+ flag
368+ =
356369 let COOElementwise =
357370 COOMatrix.elementwiseAtLeastOne clContext opAdd workGroupSize flag
358371
@@ -440,8 +453,11 @@ module Matrix =
440453 let COOtranspose =
441454 COOMatrix.transpose clContext workGroupSize flag
442455
443- let copy = ClArray.copy clContext workGroupSize flag
444- let copyData = ClArray.copy clContext workGroupSize flag
456+ let copy =
457+ ClArray.copy clContext workGroupSize flag
458+
459+ let copyData =
460+ ClArray.copy clContext workGroupSize flag
445461
446462 fun ( processor : MailboxProcessor < _ >) matrix ->
447463 match matrix with
0 commit comments