The dot product of a field with itself
The dot product only considers the volume factors of the first field in case bare=False. This leads to the (in my mind) odd result noted below.
In : np.random.seed(123)
In : rgf = Field(domain=RGSpace(4),val=np.random.randn(4))
In : rgf.dot(rgf) Out: 1.1305730855452751
This is equal to
In : (rgf.weight(power=1) * rgf).sum() Out: 1.1305730855452751
Wouldn't the two following cases be more appropriate, depending on the context?
In : (rgf.weight(power=1) * rgf.weight(power=1)).sum() Out: 0.28264327138631878
In : (rgf*rgf).sum() Out: 4.5222923421811005