|
Macaulay2 Engine
|
Helper that builds the p-th symmetric power of a 1-by-n matrix. More...
Static Public Member Functions | |
| static Matrix * | symmetricPower (const Matrix *m0, int p) |
Private Member Functions | |
| void | symm1 (vec f, int lastn, int pow) |
| SymmMatrix (const Matrix *m0, int p) | |
| Matrix * | value () |
Private Attributes | |
| int | symm1_next |
| const Ring * | R |
| int | ncols |
| const Matrix * | m |
| MatrixConstructor | result |
Helper that builds the p-th symmetric power of a 1-by-n matrix.
Invoked through the static symmetricPower(m, p) entry point, which validates that the input has exactly one row and then runs the recursive multi-index walker. Each resulting column corresponds to a multiset of p columns of m whose entries are multiplied together — the standard symmetric-power-of-a- matrix construction. Used to implement the engine-side symmetricPower matrix operation.
Definition at line 55 of file matrix-symm.cpp.