rrcov3way (version 0.1-18)

orth: Orthonormal basis for the column space of matrix

Description

Computes orthonormal basis for the column space of matrix (range space, image of a matrix)

Usage

orth(A)

Arguments

A

A numeric matrix.

Value

B orthonormal basis for the column space of A.

Examples

Run this code
# NOT RUN {
 hilbert <- function(n) { i <- seq_len(n); 1/outer(i - 1L, i, "+") }
 H12 <- hilbert(12)
 rankMM(H12)             # -> 11 - numerically more realistic
 rankMM(H12, tol=0)      # -> 12
 B <- orth(H12)

 t(B) %*% B
 ## pracma::subspace(H12, B)

# }

Run the code above in your browser using DataLab