You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,31 @@
1
+
# RcppAlgos 2.10.0
2
+
3
+
## New Features:
4
+
5
+
* Added parallel capabilities to all ranking functions via the new `nThreads` argument (e.g. `partitionsRank(..., nThreads = 4)`, `comboRank(..., nThreads = 4)`).
6
+
* Implemented a next-lexicographical algorithm for generating distinct integer compositions, enabling efficient large-scale generation such as `compositionsGeneral(50, 8)`.
7
+
* Added accompanying algorithms for the distinct integer composition case, exposed through: `compositionsSample`, `compositionsRank`, and `compositionsIter`.
8
+
* Enhanced `permuteCount()` to count permutations of partitions when called with `constraintFun = "sum"` and `comparisonFun = "=="`, allowing optimized counting in cases that reduce to partition/composition counting.
9
+
10
+
## Bug Fixes:
11
+
12
+
* Improved input validation for constraint-based calls by requiring `comparisonFun` to be a character vector (now errors early with a clearer message).
13
+
* Fixed edge-case handling in partition iteration logic where boundary-derived indices could become negative, preventing incorrect behavior in some partition/multiset scenarios.
14
+
15
+
## Improvements:
16
+
17
+
* Added a package load-time check that validates the loaded shared library matches the installed package version, producing a clear reinstall/restart error instead of potential crashes from stale binaries.
18
+
* Improved handling of singleton `v` with singleton `freqs` so that numeric values are interpreted correctly in some constrained/ranking paths.
19
+
* Added nonexported `permutePartsDesign()` to inspect the partition-design/counting setup used by `permuteCount()` when it reduces to a partition/composition counting problem.
20
+
21
+
## Performance:
22
+
23
+
* General performance improvements for ranking and composition-related algorithms, including multi-threaded ranking support.
24
+
25
+
## Internal:
26
+
27
+
* Added developer tooling and expanded internal type/class infrastructure to support the new composition and counting paths.
28
+
1
29
# RcppAlgos 2.9.5
2
30
3
31
## Other:
@@ -131,7 +159,7 @@
131
159
132
160
## Bug Fixes:
133
161
134
-
* Now checking class of input vector for partition funcitons.
162
+
* Now checking class of input vector for partition functions.
135
163
136
164
* Now when `partitionsCount` returns 0, the number of results is zero. Before, we were checking for count of partitions to be greater than zero, otherwise we would use the standard combinatorial counting functions to determine the number of results. This lead to strange results with elements not present in the original vector.
0 commit comments