Skip to content

Commit

Permalink
Move to mom::impls
Browse files Browse the repository at this point in the history
  • Loading branch information
hombit committed Oct 4, 2024
1 parent 1aa075f commit 905cddb
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 15 deletions.
1 change: 1 addition & 0 deletions src/nested/map/mom/impls/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Module containing MOM implementations in sub-modules
pub mod zvec;

pub mod ported_from_mom_builder;
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
//! 4. The recursion interrupts when we cannot merge (children group is incomplete or merge is
//! invalid) or we are at the root nodes.
use crate::nested::mom::exclusive_option::ExclusiveOption;
use crate::nested::mom::norder_leaves::NorderLeaves;
use crate::nested::mom::state::merge_states::MergeStates;
use crate::nested::mom::tree::{Tree, TreeMutRef};
use crate::nested::mom::tree_config::TreeConfig;
use super::exclusive_option::ExclusiveOption;
use super::norder_leaves::NorderLeaves;
use super::state::merge_states::MergeStates;
use super::tree::{Tree, TreeMutRef};
use super::tree_config::TreeConfig;
use itertools::Itertools;

/// A structure to build a tree from a fallible iterator over the leaf states.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! A data structure for storing the leaves of a tree of a given depth.
use crate::nested::mom::error::Error;
use super::error::Error;
use std::ops::Range;

/// A data structure for storing the leaves of a tree of a given depth. The leaves are stored as a
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::nested::mom::state::merge_is_valid::MergeIsValid;
use crate::nested::mom::state::merge_states::MergeStates;
use super::merge_is_valid::MergeIsValid;
use super::merge_states::MergeStates;
use serde::{Deserialize, Serialize};
use num_traits::Float;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::nested::mom::state::merge_states::MergeStates;
use crate::nested::mom::state::value::value_state::ValueState;
use crate::nested::map::mom::impls::ported_from_mom_builder::state::merge_states::MergeStates;
use super::value_state::ValueState;
use serde::{Deserialize, Serialize};
use std::marker::PhantomData;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::nested::mom::state::merge_is_valid::MergeIsValid;
use crate::nested::mom::state::merge_states::MergeStates;
use crate::nested::mom::state::value::ValueState;
use crate::nested::map::mom::impls::ported_from_mom_builder::state::merge_is_valid::MergeIsValid;
use crate::nested::map::mom::impls::ported_from_mom_builder::state::merge_states::MergeStates;
use super::ValueState;
use num_traits::Zero;
use serde::{Deserialize, Serialize};

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Tree and related types.
use crate::nested::mom::norder_leaves::NorderLeaves;
use super::norder_leaves::NorderLeaves;

/// Tree is a vector of [NorderLeaves] representing leaves at a given depth. Index denotes the norder
/// (depth) of the tree.
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/nested/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ use self::{
pub mod bmoc;
pub mod gpu;
pub mod map;
pub mod mom;
pub mod zordercurve;

// We use an array here since operations on f64 are not yet stable for `const fn` :o/
Expand Down

0 comments on commit 905cddb

Please sign in to comment.