project-onto: Vector Projection

project-ontoR Documentation

Vector Projection

Description

Project a vector onto the column space of a matrix or the orthogonal complement of the column space of a matrix; the null space of A transpose.

Usage

project_onto(x, A)

project_onto_perp(x, A)

Arguments

x

a vector

A

a matrix

Value

...

See Also

base::qr.fitted

Examples


A <- diag(5)[,1:2]
x <- 1:5
project_onto(x, A)
x %>% project_onto(A)

project_onto_perp(x, A)
x %>% project_onto_perp(A)


dkahle/algstat documentation built on May 23, 2023, 12:29 a.m.