trueFalseParameter

Method of CPNTensor.

Split a signed parameter matrix into the One / MinusOne / Continuous components.

Source: src/tensor/@CPNTensor/CPNTensor.m

Syntax

obj = obj.trueFalseParameter(M)

Description

trueFalseParameter decomposes a single signed parameter matrix M (rows = equations, columns = monomials) into the tensor’s three parameter components and stores them sparsely:

Subtracting the +1+1 mask and adding back the 1-1 mask removes exactly the ±1\pm 1 entries, so parameterMatrixContinuous holds only coefficients whose magnitude is not 11. 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.

Input arguments

Argument Description
obj CPNTensor to update.
M Signed parameter matrix, rows = equations, columns = monomials (numeric or logical).

Output arguments

Output Description
obj CPNTensor with parameterMatrixOne, parameterMatrixMinusOne and parameterMatrixContinuous set.

See also

CPNTensor · trueFalseStructure · fromRawMatrices · fromSparseComponents


MyToolbox Documentation | Generated automatically by CI/CD pipeline