Open szabo137 opened 5 days ago
One could also make momentum_type
an interface function for AbstractPhaseSpacePoints
.
Alternatively, one could require the implementation of Base.eltype
for subtypes of AbstractPhaseSpacePoints
, i.e. making this part of the interface.
The function
_momentum_type
is sometimes used to get the scalar element type, e.g. to produce the correctly typed nil usingzero
. Therefore, it would be good to make it publicly available.https://github.com/QEDjl-project/QEDcore.jl/blob/56f24440246a878ecd83514195c12ed4c217eef5/src/phase_spaces/utility.jl#L118