Sparsity-retaining matrix multiplication
grapes-sp-grapes.Rd
Standard matrix multiplication destroys automatic sparsity detection by RTMB
which is essential for models with high-dimensional random effects.
This can be mitigated by changing to "plain" with TapeConfig
, but this can make AD tape construction very slow.
Here, we provide a different version that retains sparsity. It may be slightly slower than the standard method when constructing the AD tape.