Commit ce9e583
Add CI with GitHub Actions, reduce warnings (#88)
* Initial plan
* Add CI infrastructure with GitHub Actions, update Makefile, and enable -Wall
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Fix hlint invocation to use stack exec for consistency
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Add explicit GITHUB_TOKEN permissions for security
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Fix compilation errors for -Wall -Werror: remove unused code, fix shadowing, add type signatures
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Add CI with GitHub Actions, strict compilation flags, enhanced Makefile, and -Wall -Werror compliance fixes
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Continue fixing -Wall -Werror errors: fix SpVector, IntMap2, add more type signatures
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Fix remaining -Wall -Werror errors in Control/Iterative, IntMap2, SpMatrix, and most of Common
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Fix all remaining -Wall -Werror errors in Common.hs and Sparse.hs
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Complete -Wall -Werror fixes: all modules build successfully, tests run
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Add COMMENTED_OUT_FUNCTIONS.md documenting all functions disabled for -Wall -Werror
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Clean up commented pragmas in Sparse.hs
Removed fake ghc flag
* Use IM.foldl' instead of foldl' in fromListSM'
* Replace IM.foldl' with foldl' in fromListSM'
* Update build-depends and ghc-options in cabal file
* Enable eigsArnoldi and verify eigensolvers work with Real and Complex types (#86)
* Initial plan
* Uncomment and enable eigsArnoldi for Real matrices, add comprehensive tests for eigensolvers
- Uncommented eigsArnoldi function in Numeric.LinearAlgebra.Sparse module
- Simplified eigsArnoldi type signature to remove outdated constraints (MonadLog, PrintDense, V)
- Exported eigsArnoldi from the module
- Added checkEigsArnoldi test helper function
- Added comprehensive test suite for eigsArnoldi with Real matrices (4 specific test cases)
- Added property tests for eigsQR (Real and Complex) and eigsArnoldi (Real)
- Verified eigsQR works with both Real and Complex matrices (existing tests pass)
- Note: eigsArnoldi cannot work with Complex matrices due to Normed instance constraint mismatch (RealScalar (Complex Double) = Double but Scalar (Complex Double) = Complex Double)
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Fix prop_eigsArnoldi to handle edge cases with small matrices
- Guard against negative iteration count when nrows m is small
- Ensure at least 1 iteration and at most 5 or n-1 iterations
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
* Update CI badge in README.md
* matrix factorizations are cursed, split into separate test suite
* split factorizations into separate ci script
* readme
* CI job names
* fewer warnings
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ocramz <5902760+ocramz@users.noreply.github.com>
Co-authored-by: Marco Z <ocramz@users.noreply.github.com>
Co-authored-by: Marco Zocca <marco.zocca@unfoldml.com>1 parent cf84542 commit ce9e583
File tree
30 files changed
+1036
-815
lines changed- .github/workflows
- src
- Control
- Exception
- Iterative
- Data
- Sparse
- Internal
- SVector
- Numeric/LinearAlgebra
- EigenSolvers
- LinearSolvers
- test
30 files changed
+1036
-815
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
0 commit comments