Creating you own BoxMap type
Subtypes of the abstract type BoxMap must have four restrictions:
- There must be a
domainfield within the type, i.e.struct MyBoxMap{N,T} domain::Box{N,T} # other things ... end - There must be a method
map_boxes(g::MyBoxMap, source::BoxSet)which computes the setwise image ofsourceundergand returns aBoxSet. - There must be a method
construct_transfers(g::BoxMap, domain::BoxSet, codomain::BoxSet)which computes a dictionary-of-keys sparse matrixmatwithmat[(hit_key, source_key)] = weightfor the TransferOperator, wherehit_key ∈ codomain.setandsource_key ∈ domain.set.