airm_vec {riemtan} | R Documentation |
Compute the AIRM Vectorization of Tangent Space
Description
Vectorizes a tangent matrix into a vector in Euclidean space using AIRM.
Usage
airm_vec(sigma, v)
Arguments
sigma |
A symmetric positive-definite matrix of class |
v |
A symmetric matrix of class |
Value
A numeric vector, representing the vectorized tangent image.
Examples
if (requireNamespace("Matrix", quietly = TRUE)) {
library(Matrix)
sigma <- diag(2) |>
Matrix::nearPD() |>
_$mat |>
Matrix::pack()
v <- diag(c(1, 0.5)) |>
Matrix::symmpart() |>
Matrix::pack()
airm_vec(sigma, v)
}
[Package riemtan version 0.1.0 Index]