NEWS.md
[]
are now equal to the empty setConditionalSet
condition
argument now function(x) TRUE
ConditionalSet
now omits RHS if only "TRUE"
Complex
now inherits from Set
, incorrect methods for isSubset, equals
have been removed.Multiset
for sets with non-unique elements but no orderingTuple
and FuzzyTuple
list
unless single elements requestedConditionalSet
is fixedRationals
and child-classes now error on calls to contains, isSubset, equals
as any prior results were likely wrong/misleadingInterval
classInterval$contains
to return TRUE
for tuplesExponentSet
sLogicalSet
, the set of {TRUE, FALSE}
as.Set.numeric
and as.Tuple.numeric
$contains
method for Interval
and Set
. Rcpp
now used for Interval
.Interval
if not bounded above and upper
is Inf then max = .Machine$double.xmax
, analogously for lower
.Interval
is now ExtendedReals
as.Set
and as.Interval
S3 methodsUnionSet
cardinality calculationUniversalSet
countabilitySet
constructorsetunion
causing some intervals not to be combined correctlyInterval$isSubset
now compares sets using max
and min
instead of upper
and lower
min
and max
in Interval
now uses 1e-15
instead of .Machine$double.xmin
$elements
now always returns a list
$add
public method to sets, which mutates sets by adding given elements, and coercing to the typed-set class if appropriate$remove
public method to sets, which mutates sets by removing given elements.test/check/assertContains
.test/check/assertSubset
.absComplement
method is now deprecated, instead use setcomplement
and omit the y
argumentcontains
default caused by %inset%
SpecialSet
s when zero == TRUE
UniversalSet
for the set containing all elementsuniverse
of sets to UniversalSet
Set
s no longer guess the set class, instead an extra class
argument is added to give a set the typed
propertySet
structure is slightly changed so that set elements are now stored in lists by default, which is only changed if the set is typed
element
argument to Set
constructor, which takes a list
. This is more efficient if passing lists of lists or lists of multiple types, and in line with the FuzzySet
constructorConditionalSet
spowerset
to always return a Set
of Set
s (even if input is Tuple
)Properties
causing an error if cardinality was too largeSet
constructor bottleneck by adding ‘typed’ setsuse_unicode
default to l10n_info()$UTF-8
set6
upgrades the sets
package to R6. Many forms of mathematical sets are implemented, including (countably finite) sets, tuples, intervals (countably infinite or uncountable), and fuzzy variants. Wrappers extend functionality by allowing symbolic representations of complex operations on sets, including unions, (cartesian) products, exponentiation, and differences (asymmetric and symmetric).set6
is currently ‘maturing’, so whilst no major updates are planned they may happen. Constant minor updates should be expected.