bdiag_check function

Create block diagonal matrix (safe version)

Create block diagonal matrix (safe version)

This version of bdiag checks whether the matrices passed as arguments are NULL. This avoids errors that would arise if using bdiag directly.

bdiag_check(...)

Arguments

  • ...: Matrix or list of matrices (only the first argument is used)

Returns

Block diagonal matrix

Other functions in hmmTMB

Related functions from the same R package