alecandido / partons

Distribute and evaluate partonic distributions
1 stars 0 forks source link

Further interpolatable objects #10

Open alecandido opened 1 year ago

alecandido commented 1 year ago

The crucial example is $\alpha_s$, but since it is not even standard, I will bridge compatibility with existing info files in the LHAPDF module, while keeping them out of the new Info.

In particular, it is simpler to make a generic Interpolatable trait (maybe with a generic over dimensions), and store an HashMap<String, Box<dyn Interpolatable>>, with only names specified in the info file. A default one for the set will be assumed.

alecandido commented 1 year ago

This goes together with #9, since in general we should allow for:

However, we need a scalable way to implement this, that most likely it's not ArrayN (it will be Array1/Array2 for the continuous dimensions, but the other could well be linearized indices, and just indexing a single Vec).