R/airm.R
vec_at_id.Rd
Converts a symmetric matrix into a vector representation specific to operations at the identity matrix.
vec_at_id(v)
A symmetric matrix of class dspMatrix.
dspMatrix
A numeric vector, representing the vectorized tangent image.
if (requireNamespace("Matrix", quietly = TRUE)) { library(Matrix) v <- diag(c(1, sqrt(2))) |> Matrix::symmpart() |> Matrix::pack() vec_at_id(v) } #> [1] 1.000000 0.000000 1.414214