- Add a
copy_from
method to theBitset
class. - Improve performance of bitset operations by making
num_bits
a compile-time constant expression. - Support vectors of logicals as an argument to
filter_bitset
. - Allow processes to be named, in order to produce more useful call stacks.
- Allow events and variables to be added and removed when restoring the simulation.
- Added an
all.equal
implementation for bitsets.
- Added a flag to the Event constructor to tweak the restore semantics.
- Replaced the Bitset R6 class with named lists, making them faster to instantiate.
- Replaced the bitset sampling implementation with a faster algorithm.
- Various other performance improvements, mostly avoiding copies of vectors.
- Fixed the website generation.
- Fix an uninitialized memory-read that could cause spurious event triggers.
- Simulation state can be saved and restored, allowing the simulation to be resumed.
- Optimised rendering memory usage and speed
- Added benchmarks for rendering
- Vector-based updates are consolidated into one place
- Resizing memory bug fixed
- Simplifed RaggedVariable instantiations to aliases until implementations are implemented
- All variables and targeted events are resizable
- Ragged variables for integers and doubles
- fix bug with C++ event listeners
- Check for bad bitset input when queueing updates to CategoricalVariable objects PR here
- Add "bench" package to suggests and include benchmarking scripts of major
functionality in
tests/performance
PR here - Update to latest version of "testthat" package so that C++ tests of
IterableBitset
object can be run without giving LTO check errors (seesrc/test-bitset.cpp
) - Add CITATION file
- Add method
Bitset$clear
to zero out all set bits in bitsets PR here - Fix bug (issue here) where
DoubleVariable
andIntegerVariable
updates could change size of the variable object PR here
- Added a
NEWS.md
file to track changes to the package. - Add Mac OS files to .gitignore
- Update pkgdown reference organization.
- Update R-CMD-check workflow.
-
Event.h
now defines class methods outside of the class definition for easier readability, and add documentation. -
TargetedEvent$schedule
now dispatches to different C++ functions inevent.cpp
andEvent.h
depending on if input index is a bitset or vector (previous behavior used bitset's$to_vector$ method in R to pass a vector). -
test-event.R
now only contains tests forEvent
class, new test filetest-targetedevent.R
contains a much updated suite of tests for theTargetedEvent
class. - Fix bug where
CategoricalVariable
could be queued updates for indices in a vector that were outside the range of the population. - Update
Bitset$not
to operate in place. inplace = FALSE will be deprecated in 0.2.0 - Rename the IterableBitset ~ operator to !
- Added package logo.
- Update DESCRIPTION and remove "reshape2" from suggested packages.
- If given a
Bitset
for argumentindex
,queue_update
methods forIntegerVariable
andDoubleVariable
pass the bitset directly to the C++ functionsinteger_variable_queue_update_bitset
anddouble_variable_queue_update_bitset
rather than converting to vector and using vector methods. CategoricalVariable.h
,IntegerVariable.h
, andDoubleVariable.h
now define class methods outside of the class definition for easier readability, and add documentation.CategoricalVariable
,IntegerVariable
, andDoubleVariable
classes define a virtual destructor with default implementation.get_index_of_set
andget_size_of_set_vector
methods forIntegerVariable
now pass arguments by reference.get_values
method forIntegerVariable
andDoubleVariable
corrected to return value rather than reference.- add overload for
get_values
forIntegerVariable
andDoubleVariable
to acceptstd::vector<size_t>
as argument rather than converting to bitset. - add function
bitset_to_vector_internal
toIterableBitset.h
. - split
testthat/test/test-variables.R
intotestthat/test/test-categoricalvariable.R
,testthat/test/test-integervariable.R
, andtestthat/test/test-doublevariable.R
- remove unnecessary
#include
statements from header files. - remove unnecessary comparisons for
size_t
types.