You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
vnormoption that defines the norm of the initial velocity vectors.make_stepsandmake_frames, i.e. they have to accept parameternum_samplesand create an appropriate[num_samples, ...]tensors. Currently, only one series of frames is generated, so to generate e.g. 10000 samples I have to runmake_stepsormake_framesin a loop, that makes things slow. I believe that proper vectorized implementation can be much faster. I'm personally interested currently in vectorizedmake_steps(to obtain coordinates of balls), butmake_framesalso should be vectorized. This also demand vectorization of self.x and self.v.