Is there an efficient way to associate a value with a parameterized type.
For example:
struct GaloisField{p,r}; val::Int end
+(a::G, b::G} where G<:GaloisField = addop(a.val, b.val, logtable(G))
Memoization of logtable
or using a global dictionary is not fast enough.
Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or pinging the poster here on Discourse so they can follow this thread.
(Original message ) (More Info)