Commit 6511882
* Move hasvalue and getvalue to AbstractPPL; reimplement
* Add hasvalue for (some) distributions
* Bump min Julia to 1.10
* Make hasvalue and getvalue use the most specific value
* Specify getvalue semantics in docstring
* Simplify logic (can rely on normalisation)
* Add tests for composition of head/tail and init/last
* Finish implementing distributions methods
* Document
* Fix LinearAlgebra version bound
* Try to fix documentation for extension (why is this so complicated...)
* Fix extension documentation
* Implement fallback {has,get}value methods for NamedTuple + Distribution
* Fix wrong way round composition, add more tests
* Update src/hasvalue.jl
Co-authored-by: Markus Hauru <[email protected]>
* Update HISTORY.md
Co-authored-by: Markus Hauru <[email protected]>
* Minor bump
* Fix test (forgot to push this...)
* Add extra example for getvalue
* Tweak error message when value not found
* Format (?!)
* Fix doctests
* Add a docstring to the extension
* Add tests for colons
---------
Co-authored-by: Markus Hauru <[email protected]>
1 parent 7be9556 commit 6511882
File tree
13 files changed
+1021
-45
lines changed- docs
- src
- ext
- src
- test
13 files changed
+1021
-45
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 | + | |
1 | 15 | | |
2 | 16 | | |
3 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
23 | | - | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| |||
0 commit comments