airm_vec | R Documentation |
Vectorizes a tangent matrix into a vector in Euclidean space using AIRM.
airm_vec(sigma, v)
sigma |
A symmetric positive-definite matrix of class |
v |
A symmetric matrix of class |
A numeric vector, representing the vectorized tangent image.
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.