Skip to content

Commit

Permalink
"R.characteristic()" should be a tiny bit faster than "R.cardinality()"
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpalmieri committed Sep 25, 2023
1 parent 659a9b2 commit 0e03d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/homology/homology_vector_space_with_basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1453,4 +1453,4 @@ def is_GF2(R):
sage: is_GF2(GF(3))
False
"""
return 2 == R.cardinality() == R.characteristic()
return 2 == R.characteristic() == R.cardinality()

0 comments on commit 0e03d70

Please sign in to comment.