<#GAPDoc Label="MMXFormatLine1">
<Listing Type="Code"><![CDATA[
%%MatrixMarket matrix coordinate `type` general
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="FieldHeaderA">
<Listing Type="Code"><![CDATA[
 Field: `field` PrimitiveP(x): `polynomial` Format: `format`
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="MMXFormatLine2">
<Listing Type="Code"><![CDATA[
% Field: GF(`q`) PrimitiveP(x): `polynomial` 
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="MMXFormatLine2A">
<Listing Type="Code"><![CDATA[
% Field: GF(25) PrimitiveP(x): x^2-x+2 Format: PowerInt
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="MMXFormatLine2B">
<Listing Type="Code"><![CDATA[
% Field: GF(25) PrimitiveP(x): x^2+4*x+2 
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="MMXFormatLine3">
<Listing Type="Code"><![CDATA[
% Example of the comment line
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="MMXFormatLineA">
<Listing Type="Code"><![CDATA[
rows     columns     `(number of non-zero elements)`
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="MMXFormatLineB">
<Listing Type="Code"><![CDATA[
i     j     element[i,j]
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="MMXFormatLineC">
<Listing Type="Code"><![CDATA[
i     j     a[i,j]     b[i,j]
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="SampleFileA">
<Listing Type="Code"><![CDATA[
%%MatrixMarket matrix coordinate integer general                
% Field: GF(7)
% 5-qubit code generator matrix / normal storage with intercalated cols
5 10 20
1 1 1
1 4 1
1 6 -1
1 7 -1
2 3 1
2 6 1
2 8 -1
2 9 -1
3 1 -1
3 5 1
3 8 1
3 10 -1
4 2 -1
4 3 -1
4 7 1
4 10 1
5 2 1
5 4 -1
5 5 -1
5 9 1
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="SampleFileB">
<Listing Type="Code"><![CDATA[
%%MatrixMarket matrix coordinate complex general
% works with any prime field
% 5-qubit code generator matrix / normal storage with intercalated cols
% [[5,1,3]]_p
4 5 16
1 1 1 0
1 2 0 1
1 3 0 -1
1 4 -1 0
2 2 1 0
2 3 0 1
2 4 0 -1
2 5 -1 0
3 1 -1 0
3 3 1 0
3 4 0 1
3 5 0 -1
4 1 0 -1
4 2 -1 0
4 4 1 0
4 5 0 1
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="SampleFileC">
<Listing Type="Code"><![CDATA[
%%MatrixMarket matrix coordinate complex general
% Field: GF(2^3) PrimitiveP(x): x^3+x+1
% code [[5,1,3]]_8
% cyclic w=4 x^6+Z(2^3)^4*x^5+Z(2^3)^4*x^3+Z(2)^0
% Powers of GF(8) primitive element and -1 for Zero are given
5 5 20
1 1 0 -1
1 2 -1 4
1 3 -1 4
1 4 0 -1
2 2 0 -1
2 3 -1 4
2 4 -1 4
2 5 0 -1
3 1 0 -1
3 3 0 -1
3 4 -1 4
3 5 -1 4
4 1 -1 4
4 2 0 -1
4 4 0 -1
4 5 -1 4
5 1 -1 4
5 2 -1 4
5 3 0 -1
5 5 0 -1
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="">
<Listing Type="Code"><![CDATA[
 % Field: GF(p)
]]></Listing>
<Listing Type="Code"><![CDATA[
 % Field: GF(7^4) PrimitiveP(x): x^4-2*x^2-3*x+3
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="LineOne">
<Listing Type="Code"><![CDATA[
 %%MatrixMarket matrix coordinate `type` general 
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="LineTwoA">
<Listing Type="Code"><![CDATA[
 % Field: `valid_field_name_in_Gap` 
]]></Listing>

<#/GAPDoc>
<#GAPDoc Label="LineTwoB">
<Listing Type="Code"><![CDATA[
 % Field: `valid_field_name_in_Gap` PrimitiveP(x): `polynomial` 
]]></Listing>

<#/GAPDoc>
