Converts a symmetric matrix into a vector representation specific to operations at the identity matrix.

vec_at_id(v)

Arguments

v

A symmetric matrix of class dspMatrix.

Value

A numeric vector, representing the vectorized tangent image.

Examples

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