R/slca_proc_design_matrix_xlambda.R

Defines functions slca_proc_design_matrix_xlambda

## File Name: slca_proc_design_matrix_xlambda.R
## File Version: 0.04

slca_proc_design_matrix_xlambda <- function(Xdes)
{
    dimXdes <- dim(Xdes)
    res <- cdm_rcpp_slca_calc_Xdes( XDES=as.vector(Xdes), dimXdes=dimXdes )
    # XdesM     [ii,kk,tt,ll, value ]
    NX <- res$NXdesM
    XdesM <- res$XdesM[1:NX,]
    XdesM <- XdesM[ order( XdesM[,1]*NX + XdesM[,3] ), ]
    #--- output
    res <- list(XdesM=XdesM, NX=NX, dimXdes=dimXdes )
    return(res)
}

Try the CDM package in your browser

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

CDM documentation built on Aug. 25, 2022, 5:08 p.m.