Download HAPprime
Transcript
HAPprime 6.1.14 51 HAPPRIME GenerateFromGeneratingRowsCoefficientsXX ♦ HAPPRIME GenerateFromGeneratingRowsCoefficients(gens, GA, c) (operation) ♦ HAPPRIME GenerateFromGeneratingRowsCoefficients(gens, GA, coll) (operation) ♦ HAPPRIME GenerateFromGeneratingRowsCoefficientsGF(gens, GA, c) (operation) ♦ HAPPRIME GenerateFromGeneratingRowsCoefficientsGF(gens, GA, coll) (operation) Returns: Vector, or list of vectors For a vector c, returns (as a vector), the module element generated by multiplying c by the expansion of the generators gens. For a list of coefficient vectors coll, this returns a list of generating vectors. The standard versions of this function use standard linear algebra. The GF versions only performs the expansion of necessary generating rows, and only expands by one group element at a time, so will only need at most twice the amount of memory as that to store gens, which is a large saving over expanding the generators by every group element at the same time, as in a naive implementation. It may also be faster. 6.1.15 HAPPRIME RemoveZeroBlocks ♦ HAPPRIME RemoveZeroBlocks(gens, GA) (operation) Returns: Vector Removes from a set of generating vectors gens (with ModuleGroupAndAction (3.4.5) GA) any blocks that are zero in every generating vector. Removal is done in-place, i.e. the input argument gens will be modified to remove the zero blocks. Zero blocks are unaffected by any row or expansion operation, and can be removed to save time or memory in those operations. The function returns the original block structure as a vector, and this can be used in the function HAPPRIME AddZeroBlocks (6.1.16) to reinstate the zero blocks later, if required. See the documentation for that function for more detail of the block structure vector. 6.1.16 HAPPRIME AddZeroBlocks ♦ HAPPRIME AddZeroBlocks(gens, blockStructure, GA) (operation) Returns: List of vectors Adds zero blocks to a set of generating vectors gens to make it have the block structure given in blockStructure (for a given ModuleGroupAndAction (3.4.5) GA). The generators gens are modified in place, and also returned. The blockStructure parameter is a vector of which is the length of the required output vector and has zeros where zero blocks should be, and is non-zero elsewhere. Typically, an earlier call to HAPPRIME RemoveZeroBlocks (6.1.15) will have been used to remove the zero blocks, and this function and such a blockStructure vector is returned by this function. HAPPRIME AddZeroBlocks (6.1.16) can be used to reinstate these zero blocks. 6.2 FG-modules FG-modules in HAPprime use the datatype FpGModuleGF (Chapter 3). Internally, this uses many of the functions listed in Section 6.1, and further internal functions are listed below.