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
It would be good to add a function to SwarmParam which can return the list of indices needed for fancy indexing the set of parameters. The current mask function which returns a boolean mask currently only works if parameters are added to a SwarmParam instance in the same relative order in which they are defined in model.parameters. Having a function to instead return the list of indices for fancy indexing would more easily accommodate adding parameters to SwarmParam out of order. This function accomplishes this task:
It would be good to add a function to SwarmParam which can return the list of indices needed for fancy indexing the set of parameters. The current mask function which returns a boolean mask currently only works if parameters are added to a SwarmParam instance in the same relative order in which they are defined in model.parameters. Having a function to instead return the list of indices for fancy indexing would more easily accommodate adding parameters to SwarmParam out of order. This function accomplishes this task:
So, that can be adapted as a member function to SwarmParam.
The text was updated successfully, but these errors were encountered: