Repository navigation
Conversation
Collaborator
|
It doesn't really make sense to add this when there's basically no existing documentation there. There should be a basic explanation of |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce fmpz_mat as a dense matrix over Z before discussing individual methods. Explain construction from rows or row-major entries, zero matrices, dimensions and zero-based indexing. Worked examples distinguish integer scaling from matrix multiplication and show transpose, determinant and rank over Q.
Then explain that nullspace() returns integer vectors forming a basis over Q, which need not generate every integer solution. In the existing documented example, v = (1, -2, 1, 0, 0)^T is in the kernel, while every entry of the displayed nullspace matrix is divisible by five. Give the HNF construction of an integer kernel basis, with a proof using the unimodular transformation, and explain why LLL cannot enlarge the integer span. The HNF snippet explicitly constructs the displayed matrix.
The field and lattice distinction is already stated in FLINT's nullspace contract and lattice guide. Only doc/source/fmpz_mat.rst changes; existing API examples and implementation are preserved.
Validation: fresh full baseline and revised Sphinx HTML renders both generated HTML and exited 1 with the same existing definition-list warning in flint.types._gr.gr_ctx.factor. Both used -b html -W --keep-going -E -a with the repository configuration. This is not a clean strict build. The generated text, mathematical markup and API link targets were inspected from disk. Autodoc imported the published python-flint 0.9.0 binary; the native checkout was not rebuilt. Displayed arithmetic was derived by hand and formatting was inspected in source. No local software test suites, doctests, matrix-method calls or example programs were run.