NEWS
TMB 1.9.15 (2024-09-09)
- Add missing std::numeric_limits for 'TMBad' #398 (fixing undefined
behaviour in some cases)
- Enable bitwise reproducible results for 'TMBad' by default
TMB 1.9.14 (2024-07-03)
- Fix C++20 compiler warning
TMB 1.9.13 (2024-06-28)
TMB 1.9.12 (2024-06-19)
- Fix clang-19 build issue
- use Matrix API for SEXP->(cholmod_factor *) coercion (#393)
- Add TMB.Version() #387
- Fix protection bug in REPORT(SparseMatrix)
TMB 1.9.11 (2024-04-03)
- Fix conflict between TMB and Eigen parallelization (GH #390).
- Matrix ABI check no longer writes external file during installation
(GH #392).
- Improved diagnostic messages when data of invalid storage mode is
passed to TMB (GH #391).
TMB 1.9.10 (2023-12-12)
- precompile(): Translation unit changes that should not be visible to
the user.
TMB 1.9.9 (2023-11-28)
TMB 1.9.7 (2023-11-21)
- Fixed tweedie integer overflow for extreme parameters.
- Added new argument 'adaptive' to 'tmbprofile'.
- Added new atomic matrix functions 'sqrtm' and 'absm'.
- Avoid unnecessary warnings on 'Matrix package version inconsistency'.
TMB 1.9.6 (2023-08-11)
- Fix UBSAN observed for nested AD contexts.
TMB 1.9.5 (2023-07-18)
- R: Prepare determinant() change from Matrix version 1.6-0.
- R: oneStepPredict() now allows mixed discrete/continuous distributions.
- C++: New atomic 'fft'.
TMB 1.9.4 (2023-04-18)
- Fix internal bug causing wrong 'sparse_matrix_exponential' derivatives.
- Prepare for upcoming Matrix_1.5-5 (Fix misuse of Matrix C-API).
TMB 1.9.3 (2023-03-28)
- Prepare for Matrix 1.5-4 deprecations.
- checkConsistency(): New argument 'estimate' enables full simulation
study and another argument 'observation.name' can be used to not
retape between simulation replicates.
- oneStepPredict(): Eliminate nuisance warnings from generic method.
- C++ side: Added preprocessor flag 'TMB_ABORT' to better control
behaviour in 'TMB_SAFEBOUNDS' mode (e.g. signal normal R error
rather than abort). In addition, 'TMB_CATCH' can now be configured
to catch more than just std::bad_alloc.
TMB 1.9.2 (2023-01-23)
- Improved interoperability with Rcpp (conflicts resolved).
- Fix some broken sparse matrix coercions that used to work.
- New features on C++ side:
- Atomic sparse matrix exponential.
- Atomic vectorized operations mainly for internal use.
- Faster matrix multiply for higher order AD (see example 'hmm_filter').
- Utility for parameter object concatenation.
- Fix warnings from CRAN check page.
TMB 1.9.1 (2022-08-16)
- Prepare for Matrix 1.4-2 deprecations.
- Fix html version of sdreport docs (thanks to Kurt Hornik).
- Constant input test was missing for some special functions.
- Added argument 'max.order' to compile().
- oneStepPredict() CDF method was stabilized.
- 2D interpolation operator was added on C++ side.
TMB 1.9.0 (2022-05-27)
- Fix PROTECT bugs (thanks to Tomas Kalibera)
- Behavior if TMB parallization has been changed:
- Setting the number of threads of a TMB model using TMB::openmp() is now portable across platforms.
- Number of TMB threads no longer interferes with number of threads used by other packages or BLAS/LAPACK.
- By default, unless explicitly requested, models run with a single thread.
- precompile() can now auto generate 'TMB.h' and 'TMB.cpp' that may be used by R packages to split in several compilation units.
- MakeADFun() now checks that the DLL is loaded.
TMB 1.8.1 (2022-03-23)
- Fix some clang-14 compiler warnings.
TMB 1.8.0 (2022-03-07)
- Experimental support for new AD library 'TMBad' - see ?compile.
- Option to discard nuisance warnings from Eigen - see ?compile.
TMB 1.7.22 (2021-09-28)
- Fortran character strings: use 'FCONE' macro
- Add .onUnload() (GH #353)
- Fix tmbutils::array ASAN issue triggered by at least clang-13
TMB 1.7.21 (2021-09-06)
- Fix CRAN build issue triggered by clang 13.0.0 (omp.h)
- Fix tweedie thread safety on Windows (https://github.com/glmmTMB/glmmTMB/issues/714)
- Fix as.list(.) for class 'sdreport' (https://github.com/glmmTMB/glmmTMB/issues/692)
TMB 1.7.20 (2021-04-08)
- Make parList() work in more edge cases.
- Make tiny_ad variables work (again) with Eigen types.
- Avoid header issues in Matrix 1.3-0 due to SuiteSparse update (#340)
TMB 1.7.19 (2021-02-05)
- 'sdreport()' failed in a special case (GH #333)
- Improved implementation of 'rtweedie()'
- Fixed thread safety issues (GH #330)
- Fixed 'tmbroot()' and 'tmbprofile()' for single-parameter models
- Function 'compile()' now quotes more paths (GH #323)
TMB 1.7.18 (2020-07-27)
- Fix clang-ASAN issue caused by memory management changes
TMB 1.7.17 (2020-07-23)
- New function 'FreeADFun()' gives the user more control with memory
deallocation. In addition memory management of external pointers
have been improved - see '?FreeADFun'.
- Documentation errors in '?sdreport' have been corrected.
- The function 'oneStepPredict()' now calculates residuals in reverse
order because it is more stable. Old behaviour can be obtained by
passing 'reverse=FALSE'.
TMB 1.7.16 (2020-01-15)
- Fixed memory leaks in sparse hessian.
- logspace_add: Added some edge case reductions.
- 'oneStepPredict' no longer overwrites mapping of random effects.
- Fix isfinite, isinf, isnan etc (github #297).
- Add support for other object names to 'gdbsource'.
- dbinom: Handle edge cases 0*log(0).
- Add segment method to vector_indicator.
- data_indicator: Add default CTOR.
- splinefun: fix memleak + add vector evaluation.
- Saved models from old TMB versions should now be usable in new TMB
versions without giving the INTEGER(...) error.
- checkConsistency bugfix: did not work for mapped random effects.
TMB 1.7.15 (2018-11-09)
- Allow report array of any type (similar to vector case)
- Solve 'rck' issue from CRAN
- Fix bug in separable simulate
TMB 1.7.14 (2018-06-23)
- Fix performance bug triggered by R-devel.
- Fixed bug in sparsity detection algorithm.
- Tweedie atomic function speedup.
- Fix save/reload model object. Loaded object no longer overwrites
fitted parameters when running e.g. obj$report() or obj$simulate().
- New function 'tmbroot' computes likelihood profile confidence intervals.
TMB 1.7.13 (2018-03-22)
- Redundant warnings from CHOLMOD have been silenced.
- ADREPORT now tracks object dimensions. More infomation in
'?TMB::as.list.sdreport'.
- New feature to do process normalization from R. See
'?TMB::normalize'.
- New feature to update data from R without re-taping the
computational graph. Enabled on C++ side using 'DATA_UPDATE'.
- bugfix C++ namespace 'autodiff': Jacobian had wrong dimension.
TMB 1.7.12 (2017-12-11)
- Fix CRAN rchk tool warnings (although false alarm)
- New macro TMB_OBJECTIVE_PTR for more flexible use of DATA and
PARAMETER objects.
- Fix 'oneStepPredict' when no random effects.
- C callable routines 'tmb_forward' and 'tmb_reverse' added.
- Fix bug in empty array assignment.
- Fix slow 'oneStepPredict' caused by matrix inversion in
'tmbprofile'.
- TMB:::setupRstudio()
- compile: Add flag for tracing forward sweeps.
TMB 1.7.11 (2017-08-09)
- Allow logical data objects
- Fix conversion R <-> C++ of long objects
- Can now pass long vector (length >= 2^31) as DATA_VECTOR.
- Can now REPORT a long vector.
- Can now calculate long jacobian matrices (m*n can be greater than
2^31 where n is the number of parameters and m the number of
ADREPORTed variables).
- Fixed a possible segmentation fault in sparsity detection algorithm.
- New flag to sdreport() reduces memory usage when bias correcting a
large number of variables.
- New experimental function checkConsistency() to check the Laplace
approximation and correctness of the user template.
TMB 1.7.10 (2017-05-05)
- Fix broken Solaris build caused by Eigen 3.3.3 update
TMB 1.7.9 (2017-04-12)
- Fix PROTECT bugs reported by Tomas Kalibera.
- Now possible to use 'autodiff::hessian' in conjunction with atomic
functions.
- Fix 'testthat:::expect_equal(obj, obj)' crash for non-random effect
models.
- Fix compatibility issues of 'tmbutils::vector' with eigen 3.3.2.
TMB 1.7.8 (2017-02-08)
- Internal bug fixes.
- Fix bug in GMRF constructor from grid array.
- Fix printing of Eigen/AD types (broken by version 1.7.7)
TMB 1.7.7 (2017-02-01)
- Internal modifications:
- Fix Eigen 3.3.2 compatibility issues.
- Disable dynamic symbols.
TMB 1.7.6 (2017-01-15)
- Add Conway-Maxwell-Poisson distribution (dcompois, rcompois).
- Add lfactorial.
- Move MCMC to separate package.
- Add simulators for exponential, beta, F, logistic, Student T, and
Weibull distributions.
- Fix a bug in function 'split'.
TMB 1.7.5 (2016-11-21)
- Atomic logspace_add and logspace_sub.
- Numerically robust binomial and negative binomial density functions.
- New macros:
- DATA_STRING to pass strings from R.
- SIMULATE to mark blocks of simulation code.
- Simulation methods implemented for density classes:
- MVNORM, AR1, SCALE, VECSCALE, SEPARABLE, GMRF, ARk.
- R-style simulators now available from the template:
- rnorm, runif, rpois, rbinom, rgamma, rnbinom and rnbinom2.
TMB 1.7.4 (2016-09-21)
- Add onLoad check on 'Matrix' package version.
- runExample: Fixed bug when running all examples from a specified
example folder.
- sdreport: Fixed bug in the case with exactly one random effect.
- sdreport: Reduced size of output.
TMB 1.7.3
- New atomic functions:
- pbeta
- qbeta
- dtweedie
- besselK (derivatives wrt both arguments)
- besselI (derivatives wrt both arguments)
- besselJ (derivatives wrt both arguments)
- besselY (derivatives wrt both arguments)
- Adaptive numerical integration:
- gauss_kronrod::integrate (one dimension)
- gauss_kronrod::mvIntegrate (multiple dimensions)
- sdreport: Fix bug that caused bias.correction to break when
parameter maps were in use.
TMB 1.7.2 (2016-08-09)
- sdreport: Allow bias correct in chunks to reduce memory.
- Experimental TMB:::install.contrib to install user contributed cpp
code from github.
- Disable CHOLMOD warnings from inner problem when silent=TRUE.
- sdreport: Keep running when solve(hessian) fails.
- sdreport: Fix bug that caused summary(sdreport(.)) to fail when
nothing was ADREPORTed.
TMB 1.7.1
- Lots of minor performance optimizations.
- sdreport: New argument getReportCovariance.
- Reduces memory usage when many variables are ADREPORTed.
- bugfix: numeric(0) in random list of MakeADFun caused wrong
parameter list.
- New atomic: convol2d
TMB 1.7.0 (2016-03-25)
- CITATION update with JSS publication.
- New function 'as.list.sdreport' converts from sdreport format to
original parameter list structure.
- MCMC:
- Fix small bug in transforming intial values in NUTS.
- Rename mcmc -> run_mcmc to avoid conflict with coda package.
TMB 1.6.6 (2016-01-30)
- oneStepPredict: Add one-step mean to output for methods
'oneStepGaussianOffMode' and 'oneStepGeneric'.
- Array class changes:
- More explicit array assignment from other class:
Can now assign from matrix and un-evaluated expression template
E.g. a = a.matrix() * a.matrix();
- Documentation: warning about the 2D case
- Re-implement vec() operator (avoid loop)
- Add method matrix() to array class: Keeps first dimension and
collapses remaining dimensions.
- Clean up potential naming conflicts caused by Rmath macros
- Atomic functions general speedup
- bugfix: precompile broke REGISTER_ATOMIC
TMB 1.6.5 (2015-12-03)
- Fix bug that caused sdreport to fail for models using the 'profile'
argument to MakeADFun.
- Robustify marginal likelihood for extreme parameters (to help MCMC).
- MCMC: Improved stability of adaptive step size algorithm.
- Bias correction documentation and test example. Results are now part
of the summary output.
TMB 1.6.4
- precompile() makeover:
- Works on all platforms.
- Works with multiple models in same R instance.
- Frequently used classes MVNORM_t and GMRF_t added to precompilation.
TMB 1.6.3
- Fix array rows() method (The method inherited from Eigen would
report the length of the underlying vector).
- Eliminate std::cout in CRAN version.
- MCMC samplers (HMC, NUTS and RWM) added by Cole Monnahan.
TMB 1.6.0
- Major changeset to get closer to CRAN submission
- Added 'dontrun' to most examples. Reason: All useful TMB examples
take too long time to run because they require compilation.
- Removed TMB-internals.
- Added Roxygen for remaining functions: dynlib()
runSymbolicAnalysis() config() plot.parallelBenchmark()
summary.sdreport() print.sdreport() print.backtrace()
plot.tmbprofile() confint.tmbprofile()
- Got rid of global configuration, e.g flagsDefaults(),
newtonDefaults() etc.
- Reworked newtonOption() and adapted all examples to new syntax.
(NOTE: not entirely backwards compatible since to old version
modified global settings, which we do not allow anymore).
- Fixed several typos, e.g. c++ -> C++
- CITATION: Added arxiv reference.
- DESCRIPTION: Changed title and added URL.
- NAMESPACE: Cleanup
- CppAD jacobian: prefer reverse mode over forward mode if work is equal
- TMB only requires 1st order reverse (not forward) mode to be
implemented for atomic functions. This can result in the error
'order not implemented' if CppAD automatically selects forward over
reverse mode.
- In cases where the work of forward and reverse mode are equal it
is therefore more natural (from TMB perspective) to select reverse
mode.
- Document parallel_accumulator #122
- Lots of doxygen documentation updates
TMB 1.5-1
- From now on the github version follows the R version
- Added NEWS file
- Emacs mode version 3.0 from Arni Magnusson
- Robustify tmbprofile() #137
- Experimental oneStepPredict() now handles discrete case as part of a
general 'oneStepGeneric' method.
- tmbprofile() multiple changes
- Allow specification of a valid range of the parameter.
- Get more detail in the center of the distribution.
(does not affect cases where likelihood has been optimized)
- C++: New namespace 'autodiff' makes it easy to use AD from the user
template.
- C++: New namespace 'romberg' with wrappers around CppAD integration
routines.
- Automatic retape when loading saved ADFun objects.
- Keep attribute 'check.passed' when subsetting parameter list
- Fix 32 bit
- match pattern: Improvement for large problems. As a result it is now
be possible to handle 2^31-1 nonzeros in Cholesky factor. Old method
would break down around 2^30.
- MVNORM_t: Method to evaluate marginals.
- oneStepPredict() now works with maps #108.
- Lots of improvements and cleanups from Martin Maechler.
TMB 1.5-0
- Add pnorm/qnorm one-argument vectorized versions.
- bugfix: Vectorized math operations crashed in the zero-length case.
- Add missing bounds check to array class #100 - Now checks each index
component (not just the re-mapped univariate index).
- BesselK atomic + Matern correlation function.
- asSparseMatrix and asSparseVector fix: Conversion from dense to sparse
should not drop zero-entries that could potentially become nonzero
(i.e. parameter dependent entries).
- CppAD::Variable now works for TMB models.
- Script to enable 'runSymbolicAnalysis' on all Linux and OS X systems.
- New experimental function 'oneStepPredict' for OSA residuals with
ar1xar1 as an example.
- New atomic function 'ppois'.
- REPORT: Allow report vector of 'anything'.
- getUserDLL: Improve guess of user's DLL code (when DLL not given to
MakeADFun).
- Eliminate warning with '-Wpedantic'.
- sdreport new option: ignore.parm.uncertainty.
- New example: HMM filter.
- General 1D likelihood profile function + method to get profile
confidence intervals + plot method.
- MakeADFun: New option to move outer parameters to the inner problem
(purpose: get same speed as the REML trick for linear fixed effects
without loosing the ML interpretation).
- MakeADFun: New argument 'silent' to disable all tracing output.
TMB 1.4-0
- CppAD updated to development version. Reduced peak memory usage with
up to 50% for large models.
- New configuration variables.
- Avoid crashes due to memory allocation errors.
- Print index errors to error stream.
- Allow compilation with -std=c++11.
- sdreport: bias.correct optimizations.
- Implement up to 7d array (like admb).
- Allow lists as data object with R-inla SPDE structures as an example.
TMB 1.0-0