spaces 4.1.0

Set/space primitives for defining machine learning problems.
Documentation
1
2
3
4
5
/// Trait for types that implement a mapping from values of one set onto another.
pub trait Surjection<X, Y> {
    /// Map value from domain onto codomain.
    fn map(&self, from: X) -> Y;
}