PetscErrorCode QuantumNumbers::GlobalIdxToBlockIdx ( const PetscInt &  GlobIdx,
PetscInt &  BlockIdx 
) const

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

Exceptions
PETSC_ERR_ARG_WRONGSTATEObject not initialized. Call Initialize() first.
PETSC_ERR_ARG_OUTOFRANGEGiven GlobIdx is out of bounds [0, num_states).
Parameters
GlobIdxGlobal index
BlockIdxBlock index

Definition at line 122 of file QuantumNumbers.cpp.

Referenced by GlobalIdxToBlockIdx(), GlobalIdxToQN(), OpBlockToGlobalRangeStart(), and QuantumNumbersIterator::QuantumNumbersIterator().

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