Which data types do we allow for Field.dtype?
It seems that defining a Field with an integer dtype can produce quite unexpected results:
In : from nifty import * In : import numpy as np In : s=RGSpace((4,)) In : f=Field(s,val=np.arange(4)) In : f.dot(f,bare=False) Out: 0
I suggest that we limit the allowed data types for Nifty fields to floating point and complex floating point. This could be enforced in Field._infer_dtype().
To upload designs, you'll need to enable LFS. More information