calcNearestOrthoMatrix: Find the Nearest orthogonal matrix

View source: R/optimize.R

calcNearestOrthoMatrixR Documentation

Find the Nearest orthogonal matrix

Description

Function to compute nearest orthogonal matrix to a set of matrices.

Usage

calcNearestOrthoMatrix(mat_list)

Arguments

mat_list

A list of numeric matrices

Value

orthogonal matrix

Examples

set.seed(1231)
mymat <- createRandomMatrices(n = 3, ncols = 3, nrows = 3)
nearest_ortho <- calcNearestOrthoMatrix(mymat)
print(nearest_ortho %*% t(nearest_ortho))

amalthomas111/SBF documentation built on Sept. 2, 2022, 11:27 a.m.