FleCSI User API Version: 2.3.0
 
Loading...
Searching...
No Matches
equal_map Struct Reference

A partition with substrings of equal size. More...

Public Member Functions

constexpr equal_map (std::size_t size, Color bins)
 Specify the partition.
 
- Public Member Functions inherited from map_base< equal_map >
constexpr Color bin (std::size_t) const
 Find the substring that contains a value.
 
constexpr std::pair< Color, std::size_t > invert (std::size_t i) const
 Express a value in terms of its containing substring.
 
constexpr std::size_t operator() (Color) const
 Return the start of a substring.
 
constexpr iota_view< std::size_t > operator[] (Color c) const
 Return a substring.
 
constexpr Color size () const
 Return the number of substrings.
 
constexpr std::size_t total () const
 Return the length of the overall prefix.
 

Detailed Description

A partition with substrings of equal size.

Initial substrings are 1 longer as needed.

Constructor & Destructor Documentation

◆ equal_map()

constexpr equal_map ( std::size_t  size,
Color  bins 
)
constexpr

Specify the partition.