Skip to content

Commit

Permalink
interrim commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephBond committed Sep 22, 2023
1 parent a6be320 commit e22cd27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions example/Util/BMA.purs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ nonnegColumns = transpose <<< nonnegRows <<< transpose

-- unsure what the point of this is
complement :: Int -> Array Int -> Array Int
complement n arr = worker 1 arr
complement n arr = worker 1 arr
where
worker :: Int -> Array Int -> Array Int
worker k xxs = if k > n then []
Expand All @@ -188,7 +188,7 @@ complement n arr = worker 1 arr
LT -> k `cons` worker (k+1) xxs
GT -> worker k xs

step3 :: Int -> Array (Int × Int) -> Array (Int × Int) ->Array Int -> Array Int -> Matrix IntInf -> Array (Int × Int)
step3 :: Int -> Array (Int × Int) -> Array (Int × Int) -> Array Int -> Array Int -> Matrix IntInf -> Array (Int × Int)
step3 dim starred primed coveredRows coveredCols matrix =
let colsC = mergeUnion coveredCols (sort $ map snd starred) in
if length colsC == (length matrix) then starred
Expand Down Expand Up @@ -225,7 +225,8 @@ remove elem arr =
Just {index: ind, value: _} ->
concat [(take ind arr), (drop (ind + 1) arr)]

step5 = error "todo"
step5 dim starred primed coveredRows coveredCols matrix
= error "todo"
step6 = error "todo"
main :: Effect Unit
main = do
Expand Down

0 comments on commit e22cd27

Please sign in to comment.