vec_at_id: Vectorize at Identity Matrix

View source: R/airm.R

vec_at_idR Documentation

Vectorize at Identity Matrix

Description

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

Usage

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)
}

riemtan documentation built on June 8, 2025, 9:39 p.m.