triqs_modest.embedding.Embedding.split

Embedding.split()

Dispatched C++ function(s).

[1] (imp_idx: int, p: (int) -> bool)
  -> Embedding

[2] (imp_idx: int, block_list: [int])
  -> Embedding

[1] Split impurity imp_idx.

Predicate p (long block_idx) -> 0 or 1.


[2] Split impurity imp_idx based on block_list.

For impurity imp_idx, split part of its blocks into a new impurity. The blocks that were split off remain mapped to their original alpha blocks with the updated imp_idx.


Parameters:
imp_idxint

Impurity number.

block_list[int]

A list of blocks of imp_idx to split off.

Returns:
Embedding

New embedding with the updated \(\psi\) map.