Open Banana1530 opened 5 years ago
In the code C++ and R have their own enum-type structure to encode selection schemes and deflation schemes (DeflationScheme
and SelectionScheme
in moma_base.h
, and DEFLATION_SCHEME
and SELECTION_SCHEME
in util.R
). However communication between them is essentially passing integers.
To ensure consistency in encoding between R and C++ we need to manually maintain moma_base.h
and util.R
.
Hmmm.... it looks like the answer is "sort of." The following works, but isn't totally type-safe. We could probably do a more general solution in the future. Issue?
Originally posted by @michaelweylandt in https://github.com/DataSlingers/MoMA/pull/54