block the lattice by factor, switching to smaller lattice.
block the lattice by factor, switching to smaller lattice. lattice.size() must be element-by-element divisible by factor
({2,2,2}) reduces current lattice size by 2 to each direction.
- Note
- Previously used Field variables cannot be used in onsites(). However, their content can be blocked to new Field with Field<T>::block_from(), which copies the content from the blocked (sparse) set of sites;
a[
ALL] = X.x() + X.y() + X.z();
The field class implements the standard methods for accessing Fields. Hilapp replaces the parity acce...
void unblock_to(Field< T > &target) const
Copy content to the argument Field on blocked (sparse) sites. a.unblock_to(b) is the inverse of a....
Lattice unblock()
Unblock lattice, returning to parent. Current lattice must be a blocked lattice.
constexpr Parity ALL
bit pattern: 011
- Note
- Fields which were not used previously can be used in blocked levels, or their association (and content) can be deleted with .clear():
a = 1;
lattice.block({2,2,1});
b = 2;
a = 3;
a = 3;
void clear()
Destroys field data.
- Returns
- lattice_struct * to blocked lattice