Checks that a variable is a field created by gf_create_field
gf_check_field(F, caller)
Any Scilab variable.
Name of the calling function, used at the start of the error message.
gf_check_field returns silently when F is a valid field (a list of 4 items with a prime characteristic, a supported degree and a primitive polynomial of the right size), and raises an error attributed to caller otherwise.
It is used by the toolbox's own functions and is useful when writing new functions that take a field as an argument.
| Version | Description |
| 2.0.0 | Function added. |