Learn R Programming

riemtan (version 0.2.5)

vec_at_id: 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)

Value

A numeric vector, representing the vectorized tangent image.

Arguments

v

A symmetric matrix of class dspMatrix.

Examples

Run this code
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