eelregit / pmwd

Differentiable Cosmological Forward Model
BSD 3-Clause "New" or "Revised" License
70 stars 19 forks source link

Add raveled ptcl ids, change ptcl_pos to ptcl.pos #16

Closed eelregit closed 1 year ago

eelregit commented 1 year ago

Add methods ptcl.raveled_id that gives the flattened particle IDs, and replaced ptcl_pos with ptcl.pos. Even though these looks more OOP than functional, these 2 methods are likely never going to be transformed by JAX through their input arguments (other than the self).