Fast Kronecker-product matrix-vector multiply (times vary fastest)
kron_mv.RdIn plain terms: multiplies a big covariance
\(K = \mathrm{space} \otimes \mathrm{time}\) by a vector without ever
forming K, using a reshape-multiply-reshape trick.
Arguments
- v
Numeric vector of length
nrow(space) * nrow(time), ordered with times varying fastest within site.- space
Spatial kernel matrix (size \(n \times n\)). Must be symmetric (kernels are, by construction) – the implementation relies on
t(space) == space.- time
Temporal kernel matrix (size \(nt \times nt\)).