Method of CPNTensor.
Split a signed parameter matrix into the One / MinusOne / Continuous components.
Source: src/tensor/@CPNTensor/CPNTensor.m
obj = obj.trueFalseParameter(M)trueFalseParameter decomposes a single signed parameter
matrix M (rows = equations, columns = monomials) into the
tensor’s three parameter components and stores them sparsely:
parameterMatrixOne
— the coefficients equal to
;parameterMatrixMinusOne
— the coefficients equal to
;parameterMatrixContinuous
— every remaining coefficient value.Subtracting the
mask and adding back the
mask removes exactly the
entries, so parameterMatrixContinuous holds only
coefficients whose magnitude is not
.
This keeps the common unit coefficients as logical masks while storing
the general values numerically.
This method backs the two-argument constructor and fromRawMatrices.
It sets the parameter components but does not itself refresh the
rank.
| Argument | Description |
|---|---|
obj |
CPNTensor to update. |
M |
Signed parameter matrix, rows = equations, columns = monomials (numeric or logical). |
| Output | Description |
|---|---|
obj |
CPNTensor with parameterMatrixOne,
parameterMatrixMinusOne and
parameterMatrixContinuous set. |
CPNTensor · trueFalseStructure
· fromRawMatrices
· fromSparseComponents
MyToolbox Documentation | Generated automatically by CI/CD pipeline