65.68 SrivastavaCode

SrivastavaCode( a, w, F )
SrivastavaCode( a, w, mu, F )

SrivastavaCode returns a Srivastava code with parameters a, w, mu. <a> = a_1, ..., a_n and <w> = w_1, ..., w_s are lists of n+s distinct elements of <F>=GF(q^m). The default for mu is 1. The Srivastava code is a generalized Srivastava code (see GeneralizedSrivastavaCode), in which <z_i> = a_i^{<mu>} for some mu and t=1.

    gap> a := Elements( GF(11) ){[2..8]};;
    gap> w := Elements( GF(11) ){[9..10]};;
    gap> C := SrivastavaCode( a, w, 2, GF(11) );
    a linear [7,5,3]2 Srivastava code over GF(11)
    gap> IsMDSCode( C );
    true    # Always true if F is a prime field 

Previous Up Top Next
Index

GAP 3.4.4
April 1997