Skip to contents

Computes principal angles between the column spaces spanned by U and V.

Usage

subspace_principal_angles(U, V)

Arguments

U, V

Matrices with the same number of rows.

Value

Numeric vector of angles in radians.

See also

procrustes_distance() for an alternative subspace distance metric

Other subspace analysis: procrustes_distance(), whitened_matrix(), whitened_svd()

Examples

# \donttest{
set.seed(1)
U <- matrix(rnorm(50), nrow = 10)
V <- matrix(rnorm(50), nrow = 10)
theta <- subspace_principal_angles(U, V)
# }