triqs_modest.embedding.make_embedding_with_clusters

triqs_modest.embedding.make_embedding_with_clusters()

Dispatched C++ function(s).

[1] (obe: OneBodyElementsOnGrid, atom_partition: [[int]])
  -> tuple[OneBodyElementsOnGrid, Embedding]

Make an embedding for clusters of atoms.

This function creates an embedding object from the one-body elements on grid (obe) and a partition of the atoms into clusters. The clusters are defined by the atom_partition, which is a vector of vectors, where each inner vector contains the indices of the atoms in the cluster. The resulting one-body elements on grid will have the atoms permuted according to the atom_partition.

Parameters:
obeOneBodyElementsOnGrid

One-body elements on grid (obe) to permute.

atom_partition[[int]]

New partition of the atoms into clusters, where each inner vector contains the indices of the atoms in the cluster.

Returns:
tuple[OneBodyElementsOnGrid, Embedding]

A new one-body elements on grid and the corresponding embedding object.