Skip to content

Feature requests for Billiards environment #16

@ischurov

Description

@ischurov
  • Add possibility to change the size of environment. Currently, if you change SIZE to be equal 1, you stuck in infinite loop waiting for "good configuration", as the inital coordinates are chosen randomly from some large square that does not depend on SIZE. Also, I believe radius of balls should be scaled with respect to SIZE.
  • Add vnorm option that defines the norm of the initial velocity vectors.
  • Vectorize make_steps and make_frames, i.e. they have to accept parameter num_samples and create an appropriate [num_samples, ...] tensors. Currently, only one series of frames is generated, so to generate e.g. 10000 samples I have to run make_steps or make_frames in a loop, that makes things slow. I believe that proper vectorized implementation can be much faster. I'm personally interested currently in vectorized make_steps (to obtain coordinates of balls), but make_frames also should be vectorized. This also demand vectorization of self.x and self.v.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions