Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify/unify the definition of CompanionMatrix #5424

Merged
merged 2 commits into from
Mar 27, 2023

Conversation

ThomasBreuer
Copy link
Contributor

fixes #5423

  • added an example to the documentation of CompanionMatrix for a polynomial (in lib/upoly.gd)

  • changed the definition of CompanionMatrix in lib/matobj2.gd from row convention to column convention, such that it fits to CompanionMatrix in lib/upoly.gd; changed the corresponding method (for NewCompanionMatrix) accordingly.

  • adjusted the tests

(Now the method in the cvec package has to be adjusted as well.)

fixes gap-system#5423

- added an example to the documentation of `CompanionMatrix` for
  a polynomial (in `lib/upoly.gd`)

- changed the definition of `CompanionMatrix` in `lib/matobj2.gd`
  from *row* convention to *column* convention,
  such that it fits to `CompanionMatrix` in `lib/upoly.gd`;
  changed the corresponding method (for `NewCompanionMatrix`) accordingly.

- adjusted the tests
@ThomasBreuer ThomasBreuer added kind: bug Issues describing general bugs, and PRs fixing them topic: documentation Issues and PRs related to documentation kind: bug: wrong result Issues describing bugs that result in mathematically or otherwise wrong results, and PRs fixing them topic: library release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes labels Mar 27, 2023
ThomasBreuer added a commit to ThomasBreuer/cvec that referenced this pull request Mar 27, 2023
according to the changes in gap-system/gap/pull/5424

(The negatives of the coefficients are in the last column, not in the last row.)
fingolfin pushed a commit to gap-packages/cvec that referenced this pull request Mar 27, 2023
according to the changes in gap-system/gap/pull/5424

(The negatives of the coefficients are in the last column, not in the last row.)
@fingolfin fingolfin merged commit 87cda3b into gap-system:master Mar 27, 2023
@ThomasBreuer ThomasBreuer deleted the TB_CompanionMatrix branch March 28, 2023 07:08
@fingolfin fingolfin changed the title specified/unified the definition of CompanionMatrix, adjusted the method for it Specify/unify the definition of CompanionMatrix Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug: wrong result Issues describing bugs that result in mathematically or otherwise wrong results, and PRs fixing them kind: bug Issues describing general bugs, and PRs fixing them release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes topic: documentation Issues and PRs related to documentation topic: library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inconsistency with CompanionMatrix
2 participants