Method of CPNTensor.
Convert explicit CPN structure and parameter matrices of mss models into the full
multilinear parameter matrix.
Source: src/tensor/@CPNTensor/CPN2mat.m
F = obj.CPN2mat(structureMatrix, parameterMatrix)
F = obj.CPN2mat(structureMatrixTrue,...
structureMatrixFalse,...
structureMatrixContinuous,...
parameterMatrixOne, parameterMatrixMinusOne,...
parameterMatrixContinuous)The function supports both standard CPN representations and hybrid CPN representations containing true, false and continuous variables.
The resulting parameter matrix is expressed in the canonical monomial basis and can be directly converted into a TTTensor using TTTensor.fromFullParameterMatrix.
This utility is primarily intended for model conversion and validation of Tensor Train representations.
| Argument | Description |
|---|---|
obj |
CPNTensor
object. |
structureMatrix |
Structure matrix. |
parameterMatrix |
Parameter matrix. |
structureMatrixTrue |
Sparse logical mask of monomial factors of signals . |
structureMatrixFalse |
Sparse logical mask of complemented factors . |
structureMatrixContinuous |
Sparse weights for general factors . |
parameterMatrixOne |
Sparse logical mask of coefficient . |
parameterMatrixMinusOne |
Sparse logical mask of coefficient . |
parameterMatrixContinuous |
Sparse remaining coefficient values. |
| Output | Description |
|---|---|
F |
Sparse multilinear parameter matrix in monomial basis. |
MyToolbox Documentation | Generated automatically by CI/CD pipeline