myCX: CX Decomposition as an example of user-defined matrix...

Description Usage Arguments Value Author(s) References Examples

View source: R/myCX.R

Description

The input data is assumed to be a matrix. When algorithms of MWCAParams and CoupledMWCAParams are specified as "myCX", This function is called in MWCA and CoupledMWCA.

Usage

1
myCX(Xn, k)

Arguments

Xn

The input matrix which has N-rows and M-columns.

k

The rank parameter (k <= min(N,M))

Value

The output matrix which has N-rows and k-columns.

Author(s)

Koki Tsuyuzaki

References

Petros Drineas et al., (2008). Relative-Error CUR Matrix Decompositions, SIAM Journal on Matrix Analysis and Applications, 30(2), 844-881.

Examples

1
2
3
4
5
  if(interactive()){
    # Test data
    matdata <- matrix(runif(10*20), nrow=10, ncol=20)
    myCX(matdata, k=3)
  }

mwTensor documentation built on Oct. 12, 2021, 9:07 a.m.