Expand description
A collection of various utility helpers.
Structs§
- Default
Distribution Sampler - Provides way to sample from different distributions.
- Default
Random - A default random implementation.
- Environment
- Keeps track of environment specific information which influences algorithm behavior.
- Fixed
BitArray - A bit array type of fixed size.
- Generic
Error - A basic error type which, essentially, a wrapper on String type.
- Noise
- Provides way to generate some noise to floating point value.
- Parallelism
- Specifies data parallelism settings.
- Random
Gen - Provides underlying random generator API.
- Selection
Sampling Iterator - An iterator which visits given range using selection sampling (Algorithm S).
- Thread
Pool - Represents a thread pool wrapper.
- Time
Quota - A time quota.
Enums§
- Either
- Represents a type with two values.
Traits§
- Collect
Group By - An iterator which collects items into group.
- Distribution
Sampler - Provides the way to sample from different distributions.
- Quota
- Specifies a computational quota for executions. The main purpose is to allow to stop algorithm in reaction to external events such as user cancellation, timer, etc.
- Random
- Provides the way to use randomized values in generic way.
- Selection
Sampling Search - Provides way to search with help of selection sampling algorithm on iterator where elements have ordered index values.
- Unwrap
Value - Unwraps value from inner state.
Functions§
- cartesian_
product - Creates a cartesian product returning a parallel iterator.
- create_
range_ sampling_ iter - Returns a new iterator which samples some range from existing one.
- fold_
reduce - Performs fold and then reduce operations in parallel.
- map_
reduce - Performs map reduce operations in parallel.
- parallel_
collect - Maps collection and collects results into vector in parallel.
- parallel_
foreach_ mut - Performs mutable foreach in parallel.
- parallel_
into_ collect - Maps collection and collects results into vector in parallel.
- random_
argmax - Returns an index of max element in values. In case of many same max elements, returns the one from them at random.
- short_
type_ name - Returns a short name of a type.
Type Aliases§
- Float
- Alias to a scalar floating type.
- Generic
Result - A type alias for result type with
GenericError
. - Info
Logger - A logger type which is called with various information.
- Timer
- Implements performance timer functionality, mostly exists due to problem
with
Instant
on wasm32 arch.