Regular Hypercubic lattice

template<class PDFType>
class RegularRandomBond : public DisorderType
#include <regular_random_bond.h>

A lattice with bond disorder.

Template Parameters
  • PDFType: The type of disorder distribution to use.

Public Types

using bond_type = decltype(PDF.draw())

Public Functions

RegularRandomBond(int len, int dim)
std::vector<int> nbrs(const int alpha, const int i) const
std::vector<bond_type> bnds(const int alpha, const int i) const
std::vector<double> crds(const int i) const
std::size_t size() const

Public Members

int len
int dim
int npoints
std::vector<std::vector<bond_type>> bonds

Private Members

RegularLattice lattice
PDFType PDF