Provide a class to hold the internal state vector to the compartment model (and track compartment indices).
Class to manage the state of the bucky compartments (and their indices).
Ensure the values of the slice aren’t cupy arrays to prevent an unsupported implict conversionin xp.r_
Allow for . access to the compartment indices, otherwise return the ‘normal’ attribute.
Allow setting of compartments using . notation, otherwise default to normal attribute behavior.
Init the S compartment such that N=1.
Return the shape of the internal state ndarray.
Validate that the state is valid (finite, nonnegative, N=1)
Return a mostly shallow copy of self but with a zeroed out self.state