Skip to content

Commit

Permalink
MTXE file parsing modified (#34)
Browse files Browse the repository at this point in the history
* File parsing modified

* additional checks before calling
  • Loading branch information
LeonidPryadko authored Jan 13, 2024
1 parent 2e7a09f commit 709828d
Show file tree
Hide file tree
Showing 3 changed files with 306 additions and 220 deletions.
18 changes: 18 additions & 0 deletions examples/examples.g
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ DistRandStab(H,100,0,2 : field:=F);
#! 2
#! @EndExample

#! @Chapter AllFunctions
#! @Section HelperFunctions
#! @Subsection Examples
#! @BeginExample
Expand All @@ -182,3 +183,20 @@ Display(mat);
#! . . . . . . . . 1 2
#! @EndExample

#! These examples illustrate the allowed format of field definitions in the header of an `MTXE` file:
#! @BeginExample
QDR_ParseFieldStr("Z(5)");
#! Z(5)
QDR_ParseFieldStr("Z(17)");
#! Z(17)
QDR_ParseFieldStr("GF(5^2)");
#! GF(5^2)
QDR_ParseFieldStr("GF(25)");
#! GF(5^2)
QDR_ParseFieldStr("GF(125^2)");
#! GF(5^6)
#! @EndExample
#! @BeginExample
QDR_ParsePolyStr(GF(25),"x^2+1");
#! x^2+Z(5)^0
#! @EndExample
Loading

0 comments on commit 709828d

Please sign in to comment.