36 this->identity = identity;
46 if ( identity ==
'K' ){
48 for (
int ikappa=0; ikappa<
nKappa; ikappa++){
64 dgemm_(&trans,¬rans,&dimUR,&dimDR,&dimL,&alpha,BlockTup,&dimL,BlockTdown,&dimL,&beta,
storage+
kappa2index[ikappa],&dimUR);
70 if ( identity ==
'M' ){
72 for (
int ikappa=0; ikappa<
nKappa; ikappa++){
89 dgemm_(&trans,¬rans,&dimUR,&dimDR,&dimL,&alpha,BlockTup,&dimL,BlockTdown,&dimL,&beta,
storage+
kappa2index[ikappa],&dimUR);
int index
Index of the Tensor object. For TensorT: a site index; for other tensors: a boundary index...
int * sector_nelec_up
The up particle number sector.
int * sector_spin_down
The down spin symmetry sector (pointer points to sectorTwoS1 if two_j == 0)
int gCurrentDim(const int boundary, const int N, const int TwoS, const int irrep) const
Get the current virtual dimensions.
virtual ~TensorKM()
Destructor.
int * sector_spin_up
The up spin symmetry sector.
double * gStorage()
Get the pointer to the storage.
int n_irrep
The (real-valued abelian) point group irrep difference between the symmetry sectors of the lower and ...
static int directProd(const int Irrep1, const int Irrep2)
Get the direct product of the irreps with numbers Irrep1 and Irrep2: a bitwise XOR for psi4's convent...
int * sector_irrep_up
The up spin symmetry sector.
const SyBookkeeper * bk_up
The bookkeeper of the upper MPS.
int * kappa2index
kappa2index[kappa] indicates the start of tensor block kappa in storage. kappa2index[nKappa] gives th...
TensorKM(const int boundary_index, const char identity, const int Idiff, const SyBookkeeper *denBK)
Constructor.
void clear()
Set all storage variables to 0.0.
void construct(TensorT *denT)
int nKappa
Number of Tensor blocks.
double * storage
The actual variables. Tensor block kappa begins at storage+kappa2index[kappa] and ends at storage+kap...