Commit 7077a58
committed
Fix Base.in for Singular.PolyRing
GAP's 'r in Ring' checks if r is a ring element. Julia's generic 'in'
tries to iterate over the collection, which fails for PolyRing since
Singular rings don't implement iterate().
Add Base.in methods: spoly membership by base_ring identity, and
true for integers/rationals which can always be coerced.1 parent 8e96f10 commit 7077a58
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1399 | 1399 | | |
1400 | 1400 | | |
1401 | 1401 | | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
1402 | 1418 | | |
0 commit comments