Skip to main content

depth_block_mapping

Function depth_block_mapping 

Source
pub fn depth_block_mapping(
    source_depth: usize,
    target_depth: usize,
) -> Result<Vec<usize>, PriorError>
Expand description

Computes the canonical even placement of source_depth blocks inside target_depth.

ยงErrors

Returns PriorError::Validation if source_depth == 0 or source_depth > target_depth.