updateV: Update V

View source: R/optimize.R

updateVR Documentation

Update V

Description

Function to update V using given Delta and U. The new V is set as X Y^T, where SVD of D^T U Delta = X Sigma Y^T.

Usage

updateV(mat_list, u, d)

Arguments

mat_list

A list containing numeric matrices

u

A list containing U matrices

d

A list containing delta matrices

Value

a list containing new U matrices

Examples

set.seed(1231)
mymat <- createRandomMatrices(n = 3, ncols = 3, nrows = 3)
sbf <- SBF(matrix_list = mymat, orthogonal = FALSE,
           transform_matrix = FALSE)
newU <- updateU(mymat, sbf$delta, sbf$v)
newDelta <- updateDelta(mymat, newU, sbf$v)
newV <- updateV(mymat, newU, newDelta)

amalthomas111/SBF documentation built on Sept. 2, 2022, 11:27 a.m.