| %sp% | R Documentation |
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.
A %sp% B
A |
matrix of dimension n x p |
B |
matrix of dimension p x m |
the matrix product of A and B, which is of dimension n x m
A <- matrix(1:6, nrow = 2, ncol = 3)
B <- matrix(7:12, nrow = 3, ncol = 2)
A %sp% B
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.