|
NTLib - Number Theory Library 0.9
|
Classes | |
| class | reference |
Public Member Functions | |
| sieve_235 ()=default | |
| sieve_235 (std::size_t min_capacity) | |
| void | init235 () |
| bool | operator[] (std::size_t idx) const |
| reference | operator[] (std::size_t idx) |
| bool | empty () const noexcept |
| std::size_t | size () const noexcept |
| const std::byte * | data () const noexcept |
| std::byte * | data () noexcept |
Represents a 235-wheel optimized sieve.
| Allocator | The allocator to use for the sieve. |
|
default |
Constructs an empty sieve.
|
inline |
Constructs the sieve with a capacity at least as big as min_capacity.
| min_capacity | The minimum required capacity. |
|
inlinenodiscardnoexcept |
Returns a const pointer to the underlying data array.
|
inlinenodiscardnoexcept |
Returns a pointer to the underlying data array.
|
inlinenodiscardnoexcept |
Tests whehter the sieve is empty.
|
inline |
Initializes the sieve with true everywhere execept for strict multiples of 2, 3 and 5.
|
inlinenodiscard |
Subscript operator for array like access.
| idx | The index to return. |
|
inlinenodiscard |
Subscript operator for constant array like access.
| idx | The index of the element to return. |
|
inlinenodiscardnoexcept |
Returns the current size of the sieve.