Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
uni20::BlockRangeMapping Struct Reference

Destination range of one irregular block after regularization. More...

#include <block_space.hpp>

Public Member Functions

auto operator== (BlockRangeMapping const &other) const -> bool=default
 Compare destination block and range.
 
auto size () const -> std::size_t
 Return the number of mapped degeneracy states.
 

Public Attributes

std::size_t block_index
 Index of the containing block in the regular BlockSpace.
 
std::size_t first
 First offset occupied by the original block.
 
std::size_t last
 One-past-the-end offset occupied by the original block.
 

Detailed Description

Destination range of one irregular block after regularization.

Member Function Documentation

◆ operator==()

auto uni20::BlockRangeMapping::operator== ( BlockRangeMapping const &  other) const -> bool=default
default

Compare destination block and range.

Parameters
otherOther mapping.
Returns
true when every field is equal.

◆ size()

auto uni20::BlockRangeMapping::size ( ) const -> std::size_t
inline

Return the number of mapped degeneracy states.

Returns
Size of the half-open destination range.

Member Data Documentation

◆ block_index

std::size_t uni20::BlockRangeMapping::block_index

Index of the containing block in the regular BlockSpace.

◆ first

std::size_t uni20::BlockRangeMapping::first

First offset occupied by the original block.

◆ last

std::size_t uni20::BlockRangeMapping::last

One-past-the-end offset occupied by the original block.


The documentation for this struct was generated from the following file: