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

ConvexSet_base: Add methods an_element, some_elements #31990

Closed
mkoeppe opened this issue Jun 16, 2021 · 19 comments
Closed

ConvexSet_base: Add methods an_element, some_elements #31990

mkoeppe opened this issue Jun 16, 2021 · 19 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 16, 2021

Although subclasses of ConvexSet_base are not necessarily Parents, it will be useful for them to provide an_element and some_elements methods.

Depends on #31959

CC: @kliem @tscrim @yuan-zhou

Component: geometry

Author: Matthias Koeppe

Branch/Commit: 1744ffa

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/31990

@mkoeppe mkoeppe added this to the sage-9.4 milestone Jun 16, 2021
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 16, 2021

Dependencies: #31959

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 16, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 16, 2021

Last 10 new commits:

6ab5677RelativeInterior.is_universe: New
c085d30Polyhedron_base.interior: Handle the empty polyhedron correctly
686d0afPolyhedron_base.product: Add doctest for alias 'cartesian_product'
2b1d108Merge #31919
7323b10ConvexSet_base._test_contains: Only test extension to AA for exact base rings
94e6858RelativeInterior.ambient, ambient_vector_space, is_universe: New
0c9bc94ConvexSet_base: Add default implementations of ambient, ambient_dim; add doctests
7d3ae5cMerge #31959
2b1040cConvexSet_base.{an_element,some_elements}, Polyhedron.some_elements, RelativeInterior.some_elements: New
a884517PolyhedronFace.some_elements: New

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 16, 2021

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 16, 2021

Commit: a884517

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 17, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

ce91e44src/sage/geometry/relative_interior.py: Fix doctest output
b19b3ccMerge #31959

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 17, 2021

Changed commit from a884517 to b19b3cc

@tscrim
Copy link
Collaborator

tscrim commented Jun 17, 2021

Reviewer: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Jun 17, 2021

comment:5

The only little quip I have is that generally in Sage some_elements() returns a list rather than an iterable. It might be good to be consistent about this.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 17, 2021

Changed commit from b19b3cc to ed898e6

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 17, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

f0e7c58ambient_vector_space docstring: Fix bad blocks
200d967ConvexSet_base.ambient doctest: Actually test the method
1c2bef5Merge #31959
ed898e6ConvexSet_base.an_element, some_elements: Go through generator method `_some_elements_`, make some_elements return a list

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 17, 2021

Changed commit from ed898e6 to 7152e1f

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 17, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

b3ac0f3ConvexSet_base.an_element, some_elements: Raise NotImplementedError if `_some_elements_` is NotImplemented
7152e1fConvexSet_base._test_contains: Test some_elements too

@tscrim
Copy link
Collaborator

tscrim commented Jun 17, 2021

comment:10

Thanks. Green bot => positive review.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 18, 2021

Changed commit from 7152e1f to 1744ffa

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 18, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

f02ca28src/sage/geometry/polyhedron/face.py: Remove unused import
1744ffaMerge #31959

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 18, 2021

comment:12

Patchbot is green modulo the unrelated sage.misc.package test failure.
Merged latest #31959 to get rid of pyflakes' report on an unused import.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 18, 2021

comment:13

Thanks for reviewing!

@vbraun
Copy link
Member

vbraun commented Jul 6, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants