R/dts_utils.R
diag_inverse.Rd
Invert a diagonal matrix which is passed as a vector. If any elements are zero, set them to one.
diag_inverse(x)
a numeric vector
a diagonal matrix