R/projections.R

Defines functions orth project Corth

Documented in Corth orth project

###
### Projection utilities
###

orth <- function(M, N) {                # O_N M
    ## FIXME: This must be optimised:
    M - N %*% solve(crossprod(N)) %*% crossprod(N, M)
}
## This function is currently not used in the code:
project <- function(M, N) {  #P_N, M)
    ## FIXME: Must be optimised:
    N %*% solve(crossprod(N)) %*% crossprod(N, M)
}
Corth <- function(M, N) {               #C_N M
    ## FIXME: This must be optimised:
    solve(crossprod(N)) %*% crossprod(N, M)
}

Try the lspls package in your browser

Any scripts or data that you put into this service are public.

lspls documentation built on May 2, 2019, 12:19 p.m.