Skip to content

Commit 5b94160

Browse files
committed
refactor: paths
1 parent ad66391 commit 5b94160

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

src/GraphBLAS-sharp.Backend/Common/ClArray.fs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -576,20 +576,22 @@ module ClArray =
576576

577577
fun (processor: MailboxProcessor<_>) (sourceArray: ClArray<'a>) sourceIndex (targetArray: ClArray<'a>) targetIndex count ->
578578
// check count
579-
if count < 0 then failwith "Count must be greater than zero"
579+
if count < 0 then
580+
failwith "Count must be greater than zero"
580581

581582
// check sourceIndex
582583
if sourceIndex < 0
583-
&& sourceIndex + count >= sourceArray.Length
584-
then failwith "The source index does not match"
584+
&& sourceIndex + count >= sourceArray.Length then
585+
failwith "The source index does not match"
585586

586587
// check targetPosition
587588
if targetIndex < 0
588-
&& targetIndex + count >= targetArray.Length
589-
then failwith "The target index does not match"
589+
&& targetIndex + count >= targetArray.Length then
590+
failwith "The target index does not match"
590591

591-
if count = 0 then ()
592-
// nothing to do
592+
if count = 0 then
593+
()
594+
// nothing to do
593595
else
594596
let ndRange =
595597
Range1D.CreateValid(targetArray.Length, workGroupSize)

src/GraphBLAS-sharp.Backend/GraphBLAS-sharp.Backend.fsproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
<Compile Include="Common/Sort/Radix.fs" />
3636
<Compile Include="Common/Sort/Bitonic.fs" />
3737
<Compile Include="Common/Sum.fs" />
38-
<Compile Include="Vector\Dense\Vector.fs" />
38+
<Compile Include="Vector/Dense/Vector.fs" />
3939
<Compile Include="Vector/Sparse/Common.fs" />
4040
<Compile Include="Vector/Sparse/Map2AtLeastOne.fs" />
4141
<Compile Include="Vector/Sparse/Map2.fs" />
42-
<Compile Include="Vector\Sparse\Vector.fs" />
42+
<Compile Include="Vector/Sparse/Vector.fs" />
4343
<Compile Include="Vector/SpMV.fs" />
4444
<Compile Include="Vector/Vector.fs" />
4545
<Compile Include="Matrix/Common.fs" />

tests/GraphBLAS-sharp.Tests/Generators.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,11 +1023,11 @@ module Generators =
10231023

10241024
let! sourceArray = Gen.arrayOfLength sourceArrayLength valuesGenerator
10251025

1026-
let! targetIndex = Gen.choose(0, targetArrayLength)
1026+
let! targetIndex = Gen.choose (0, targetArrayLength)
10271027

10281028
let! sourceIndex = Gen.choose (0, sourceArrayLength)
10291029

1030-
let! count = Gen.choose(0, (min (targetArrayLength - targetIndex) (sourceArrayLength - sourceIndex)))
1030+
let! count = Gen.choose (0, (min (targetArrayLength - targetIndex) (sourceArrayLength - sourceIndex)))
10311031

10321032
return (sourceArray, sourceIndex, targetArray, targetIndex, count)
10331033
}

tests/GraphBLAS-sharp.Tests/GraphBLAS-sharp.Tests.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<Compile Include="Common/ClArray/Copy.fs" />
2727
<Compile Include="Common/ClArray/Replicate.fs" />
2828
<Compile Include="Common/ClArray/ChunkBySize.fs" />
29-
<Compile Include="Common\ClArray\Blit.fs" />
29+
<Compile Include="Common/ClArray/Blit.fs" />
3030
<Compile Include="Common/ClArray/Concat.fs" />
3131
<Compile Include="Common/ClArray/Fill.fs" />
3232
<Compile Include="Common/ClArray/Pairwise.fs" />

0 commit comments

Comments
 (0)