An implementation of Finite Fields in C++ as they (hopefully) appear in the Magma CAS
- CMake
- GMP (https://gmplib.org/)
mkdir -p build
cd build
cmake ..
cd ../
cmake --build build
If you are running from Linux or compiling with certain compilers, you may get a message asking you to add the flag -fconcepts
. If this happens, replace the lines in the CMakeLists.txt
file with
set(CMAKE_CXX_FLAGS "-fconcepts -Ofast -flto -ffast-math -Wall -Wextra -Wno-unused-parameter -pedantic")
set(CMAKE_EXE_LINKER_FLAGS "-fconcepts -Ofast -flto -ffast-math")
build/magma_fields
BCS97
Wieb Bosma, John Cannon, and Allan Steel.
Lattices of Compatibly Embedded Finite Fields.
J. Symbolic Comp., 24(3):351--369, 1997.