PetscErrorCode QuantumNumbers::BlockIdxToGlobalIdx ( const PetscInt &  BlockIdx,
const PetscInt &  LocIdx,
PetscInt &  GlobIdx 
) const

Maps the block index of a basis state to its global index.

Exceptions
PETSC_ERR_ARG_WRONGSTATEObject not initialized. Call Initialize() first.
PETSC_ERR_ARG_OUTOFRANGEGiven BlockIdx is out of bounds [0, num_sectors).
Parameters
BlockIdxBlock index
LocIdxLocal index in the block
GlobIdxGlobal index

Definition at line 175 of file QuantumNumbers.cpp.

Referenced by OpBlockToGlobalRangeStart().

This site was generated by Sphinx using Doxygen with a customized theme from doxygen-bootstrapped.