liviusi / kronecker-canonical-form

SageMath implementation of an algorithm to calculate exactly Kronecker's canonical form.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kronecker's Canonical Form

SageMath implementation of an algorithm to calculate Kronecker's canonical form over an exact ring.

Setup instructions

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.

How to test

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

About

SageMath implementation of an algorithm to calculate exactly Kronecker's canonical form.

License:MIT License


Languages

Language:PostScript 62.3%Language:TeX 26.4%Language:Python 6.7%Language:Sage 4.5%Language:Shell 0.1%Language:Makefile 0.0%