Learn R Programming

activegp (version 1.1.1)

subspace_dist: 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)

Value

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

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).