Module algebra

Module algebra 

Source
Expand description

Tropical algebra markers, HasAlgebra, and Semiring implementations.

Each zero-sized struct identifies a tropical algebra for use with TensorPrims<A>. The orphan rule is satisfied because the algebra markers are defined in this crate.

Algebra markerScalar wrapper
MaxPlusAlgebraMaxPlus<T>max+
MinPlusAlgebraMinPlus<T>min+
MaxMulAlgebraMaxMul<T>max×

Structs§

MaxMulAlgebra
Algebra marker for the max-times tropical semiring (⊕ = max, ⊗ = ×).
MaxPlusAlgebra
Algebra marker for the max-plus tropical semiring (⊕ = max, ⊗ = +).
MinPlusAlgebra
Algebra marker for the min-plus tropical semiring (⊕ = min, ⊗ = +).