Skip to content

Commit

Permalink
Specialize prime in the ChainComplex trait for Nassau resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyBF committed Oct 9, 2024
1 parent b12b53b commit 325952e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/src/nassau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,6 @@ pub struct Resolution<M: ZeroModule<Algebra = MilnorAlgebra>> {
}

impl<M: ZeroModule<Algebra = MilnorAlgebra>> Resolution<M> {
pub fn prime(&self) -> ValidPrime {
TWO
}

pub fn name(&self) -> &str {
&self.name
}
Expand Down Expand Up @@ -954,6 +950,10 @@ impl<M: ZeroModule<Algebra = MilnorAlgebra>> ChainComplex for Resolution<M> {
type Homomorphism = FreeModuleHomomorphism<FreeModule<Self::Algebra>>;
type Module = FreeModule<Self::Algebra>;

fn prime(&self) -> ValidPrime {
TWO
}

fn algebra(&self) -> Arc<Self::Algebra> {
self.zero_module.algebra()
}
Expand Down

0 comments on commit 325952e

Please sign in to comment.