Crate spatial_decomposition

Source
Expand description

This crate contains algorithms to decompose spatial sets into smaller subdomains. To this date, only 1D and 2D algorithms are implemented.

§Overview

Structs§

Cuboid
Generalized cuboid in D dimensions

Enums§

Error
Error variants of decomposition or digitization

Functions§

kmr_decompose
Partitions a rectangle into multiple smaller rectangles
kmr_digitize_1
Assign given digits to a number of subdomains generated by the kmr_decompose method.
kmr_digitize_1_single
Assigns an index to a given subspace.

Type Aliases§

DecomposedDomain
Returned from decomposition methods.
Line
1D variant of the Cuboid
Rectangle
2D variant of the Cuboid
Result
SortedDigits
Returned from digitization methods