Private functions
This page of the docs is still a work-in-progress. Check back later!
GCPDecompositions.GCPAlgorithms._gcp
— Function_gcp(X, r, loss, constraints, algorithm)
Internal function to compute an approximate rank-r
CP decomposition of the tensor X
with respect to the loss function loss
and the constraints constraints
using the algorithm algorithm
, returning a CPD
object.
GCPDecompositions.TensorKernels._checked_khatrirao_dims
— Function_checked_khatrirao_dims(A1, A2, ...)
Check that A1
, A2
, etc. have compatible dimensions for the Khatri-Rao product. If so, return a tuple of the number of rows and the shared number of columns. If not, throw an error.
GCPDecompositions.TensorKernels._checked_mttkrp_dims
— Function_checked_mttkrp_dims(X, (U1, U2, ..., UN), n)
Check that X
and U
have compatible dimensions for the mode-n
MTTKRP. If so, return a tuple of the number of rows and the shared number of columns for the Khatri-Rao product. If not, throw an error.
GCPDecompositions.TensorKernels._checked_mttkrps_dims
— Function_checked_mttkrps_dims(X, (U1, U2, ..., UN))
Check that X
and U
have compatible dimensions for the mode-n
MTTKRP. If so, return a tuple of the number of rows and the shared number of columns for the Khatri-Rao product. If not, throw an error.