subspace_dist {activegp}R Documentation

Get the distance between subspaces defined as the ranges of A and B

Description

Get the distance between subspaces defined as the ranges of A and B

Usage

subspace_dist(A, B, r)

Arguments

A

A matrix or const_C object.

B

Another matrix with the same number of rows as A, or const_C object of the same dimension.

r

A scalar integer, the dimension of the subspace to compare (only necessary if either A or B is a const_C object).

Value

A nonnegative scalar giving the cosine of the first principle angle between the two subspaces.


[Package activegp version 1.1.1 Index]