8 #ifndef SCAMAC_DOF_BOSONS_H 9 #define SCAMAC_DOF_BOSONS_H 21 int n_bosons_per_site;
29 } scamac_dof_bosons_st;
31 typedef int scamac_rep_bosons_st;
33 ScamacErrorCode scamac_dof_bosons_alloc(
int n_sites,
int n_bosons,
int n_bosons_per_site, scamac_dof_bosons_st ** dof);
34 void scamac_dof_bosons_free(scamac_dof_bosons_st * dof);
36 ScamacIdx scamac_dof_bosons_ns(
const scamac_dof_bosons_st * dof);
38 scamac_rep_bosons_st * scamac_rep_bosons_alloc(
const scamac_dof_bosons_st *dof);
39 void scamac_rep_bosons_free(scamac_rep_bosons_st * rep);
41 void scamac_rep_bosons_copy(
const scamac_dof_bosons_st *dof,
const scamac_rep_bosons_st * rep, scamac_rep_bosons_st * repcpy);
43 ScamacErrorCode scamac_bosons_decode(
const scamac_dof_bosons_st * dof, ScamacIdx idx, scamac_rep_bosons_st *rep);
44 ScamacIdx scamac_bosons_encode(
const scamac_dof_bosons_st * dof,
const scamac_rep_bosons_st *rep);
47 double scamac_op_bosons_bdb (
const scamac_dof_bosons_st * dof,
const scamac_rep_bosons_st * rep,
int ic);
48 double scamac_op_bosons_nn (
const scamac_dof_bosons_st * dof,
const scamac_rep_bosons_st * rep,
int i,
int j);
49 double scamac_op_bosons_bdibj(
const scamac_dof_bosons_st * dof, scamac_rep_bosons_st * rep,
int i,
int j);
ScaMaC data structure and macro definitions.