powered by
Converts a symmetric matrix into a vector representation specific to operations at the identity matrix.
vec_at_id(v)
A numeric vector, representing the vectorized tangent image.
A symmetric matrix of class dspMatrix.
dspMatrix
if (requireNamespace("Matrix", quietly = TRUE)) { library(Matrix) v <- diag(c(1, sqrt(2))) |> Matrix::symmpart() |> Matrix::pack() vec_at_id(v) }
Run the code above in your browser using DataLab