Learn R Programming

CVarE (version 1.1)

rStiefel: Random sample from Stiefel manifold.

Description

Draws a random sample from the invariant measure on the Stiefel manifold \(S(p, q)\).

Usage

rStiefel(p, q)

Arguments

p

row dimension

q

col dimension

Value

A \(p \times q\) semi-orthogonal matrix.

Examples

Run this code
# NOT RUN {
V <- rStiefel(6, 4)
# }

Run the code above in your browser using DataLab