-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change QuaternionAlgebra to use GET_FROM_SORTED_CACHE
Also ensure that the exact same code is used to produce the resulting algebra regardless of whether it is created freshly or from the cache. This revealed a bug: `A.1` only worked in the former case, not the latter, which could lead to subtly broken code. Before this patch, the following happened: gap> A:= QuaternionAlgebra( [1], 2, 5 ); <algebra-with-one of dimension 4 over Rationals> gap> A.1; e gap> B:= QuaternionAlgebra( [1], 2, 5 ); <algebra-with-one of dimension 4 over Rationals> gap> B.1; Error, illegal access to record component `obj.1' This is now fixed. Resolves #2940
- Loading branch information
Showing
1 changed file
with
8 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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