triqs.mesh.mesh_point.MeshPoint
- class triqs.mesh.mesh_point.MeshPoint(index, data_index, mesh_hash, value=None, weight=None)[source]
Bases:
objectA single point on a TRIQS mesh.
A mesh point bundles its mesh-native index \(n\), its data index \(d\), the hash of the parent mesh and – for most meshes – the physical value at the point.
Arithmetic and casting are forwarded to
value, so aMeshPointcan be used in numerical expressions in place of its underlying scalar / vector.- Parameters:
- indexobject
Mesh-native index \(n\).
- data_indexint
Data index \(d\).
- mesh_hashint
Hash of the parent mesh.
- valueobject, optional
Physical value at the point. Defaults to
None.- weightobject, optional
Optional integration weight associated with the point. Defaults to
None.
Attributes
Real part of
value.Imaginary part of
value.index
(object) Mesh-native index \(n\).
data_index
(int) Data index \(d\).
mesh_hash
(int) Hash of the parent mesh
value
(object) Physical value or
None.weight
(object) Integration weight or
None.Methods
__call__(*args, **kw)Forward the call to
value.