SageMath implementation of an algorithm to calculate Kronecker's canonical form over an exact ring.
First, it is required to clone the repository.
In order to test the code provided or include it in scripts, it is required to follow the following steps.
Setup Python on your machine; the version the algorithm has been implemented with is Python 3.10.6.
Setup SageMath on your machine and make sure Python can handle SageMath code, this should be achieved by installing the Python package sagemath
pip install sagemath
On success, the following snippet does not produce any errors.
from sage.all import *
Last, install make and the Python package pytest.
From the root of this project, run
make tests
It is also possible to get a report on the test coverage provided by the test suite.
coverage run -m pytest -v tests && coverage report -m