pmesh.abopt module¶
-
class
pmesh.abopt.
ParticleMeshVectorSpace
(pm, q)[source]¶ Bases:
abopt.base.VectorSpace
-
addmul
(a, b, c, p=1)[source]¶ Defines the addmul operation.
either subclass this method or supply a method in the constructor, __init__
addmul(a, b, c, p) := a + b * c ** p
The result shall be a vector like b.
b is always a vector for this VectorSpace; though be aware that there can be multiple valid Python types defined on the same VectorSpace. For example, particle positions are straight numpy.ndarray, An overdensity field may be a ComplexField or a RealField object.
-