pub struct RationalFieldBase<I: RingStore>where
I::Type: IntegerRing,{ /* private fields */ }Expand description
An implementation of the rational number Q, based on representing them
as a tuple (numerator, denominator).
Be careful when instantiating it with finite-precision integers, like StaticRing<i64>,
since by nature of the rational numbers, both numerator and denominator can increase
dramatically, even when the numbers itself are of moderate size.
§Example
let ZZ = StaticRing::<i64>::RING;
let QQ = RationalField::new(ZZ);
let hom = QQ.can_hom(&ZZ).unwrap();
let one_half = QQ.div(&QQ.one(), &hom.map(2));
assert_el_eq!(QQ, QQ.div(&QQ.one(), &hom.map(4)), QQ.pow(one_half, 2));You can also retrieve numerator and denominator.
assert_el_eq!(ZZ, ZZ.int_hom().map(1), QQ.num(&one_half));
assert_el_eq!(ZZ, ZZ.int_hom().map(2), QQ.den(&one_half));Implementations§
Trait Implementations§
Source§impl<I, J> CanHomFrom<J> for RationalFieldBase<I>
impl<I, J> CanHomFrom<J> for RationalFieldBase<I>
Source§type Homomorphism = ()
type Homomorphism = ()
Source§fn has_canonical_hom(&self, _from: &J) -> Option<Self::Homomorphism>
fn has_canonical_hom(&self, _from: &J) -> Option<Self::Homomorphism>
from -> self, returns Some(data), where
data is additional data that can be used to compute the action of the homomorphism
on ring elements. Otherwise, None is returned.Source§fn map_in(
&self,
from: &J,
el: <J as RingBase>::Element,
(): &Self::Homomorphism,
) -> Self::Element
fn map_in( &self, from: &J, el: <J as RingBase>::Element, (): &Self::Homomorphism, ) -> Self::Element
Source§fn map_in_ref(
&self,
from: &S,
el: &S::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn map_in_ref( &self, from: &S, el: &S::Element, hom: &Self::Homomorphism, ) -> Self::Element
Source§fn mul_assign_map_in(
&self,
from: &S,
lhs: &mut Self::Element,
rhs: S::Element,
hom: &Self::Homomorphism,
)
fn mul_assign_map_in( &self, from: &S, lhs: &mut Self::Element, rhs: S::Element, hom: &Self::Homomorphism, )
rhs, and multiplies the result to lhs.Source§fn mul_assign_map_in_ref(
&self,
from: &S,
lhs: &mut Self::Element,
rhs: &S::Element,
hom: &Self::Homomorphism,
)
fn mul_assign_map_in_ref( &self, from: &S, lhs: &mut Self::Element, rhs: &S::Element, hom: &Self::Homomorphism, )
rhs, taking it by reference, and multiplies the result to lhs.Source§fn fma_map_in(
&self,
from: &S,
lhs: &Self::Element,
rhs: &S::Element,
summand: Self::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn fma_map_in( &self, from: &S, lhs: &Self::Element, rhs: &S::Element, summand: Self::Element, hom: &Self::Homomorphism, ) -> Self::Element
summand + lhs * rhs, where rhs is mapped into the ring via the homomorphism.Source§impl<I> CanHomFrom<RationalFieldBase<I>> for Complex64Base
impl<I> CanHomFrom<RationalFieldBase<I>> for Complex64Base
Source§type Homomorphism = <Complex64Base as CanHomFrom<<I as RingStore>::Type>>::Homomorphism
type Homomorphism = <Complex64Base as CanHomFrom<<I as RingStore>::Type>>::Homomorphism
Source§fn has_canonical_hom(
&self,
from: &RationalFieldBase<I>,
) -> Option<Self::Homomorphism>
fn has_canonical_hom( &self, from: &RationalFieldBase<I>, ) -> Option<Self::Homomorphism>
from -> self, returns Some(data), where
data is additional data that can be used to compute the action of the homomorphism
on ring elements. Otherwise, None is returned.Source§fn map_in(
&self,
from: &RationalFieldBase<I>,
el: <RationalFieldBase<I> as RingBase>::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn map_in( &self, from: &RationalFieldBase<I>, el: <RationalFieldBase<I> as RingBase>::Element, hom: &Self::Homomorphism, ) -> Self::Element
Source§fn map_in_ref(
&self,
from: &RationalFieldBase<I>,
el: &<RationalFieldBase<I> as RingBase>::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn map_in_ref( &self, from: &RationalFieldBase<I>, el: &<RationalFieldBase<I> as RingBase>::Element, hom: &Self::Homomorphism, ) -> Self::Element
Source§fn mul_assign_map_in(
&self,
from: &S,
lhs: &mut Self::Element,
rhs: S::Element,
hom: &Self::Homomorphism,
)
fn mul_assign_map_in( &self, from: &S, lhs: &mut Self::Element, rhs: S::Element, hom: &Self::Homomorphism, )
rhs, and multiplies the result to lhs.Source§fn mul_assign_map_in_ref(
&self,
from: &S,
lhs: &mut Self::Element,
rhs: &S::Element,
hom: &Self::Homomorphism,
)
fn mul_assign_map_in_ref( &self, from: &S, lhs: &mut Self::Element, rhs: &S::Element, hom: &Self::Homomorphism, )
rhs, taking it by reference, and multiplies the result to lhs.Source§fn fma_map_in(
&self,
from: &S,
lhs: &Self::Element,
rhs: &S::Element,
summand: Self::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn fma_map_in( &self, from: &S, lhs: &Self::Element, rhs: &S::Element, summand: Self::Element, hom: &Self::Homomorphism, ) -> Self::Element
summand + lhs * rhs, where rhs is mapped into the ring via the homomorphism.Source§impl<R, I> CanHomFrom<RationalFieldBase<I>> for FractionFieldImplBase<R>
impl<R, I> CanHomFrom<RationalFieldBase<I>> for FractionFieldImplBase<R>
Source§type Homomorphism = <<R as RingStore>::Type as CanHomFrom<<I as RingStore>::Type>>::Homomorphism
type Homomorphism = <<R as RingStore>::Type as CanHomFrom<<I as RingStore>::Type>>::Homomorphism
Source§fn has_canonical_hom(
&self,
from: &RationalFieldBase<I>,
) -> Option<Self::Homomorphism>
fn has_canonical_hom( &self, from: &RationalFieldBase<I>, ) -> Option<Self::Homomorphism>
from -> self, returns Some(data), where
data is additional data that can be used to compute the action of the homomorphism
on ring elements. Otherwise, None is returned.Source§fn map_in(
&self,
from: &RationalFieldBase<I>,
el: <RationalFieldBase<I> as RingBase>::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn map_in( &self, from: &RationalFieldBase<I>, el: <RationalFieldBase<I> as RingBase>::Element, hom: &Self::Homomorphism, ) -> Self::Element
Source§fn map_in_ref(
&self,
from: &S,
el: &S::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn map_in_ref( &self, from: &S, el: &S::Element, hom: &Self::Homomorphism, ) -> Self::Element
Source§fn mul_assign_map_in(
&self,
from: &S,
lhs: &mut Self::Element,
rhs: S::Element,
hom: &Self::Homomorphism,
)
fn mul_assign_map_in( &self, from: &S, lhs: &mut Self::Element, rhs: S::Element, hom: &Self::Homomorphism, )
rhs, and multiplies the result to lhs.Source§fn mul_assign_map_in_ref(
&self,
from: &S,
lhs: &mut Self::Element,
rhs: &S::Element,
hom: &Self::Homomorphism,
)
fn mul_assign_map_in_ref( &self, from: &S, lhs: &mut Self::Element, rhs: &S::Element, hom: &Self::Homomorphism, )
rhs, taking it by reference, and multiplies the result to lhs.Source§fn fma_map_in(
&self,
from: &S,
lhs: &Self::Element,
rhs: &S::Element,
summand: Self::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn fma_map_in( &self, from: &S, lhs: &Self::Element, rhs: &S::Element, summand: Self::Element, hom: &Self::Homomorphism, ) -> Self::Element
summand + lhs * rhs, where rhs is mapped into the ring via the homomorphism.Source§impl<I> CanHomFrom<RationalFieldBase<I>> for Real64Base
impl<I> CanHomFrom<RationalFieldBase<I>> for Real64Base
Source§type Homomorphism = ()
type Homomorphism = ()
Source§fn has_canonical_hom(
&self,
_from: &RationalFieldBase<I>,
) -> Option<Self::Homomorphism>
fn has_canonical_hom( &self, _from: &RationalFieldBase<I>, ) -> Option<Self::Homomorphism>
from -> self, returns Some(data), where
data is additional data that can be used to compute the action of the homomorphism
on ring elements. Otherwise, None is returned.Source§fn map_in(
&self,
from: &RationalFieldBase<I>,
el: El<RationalField<I>>,
hom: &Self::Homomorphism,
) -> Self::Element
fn map_in( &self, from: &RationalFieldBase<I>, el: El<RationalField<I>>, hom: &Self::Homomorphism, ) -> Self::Element
Source§fn map_in_ref(
&self,
from: &RationalFieldBase<I>,
el: &El<RationalField<I>>,
_hom: &Self::Homomorphism,
) -> Self::Element
fn map_in_ref( &self, from: &RationalFieldBase<I>, el: &El<RationalField<I>>, _hom: &Self::Homomorphism, ) -> Self::Element
Source§fn mul_assign_map_in(
&self,
from: &S,
lhs: &mut Self::Element,
rhs: S::Element,
hom: &Self::Homomorphism,
)
fn mul_assign_map_in( &self, from: &S, lhs: &mut Self::Element, rhs: S::Element, hom: &Self::Homomorphism, )
rhs, and multiplies the result to lhs.Source§fn mul_assign_map_in_ref(
&self,
from: &S,
lhs: &mut Self::Element,
rhs: &S::Element,
hom: &Self::Homomorphism,
)
fn mul_assign_map_in_ref( &self, from: &S, lhs: &mut Self::Element, rhs: &S::Element, hom: &Self::Homomorphism, )
rhs, taking it by reference, and multiplies the result to lhs.Source§fn fma_map_in(
&self,
from: &S,
lhs: &Self::Element,
rhs: &S::Element,
summand: Self::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn fma_map_in( &self, from: &S, lhs: &Self::Element, rhs: &S::Element, summand: Self::Element, hom: &Self::Homomorphism, ) -> Self::Element
summand + lhs * rhs, where rhs is mapped into the ring via the homomorphism.Source§impl<I, J> CanHomFrom<RationalFieldBase<J>> for RationalFieldBase<I>
impl<I, J> CanHomFrom<RationalFieldBase<J>> for RationalFieldBase<I>
Source§type Homomorphism = ()
type Homomorphism = ()
Source§fn has_canonical_hom(
&self,
_from: &RationalFieldBase<J>,
) -> Option<Self::Homomorphism>
fn has_canonical_hom( &self, _from: &RationalFieldBase<J>, ) -> Option<Self::Homomorphism>
from -> self, returns Some(data), where
data is additional data that can be used to compute the action of the homomorphism
on ring elements. Otherwise, None is returned.Source§fn map_in(
&self,
from: &RationalFieldBase<J>,
el: <RationalFieldBase<J> as RingBase>::Element,
(): &Self::Homomorphism,
) -> Self::Element
fn map_in( &self, from: &RationalFieldBase<J>, el: <RationalFieldBase<J> as RingBase>::Element, (): &Self::Homomorphism, ) -> Self::Element
Source§fn map_in_ref(
&self,
from: &S,
el: &S::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn map_in_ref( &self, from: &S, el: &S::Element, hom: &Self::Homomorphism, ) -> Self::Element
Source§fn mul_assign_map_in(
&self,
from: &S,
lhs: &mut Self::Element,
rhs: S::Element,
hom: &Self::Homomorphism,
)
fn mul_assign_map_in( &self, from: &S, lhs: &mut Self::Element, rhs: S::Element, hom: &Self::Homomorphism, )
rhs, and multiplies the result to lhs.Source§fn mul_assign_map_in_ref(
&self,
from: &S,
lhs: &mut Self::Element,
rhs: &S::Element,
hom: &Self::Homomorphism,
)
fn mul_assign_map_in_ref( &self, from: &S, lhs: &mut Self::Element, rhs: &S::Element, hom: &Self::Homomorphism, )
rhs, taking it by reference, and multiplies the result to lhs.Source§fn fma_map_in(
&self,
from: &S,
lhs: &Self::Element,
rhs: &S::Element,
summand: Self::Element,
hom: &Self::Homomorphism,
) -> Self::Element
fn fma_map_in( &self, from: &S, lhs: &Self::Element, rhs: &S::Element, summand: Self::Element, hom: &Self::Homomorphism, ) -> Self::Element
summand + lhs * rhs, where rhs is mapped into the ring via the homomorphism.Source§impl<R, I> CanIsoFromTo<RationalFieldBase<I>> for FractionFieldImplBase<R>
impl<R, I> CanIsoFromTo<RationalFieldBase<I>> for FractionFieldImplBase<R>
Source§type Isomorphism = <<R as RingStore>::Type as CanIsoFromTo<<I as RingStore>::Type>>::Isomorphism
type Isomorphism = <<R as RingStore>::Type as CanIsoFromTo<<I as RingStore>::Type>>::Isomorphism
Source§fn has_canonical_iso(
&self,
from: &RationalFieldBase<I>,
) -> Option<Self::Isomorphism>
fn has_canonical_iso( &self, from: &RationalFieldBase<I>, ) -> Option<Self::Isomorphism>
from -> self, and this homomorphism
is an isomorphism, returns Some(data), where data is additional data that
can be used to compute preimages under the homomorphism. Otherwise, None is
returned.Source§fn map_out(
&self,
from: &RationalFieldBase<I>,
el: Self::Element,
iso: &Self::Isomorphism,
) -> <RationalFieldBase<I> as RingBase>::Element
fn map_out( &self, from: &RationalFieldBase<I>, el: Self::Element, iso: &Self::Isomorphism, ) -> <RationalFieldBase<I> as RingBase>::Element
el under the canonical homomorphism from -> self.Source§impl<I, J> CanIsoFromTo<RationalFieldBase<J>> for RationalFieldBase<I>
impl<I, J> CanIsoFromTo<RationalFieldBase<J>> for RationalFieldBase<I>
Source§type Isomorphism = ()
type Isomorphism = ()
Source§fn has_canonical_iso(
&self,
_from: &RationalFieldBase<J>,
) -> Option<Self::Isomorphism>
fn has_canonical_iso( &self, _from: &RationalFieldBase<J>, ) -> Option<Self::Isomorphism>
from -> self, and this homomorphism
is an isomorphism, returns Some(data), where data is additional data that
can be used to compute preimages under the homomorphism. Otherwise, None is
returned.Source§fn map_out(
&self,
from: &RationalFieldBase<J>,
el: Self::Element,
(): &Self::Homomorphism,
) -> <RationalFieldBase<J> as RingBase>::Element
fn map_out( &self, from: &RationalFieldBase<J>, el: Self::Element, (): &Self::Homomorphism, ) -> <RationalFieldBase<J> as RingBase>::Element
el under the canonical homomorphism from -> self.Source§impl<I> Clone for RationalFieldBase<I>
impl<I> Clone for RationalFieldBase<I>
Source§impl<I> ComputeResultantRing for RationalFieldBase<I>
impl<I> ComputeResultantRing for RationalFieldBase<I>
Source§impl<I> Debug for RationalFieldBase<I>
impl<I> Debug for RationalFieldBase<I>
Source§impl<'de, I> Deserialize<'de> for RationalFieldBase<I>
impl<'de, I> Deserialize<'de> for RationalFieldBase<I>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl<I> DivisibilityRing for RationalFieldBase<I>
impl<I> DivisibilityRing for RationalFieldBase<I>
Source§fn checked_left_div(
&self,
lhs: &Self::Element,
rhs: &Self::Element,
) -> Option<Self::Element>
fn checked_left_div( &self, lhs: &Self::Element, rhs: &Self::Element, ) -> Option<Self::Element>
x such that rhs * x = lhs, and
returns it if it exists. Read moreSource§fn is_unit(&self, x: &Self::Element) -> bool
fn is_unit(&self, x: &Self::Element) -> bool
Source§fn balance_factor<'a, J>(&self, elements: J) -> Option<Self::Element>
fn balance_factor<'a, J>(&self, elements: J) -> Option<Self::Element>
Source§type PreparedDivisorData = ()
type PreparedDivisorData = ()
Source§fn divides_left(&self, lhs: &Self::Element, rhs: &Self::Element) -> bool
fn divides_left(&self, lhs: &Self::Element, rhs: &Self::Element) -> bool
x such that rhs * x = lhs.
If you need such an element, consider using DivisibilityRing::checked_left_div(). Read moreSource§fn divides(&self, lhs: &Self::Element, rhs: &Self::Element) -> bool
fn divides(&self, lhs: &Self::Element, rhs: &Self::Element) -> bool
DivisibilityRing::divides_left(), but requires a commutative ring.Source§fn checked_div(
&self,
lhs: &Self::Element,
rhs: &Self::Element,
) -> Option<Self::Element>
fn checked_div( &self, lhs: &Self::Element, rhs: &Self::Element, ) -> Option<Self::Element>
DivisibilityRing::checked_left_div(), but requires a commutative ring.Source§fn prepare_divisor(&self, _: &Self::Element) -> Self::PreparedDivisorData
fn prepare_divisor(&self, _: &Self::Element) -> Self::PreparedDivisorData
Source§fn checked_left_div_prepared(
&self,
lhs: &Self::Element,
rhs: &Self::Element,
_rhs_prep: &Self::PreparedDivisorData,
) -> Option<Self::Element>
fn checked_left_div_prepared( &self, lhs: &Self::Element, rhs: &Self::Element, _rhs_prep: &Self::PreparedDivisorData, ) -> Option<Self::Element>
DivisibilityRing::checked_left_div() but for a prepared divisor. Read moreSource§fn divides_left_prepared(
&self,
lhs: &Self::Element,
rhs: &Self::Element,
_rhs_prep: &Self::PreparedDivisorData,
) -> bool
fn divides_left_prepared( &self, lhs: &Self::Element, rhs: &Self::Element, _rhs_prep: &Self::PreparedDivisorData, ) -> bool
DivisibilityRing::divides_left() but for a prepared divisor. Read moreSource§fn is_unit_prepared(&self, x: &PreparedDivisor<Self>) -> bool
fn is_unit_prepared(&self, x: &PreparedDivisor<Self>) -> bool
DivisibilityRing::is_unit() but for a prepared divisor. Read moreSource§impl<I> EuclideanRing for RationalFieldBase<I>
impl<I> EuclideanRing for RationalFieldBase<I>
Source§fn euclidean_deg(&self, val: &Self::Element) -> Option<usize>
fn euclidean_deg(&self, val: &Self::Element) -> Option<usize>
EuclideanRing.Source§fn euclidean_div_rem(
&self,
lhs: Self::Element,
rhs: &Self::Element,
) -> (Self::Element, Self::Element)
fn euclidean_div_rem( &self, lhs: Self::Element, rhs: &Self::Element, ) -> (Self::Element, Self::Element)
Source§impl<I> FactorPolyField for RationalFieldBase<I>
impl<I> FactorPolyField for RationalFieldBase<I>
Source§fn factor_poly<P>(
poly_ring: P,
poly: &El<P>,
) -> (Vec<(El<P>, usize)>, Self::Element)where
P: RingStore + Copy,
P::Type: PolyRing + EuclideanRing,
<P::Type as RingExtension>::BaseRing: RingStore<Type = Self>,
fn factor_poly<P>(
poly_ring: P,
poly: &El<P>,
) -> (Vec<(El<P>, usize)>, Self::Element)where
P: RingStore + Copy,
P::Type: PolyRing + EuclideanRing,
<P::Type as RingExtension>::BaseRing: RingStore<Type = Self>,
Source§fn factor_poly_with_controller<P, Controller>(
poly_ring: P,
poly: &El<P>,
controller: Controller,
) -> (Vec<(El<P>, usize)>, Self::Element)where
P: RingStore + Copy,
P::Type: PolyRing + EuclideanRing,
<P::Type as RingExtension>::BaseRing: RingStore<Type = Self>,
Controller: ComputationController,
fn factor_poly_with_controller<P, Controller>(
poly_ring: P,
poly: &El<P>,
controller: Controller,
) -> (Vec<(El<P>, usize)>, Self::Element)where
P: RingStore + Copy,
P::Type: PolyRing + EuclideanRing,
<P::Type as RingExtension>::BaseRing: RingStore<Type = Self>,
Controller: ComputationController,
FactorPolyField::factor_poly(), this computes the factorization of
a polynomial. However, it additionally accepts a ComputationController
to customize the performed computation.Source§impl<I> Field for RationalFieldBase<I>
impl<I> Field for RationalFieldBase<I>
Source§impl<I> FiniteRingSpecializable for RationalFieldBase<I>
impl<I> FiniteRingSpecializable for RationalFieldBase<I>
Source§fn specialize<O: FiniteRingOperation<Self>>(op: O) -> O::Output
fn specialize<O: FiniteRingOperation<Self>>(op: O) -> O::Output
unstable-enable only.Source§fn is_finite_ring() -> bool
fn is_finite_ring() -> bool
unstable-enable only.Source§impl<I> FractionField for RationalFieldBase<I>
impl<I> FractionField for RationalFieldBase<I>
Source§impl<I: RingStore> HashableElRing for RationalFieldBase<I>
impl<I: RingStore> HashableElRing for RationalFieldBase<I>
Source§impl<I> InterpolationBaseRing for RationalFieldBase<I>
impl<I> InterpolationBaseRing for RationalFieldBase<I>
Source§type ExtendedRing<'a> = RingRef<'a, RationalFieldBase<I>>
where
Self: 'a
type ExtendedRing<'a> = RingRef<'a, RationalFieldBase<I>> where Self: 'a
unstable-enable only.Source§type ExtendedRingBase<'a> = RationalFieldBase<I>
where
Self: 'a
type ExtendedRingBase<'a> = RationalFieldBase<I> where Self: 'a
unstable-enable only.Source§fn in_base<'a, S>(&self, _ext_ring: S, el: El<S>) -> Option<Self::Element>where
Self: 'a,
S: RingStore<Type = Self::ExtendedRingBase<'a>>,
fn in_base<'a, S>(&self, _ext_ring: S, el: El<S>) -> Option<Self::Element>where
Self: 'a,
S: RingStore<Type = Self::ExtendedRingBase<'a>>,
unstable-enable only.Source§fn in_extension<'a, S>(&self, _ext_ring: S, el: Self::Element) -> El<S>where
Self: 'a,
S: RingStore<Type = Self::ExtendedRingBase<'a>>,
fn in_extension<'a, S>(&self, _ext_ring: S, el: Self::Element) -> El<S>where
Self: 'a,
S: RingStore<Type = Self::ExtendedRingBase<'a>>,
unstable-enable only.Source§fn interpolation_points<'a>(
&'a self,
count: usize,
) -> (Self::ExtendedRing<'a>, Vec<El<Self::ExtendedRing<'a>>>)
fn interpolation_points<'a>( &'a self, count: usize, ) -> (Self::ExtendedRing<'a>, Vec<El<Self::ExtendedRing<'a>>>)
unstable-enable only.count points such that the difference between any two of them
is a non-zero-divisor. Read moreSource§impl<I: RingStore> KaratsubaHint for RationalFieldBase<I>where
I::Type: IntegerRing,
impl<I: RingStore> KaratsubaHint for RationalFieldBase<I>where
I::Type: IntegerRing,
Source§default fn karatsuba_threshold(&self) -> usize
default fn karatsuba_threshold(&self) -> usize
unstable-enable only.KaratsubaAlgorithm will use the Karatsuba algorithm. Read moreSource§impl<I> OrderedRing for RationalFieldBase<I>
impl<I> OrderedRing for RationalFieldBase<I>
Source§fn is_leq(&self, lhs: &Self::Element, rhs: &Self::Element) -> bool
fn is_leq(&self, lhs: &Self::Element, rhs: &Self::Element) -> bool
lhs <= rhs.Source§fn is_geq(&self, lhs: &Self::Element, rhs: &Self::Element) -> bool
fn is_geq(&self, lhs: &Self::Element, rhs: &Self::Element) -> bool
lhs >= rhs.Source§impl<I> PartialEq for RationalFieldBase<I>
impl<I> PartialEq for RationalFieldBase<I>
Source§impl<I> PolyTFracGCDRing for RationalFieldBase<I>
impl<I> PolyTFracGCDRing for RationalFieldBase<I>
Source§fn power_decomposition<P>(poly_ring: P, poly: &El<P>) -> Vec<(El<P>, usize)>
fn power_decomposition<P>(poly_ring: P, poly: &El<P>) -> Vec<(El<P>, usize)>
f1, f2, ... such that a f = f1 f2^2 f3^3 ...
for some non-zero-divisor a of this ring. They are returned as tuples (fi, i)
where deg(fi) > 0. Read moreSource§fn gcd<P>(poly_ring: P, lhs: &El<P>, rhs: &El<P>) -> El<P>
fn gcd<P>(poly_ring: P, lhs: &El<P>, rhs: &El<P>) -> El<P>
f, g over the fraction field,
which is the largest-degree polynomial d such that d | a f, a g for some non-zero-divisor
a of this ring. Read moreSource§fn squarefree_part<P>(poly_ring: P, poly: &El<P>) -> El<P>where
P: RingStore + Copy,
P::Type: PolyRing + DivisibilityRing,
<P::Type as RingExtension>::BaseRing: RingStore<Type = Self>,
fn squarefree_part<P>(poly_ring: P, poly: &El<P>) -> El<P>where
P: RingStore + Copy,
P::Type: PolyRing + DivisibilityRing,
<P::Type as RingExtension>::BaseRing: RingStore<Type = Self>,
f, which is the largest-degree squarefree
polynomial d such that d | a f for some non-zero-divisor a of this ring. Read moreSource§fn power_decomposition_with_controller<P, Controller>(
poly_ring: P,
poly: &El<P>,
_: Controller,
) -> Vec<(El<P>, usize)>where
P: RingStore + Copy,
P::Type: PolyRing + DivisibilityRing,
<P::Type as RingExtension>::BaseRing: RingStore<Type = Self>,
Controller: ComputationController,
fn power_decomposition_with_controller<P, Controller>(
poly_ring: P,
poly: &El<P>,
_: Controller,
) -> Vec<(El<P>, usize)>where
P: RingStore + Copy,
P::Type: PolyRing + DivisibilityRing,
<P::Type as RingExtension>::BaseRing: RingStore<Type = Self>,
Controller: ComputationController,
PolyTFracGCDRing::power_decomposition(), this writes a polynomial as a product
of powers of square-free polynomials. However, it additionally accepts a ComputationController
to customize the performed computation.Source§fn gcd_with_controller<P, Controller>(
poly_ring: P,
lhs: &El<P>,
rhs: &El<P>,
_: Controller,
) -> El<P>where
P: RingStore + Copy,
P::Type: PolyRing + DivisibilityRing,
<P::Type as RingExtension>::BaseRing: RingStore<Type = Self>,
Controller: ComputationController,
fn gcd_with_controller<P, Controller>(
poly_ring: P,
lhs: &El<P>,
rhs: &El<P>,
_: Controller,
) -> El<P>where
P: RingStore + Copy,
P::Type: PolyRing + DivisibilityRing,
<P::Type as RingExtension>::BaseRing: RingStore<Type = Self>,
Controller: ComputationController,
PolyTFracGCDRing::gcd(), this computes the gcd of two polynomials.
However, it additionally accepts a ComputationController to customize
the performed computation.Source§impl<I> PrincipalIdealRing for RationalFieldBase<I>
impl<I> PrincipalIdealRing for RationalFieldBase<I>
Source§fn checked_div_min(
&self,
lhs: &Self::Element,
rhs: &Self::Element,
) -> Option<Self::Element>
fn checked_div_min( &self, lhs: &Self::Element, rhs: &Self::Element, ) -> Option<Self::Element>
DivisibilityRing::checked_left_div() this computes a “quotient” q
of lhs and rhs, if it exists. However, we impose the additional constraint
that this quotient be minimal, i.e. there is no q' with q' | q properly and
q' * rhs = lhs. Read moreSource§fn extended_ideal_gen(
&self,
lhs: &Self::Element,
rhs: &Self::Element,
) -> (Self::Element, Self::Element, Self::Element)
fn extended_ideal_gen( &self, lhs: &Self::Element, rhs: &Self::Element, ) -> (Self::Element, Self::Element, Self::Element)
g of the ideal (lhs, rhs)
as g = s * lhs + t * rhs. Read moreSource§fn annihilator(&self, val: &Self::Element) -> Self::Element
fn annihilator(&self, val: &Self::Element) -> Self::Element
Source§fn create_elimination_matrix(
&self,
a: &Self::Element,
b: &Self::Element,
) -> ([Self::Element; 4], Self::Element)
fn create_elimination_matrix( &self, a: &Self::Element, b: &Self::Element, ) -> ([Self::Element; 4], Self::Element)
A of unit determinant such that A * (a, b)^T = (d, 0).
Returns (A, d).Source§fn ideal_gen(&self, lhs: &Self::Element, rhs: &Self::Element) -> Self::Element
fn ideal_gen(&self, lhs: &Self::Element, rhs: &Self::Element) -> Self::Element
g of the ideal (lhs, rhs) = (g), also known as greatest
common divisor. Read moreSource§fn ideal_gen_with_controller<Controller>(
&self,
lhs: &Self::Element,
rhs: &Self::Element,
_: Controller,
) -> Self::Elementwhere
Controller: ComputationController,
fn ideal_gen_with_controller<Controller>(
&self,
lhs: &Self::Element,
rhs: &Self::Element,
_: Controller,
) -> Self::Elementwhere
Controller: ComputationController,
PrincipalIdealRing::ideal_gen(), this computes a generator of the ideal (lhs, rhs).
However, it additionally accepts a ComputationController to customize the performed
computation.Source§impl<I> QRDecompositionField for RationalFieldBase<I>
impl<I> QRDecompositionField for RationalFieldBase<I>
Source§fn scaled_qr_decomposition<V1, V2>(
&self,
matrix: SubmatrixMut<'_, V1, Self::Element>,
q: SubmatrixMut<'_, V2, Self::Element>,
) -> Vec<Self::Element>
fn scaled_qr_decomposition<V1, V2>( &self, matrix: SubmatrixMut<'_, V1, Self::Element>, q: SubmatrixMut<'_, V2, Self::Element>, ) -> Vec<Self::Element>
unstable-enable only.A, computes an orthogonal matrix Q and an upper triangular
matrix R with A = Q R. The function writes Q diag(x_1, ..., x_n) to q and
diag(1/x_1, ..., 1/x_n) R to matrix, and returns x_1^2, ..., x_n^2, where
x_1, ..., x_n are the elements on the diagonal of R. Read moreSource§fn ldl_decomposition<V>(
&self,
matrix: SubmatrixMut<'_, V, Self::Element>,
) -> Vec<Self::Element>where
V: AsPointerToSlice<Self::Element>,
fn ldl_decomposition<V>(
&self,
matrix: SubmatrixMut<'_, V, Self::Element>,
) -> Vec<Self::Element>where
V: AsPointerToSlice<Self::Element>,
unstable-enable only.A, computes a strict lower triangular matrix L and
a diagonal matrix D such that A = L D L^T. The function writes L to matrix
and returns the diagonal elements of D. Read moreSource§impl<I> RingBase for RationalFieldBase<I>
impl<I> RingBase for RationalFieldBase<I>
Source§type Element = RationalFieldEl<I>
type Element = RationalFieldEl<I>
fn add_assign(&self, lhs: &mut Self::Element, rhs: Self::Element)
fn clone_el(&self, val: &Self::Element) -> Self::Element
fn add_assign_ref(&self, lhs: &mut Self::Element, rhs: &Self::Element)
fn mul_assign_ref(&self, lhs: &mut Self::Element, rhs: &Self::Element)
fn mul_assign(&self, lhs: &mut Self::Element, rhs: Self::Element)
fn negate_inplace(&self, lhs: &mut Self::Element)
fn eq_el(&self, lhs: &Self::Element, rhs: &Self::Element) -> bool
fn is_zero(&self, value: &Self::Element) -> bool
fn is_one(&self, value: &Self::Element) -> bool
fn is_neg_one(&self, value: &Self::Element) -> bool
Source§fn is_approximate(&self) -> bool
fn is_approximate(&self) -> bool
f32 or
f64, to represent real or complex numbers. Read moreSource§fn is_commutative(&self) -> bool
fn is_commutative(&self) -> bool
a * b = b * a for all elements a, b.
Note that addition is assumed to be always commutative.Source§fn is_noetherian(&self) -> bool
fn is_noetherian(&self) -> bool
Source§fn characteristic<J: RingStore + Copy>(&self, ZZ: J) -> Option<El<J>>where
J::Type: IntegerRing,
fn characteristic<J: RingStore + Copy>(&self, ZZ: J) -> Option<El<J>>where
J::Type: IntegerRing,
ZZ. Read moreSource§fn dbg_within<'a>(
&self,
value: &Self::Element,
out: &mut Formatter<'a>,
env: EnvBindingStrength,
) -> Result
fn dbg_within<'a>( &self, value: &Self::Element, out: &mut Formatter<'a>, env: EnvBindingStrength, ) -> Result
value to out, taking into account the possible context
to place parenthesis as needed. Read morefn from_int(&self, value: i32) -> Self::Element
fn sub_assign_ref(&self, lhs: &mut Self::Element, rhs: &Self::Element)
fn zero(&self) -> Self::Element
fn one(&self) -> Self::Element
fn neg_one(&self) -> Self::Element
Source§fn fma(
&self,
lhs: &Self::Element,
rhs: &Self::Element,
summand: Self::Element,
) -> Self::Element
fn fma( &self, lhs: &Self::Element, rhs: &Self::Element, summand: Self::Element, ) -> Self::Element
summand + lhs * rhs.fn square(&self, value: &mut Self::Element)
fn negate(&self, value: Self::Element) -> Self::Element
fn sub_assign(&self, lhs: &mut Self::Element, rhs: Self::Element)
fn mul_assign_int(&self, lhs: &mut Self::Element, rhs: i32)
fn mul_int(&self, lhs: Self::Element, rhs: i32) -> Self::Element
fn mul_int_ref(&self, lhs: &Self::Element, rhs: i32) -> Self::Element
Source§fn fma_int(
&self,
lhs: &Self::Element,
rhs: i32,
summand: Self::Element,
) -> Self::Element
fn fma_int( &self, lhs: &Self::Element, rhs: i32, summand: Self::Element, ) -> Self::Element
summand + lhs * rhs.Source§fn sub_self_assign(&self, lhs: &mut Self::Element, rhs: Self::Element)
fn sub_self_assign(&self, lhs: &mut Self::Element, rhs: Self::Element)
lhs := rhs - lhs.Source§fn sub_self_assign_ref(&self, lhs: &mut Self::Element, rhs: &Self::Element)
fn sub_self_assign_ref(&self, lhs: &mut Self::Element, rhs: &Self::Element)
lhs := rhs - lhs.fn add_ref(&self, lhs: &Self::Element, rhs: &Self::Element) -> Self::Element
fn add_ref_fst(&self, lhs: &Self::Element, rhs: Self::Element) -> Self::Element
fn add_ref_snd(&self, lhs: Self::Element, rhs: &Self::Element) -> Self::Element
fn add(&self, lhs: Self::Element, rhs: Self::Element) -> Self::Element
fn sub_ref(&self, lhs: &Self::Element, rhs: &Self::Element) -> Self::Element
fn sub_ref_fst(&self, lhs: &Self::Element, rhs: Self::Element) -> Self::Element
fn sub_ref_snd(&self, lhs: Self::Element, rhs: &Self::Element) -> Self::Element
fn sub(&self, lhs: Self::Element, rhs: Self::Element) -> Self::Element
fn mul_ref(&self, lhs: &Self::Element, rhs: &Self::Element) -> Self::Element
fn mul_ref_fst(&self, lhs: &Self::Element, rhs: Self::Element) -> Self::Element
fn mul_ref_snd(&self, lhs: Self::Element, rhs: &Self::Element) -> Self::Element
fn mul(&self, lhs: Self::Element, rhs: Self::Element) -> Self::Element
Source§fn pow_gen<R: RingStore>(
&self,
x: Self::Element,
power: &El<R>,
integers: R,
) -> Self::Elementwhere
R::Type: IntegerRing,
fn pow_gen<R: RingStore>(
&self,
x: Self::Element,
power: &El<R>,
integers: R,
) -> Self::Elementwhere
R::Type: IntegerRing,
x to the power of an arbitrary, nonnegative integer given by
a custom integer ring implementation. Read moreSource§impl<I> RingExtension for RationalFieldBase<I>
impl<I> RingExtension for RationalFieldBase<I>
Source§fn from(&self, x: El<Self::BaseRing>) -> Self::Element
fn from(&self, x: El<Self::BaseRing>) -> Self::Element
Source§fn mul_assign_base(&self, lhs: &mut Self::Element, rhs: &El<Self::BaseRing>)
fn mul_assign_base(&self, lhs: &mut Self::Element, rhs: &El<Self::BaseRing>)
lhs := lhs * rhs, where rhs is mapped into this
ring via RingExtension::from_ref(). Note that this may be
faster than self.mul_assign(lhs, self.from_ref(rhs)).Source§fn from_ref(&self, x: &El<Self::BaseRing>) -> Self::Element
fn from_ref(&self, x: &El<Self::BaseRing>) -> Self::Element
fn fma_base( &self, lhs: &Self::Element, rhs: &El<Self::BaseRing>, summand: Self::Element, ) -> Self::Element
Source§fn mul_assign_base_through_hom<S: ?Sized + RingBase, H: Homomorphism<S, <Self::BaseRing as RingStore>::Type>>(
&self,
lhs: &mut Self::Element,
rhs: &S::Element,
hom: H,
)
fn mul_assign_base_through_hom<S: ?Sized + RingBase, H: Homomorphism<S, <Self::BaseRing as RingStore>::Type>>( &self, lhs: &mut Self::Element, rhs: &S::Element, hom: H, )
lhs := lhs * rhs, where rhs is mapped into this ring
via the given homomorphism, followed by the inclusion (as specified by
RingExtension::from_ref()). Read moreSource§impl<I> SerializableElementRing for RationalFieldBase<I>
impl<I> SerializableElementRing for RationalFieldBase<I>
Source§fn deserialize<'de, D>(
&self,
deserializer: D,
) -> Result<Self::Element, D::Error>where
D: Deserializer<'de>,
fn deserialize<'de, D>(
&self,
deserializer: D,
) -> Result<Self::Element, D::Error>where
D: Deserializer<'de>,
unstable-enable only.Source§impl<I> Serialize for RationalFieldBase<I>
impl<I> Serialize for RationalFieldBase<I>
Source§impl<I: RingStore> StrassenHint for RationalFieldBase<I>where
I::Type: IntegerRing,
impl<I: RingStore> StrassenHint for RationalFieldBase<I>where
I::Type: IntegerRing,
Source§default fn strassen_threshold(&self) -> usize
default fn strassen_threshold(&self) -> usize
unstable-enable only.StrassenAlgorithm will use the Strassen algorithm. Read moreimpl<I> Copy for RationalFieldBase<I>
impl<I> Domain for RationalFieldBase<I>
impl<I> PerfectField for RationalFieldBase<I>
Auto Trait Implementations§
impl<I> Freeze for RationalFieldBase<I>where
I: Freeze,
impl<I> RefUnwindSafe for RationalFieldBase<I>where
I: RefUnwindSafe,
impl<I> Send for RationalFieldBase<I>where
I: Send,
impl<I> Sync for RationalFieldBase<I>where
I: Sync,
impl<I> Unpin for RationalFieldBase<I>where
I: Unpin,
impl<I> UnwindSafe for RationalFieldBase<I>where
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<R> ComputeInnerProduct for R
impl<R> ComputeInnerProduct for R
Source§default fn inner_product_ref_fst<'a, I>(
&self,
els: I,
) -> <R as RingBase>::Element
default fn inner_product_ref_fst<'a, I>( &self, els: I, ) -> <R as RingBase>::Element
unstable-enable only.sum_i lhs[i] * rhs[i].Source§default fn inner_product_ref<'a, I>(&self, els: I) -> <R as RingBase>::Element
default fn inner_product_ref<'a, I>(&self, els: I) -> <R as RingBase>::Element
unstable-enable only.sum_i lhs[i] * rhs[i].Source§impl<R, S> CooleyTuckeyButterfly<S> for R
impl<R, S> CooleyTuckeyButterfly<S> for R
Source§default fn butterfly<V, H>(
&self,
hom: H,
values: &mut V,
twiddle: &<S as RingBase>::Element,
i1: usize,
i2: usize,
)
default fn butterfly<V, H>( &self, hom: H, values: &mut V, twiddle: &<S as RingBase>::Element, i1: usize, i2: usize, )
(values[i1], values[i2]) := (values[i1] + twiddle * values[i2], values[i1] - twiddle * values[i2]). Read moreSource§default fn butterfly_new<H>(
hom: H,
x: &mut <R as RingBase>::Element,
y: &mut <R as RingBase>::Element,
twiddle: &<S as RingBase>::Element,
)where
H: Homomorphism<S, R>,
default fn butterfly_new<H>(
hom: H,
x: &mut <R as RingBase>::Element,
y: &mut <R as RingBase>::Element,
twiddle: &<S as RingBase>::Element,
)where
H: Homomorphism<S, R>,
(x, y) := (x + twiddle * y, x - twiddle * y). Read moreSource§default fn inv_butterfly<V, H>(
&self,
hom: H,
values: &mut V,
twiddle: &<S as RingBase>::Element,
i1: usize,
i2: usize,
)
default fn inv_butterfly<V, H>( &self, hom: H, values: &mut V, twiddle: &<S as RingBase>::Element, i1: usize, i2: usize, )
(values[i1], values[i2]) := (values[i1] + values[i2], (values[i1] - values[i2]) * twiddle) Read moreSource§default fn inv_butterfly_new<H>(
hom: H,
x: &mut <R as RingBase>::Element,
y: &mut <R as RingBase>::Element,
twiddle: &<S as RingBase>::Element,
)where
H: Homomorphism<S, R>,
default fn inv_butterfly_new<H>(
hom: H,
x: &mut <R as RingBase>::Element,
y: &mut <R as RingBase>::Element,
twiddle: &<S as RingBase>::Element,
)where
H: Homomorphism<S, R>,
(x, y) := (x + y, (x - y) * twiddle) Read moreSource§default fn prepare_for_fft(&self, _value: &mut <R as RingBase>::Element)
default fn prepare_for_fft(&self, _value: &mut <R as RingBase>::Element)
CooleyTuckeyButterfly::butterfly_new()
that the inputs are in this form.Source§default fn prepare_for_inv_fft(&self, _value: &mut <R as RingBase>::Element)
default fn prepare_for_inv_fft(&self, _value: &mut <R as RingBase>::Element)
CooleyTuckeyButterfly::inv_butterfly_new()
that the inputs are in this form.Source§impl<R, S> CooleyTukeyRadix3Butterfly<S> for R
impl<R, S> CooleyTukeyRadix3Butterfly<S> for R
Source§default fn prepare_for_fft(&self, _value: &mut <R as RingBase>::Element)
Available on crate feature unstable-enable only.
default fn prepare_for_fft(&self, _value: &mut <R as RingBase>::Element)
unstable-enable only.Possibly pre-processes elements before the FFT starts. Here you can bring ring element
into a certain form, and assume during CooleyTukeyRadix3Butterfly::butterfly()
that the inputs are in this form.
Source§default fn prepare_for_inv_fft(&self, _value: &mut <R as RingBase>::Element)
Available on crate feature unstable-enable only.
default fn prepare_for_inv_fft(&self, _value: &mut <R as RingBase>::Element)
unstable-enable only.Possibly pre-processes elements before the inverse FFT starts. Here you can bring ring element
into a certain form, and assume during CooleyTukeyRadix3Butterfly::inv_butterfly()
that the inputs are in this form.
Source§default fn butterfly<H>(
hom: H,
a: &mut <R as RingBase>::Element,
b: &mut <R as RingBase>::Element,
c: &mut <R as RingBase>::Element,
z: &<S as RingBase>::Element,
t: &<S as RingBase>::Element,
t_sqr_z_sqr: &<S as RingBase>::Element,
)where
H: Homomorphism<S, R>,
default fn butterfly<H>(
hom: H,
a: &mut <R as RingBase>::Element,
b: &mut <R as RingBase>::Element,
c: &mut <R as RingBase>::Element,
z: &<S as RingBase>::Element,
t: &<S as RingBase>::Element,
t_sqr_z_sqr: &<S as RingBase>::Element,
)where
H: Homomorphism<S, R>,
unstable-enable only.(a, b, c) := (a + t b + t^2 c, a + t z b + t^2 z^2 c, a + t z^2 b + t^2 z c). Read moreSource§default fn inv_butterfly<H>(
hom: H,
a: &mut <R as RingBase>::Element,
b: &mut <R as RingBase>::Element,
c: &mut <R as RingBase>::Element,
z: &<S as RingBase>::Element,
t: &<S as RingBase>::Element,
t_sqr: &<S as RingBase>::Element,
)where
H: Homomorphism<S, R>,
default fn inv_butterfly<H>(
hom: H,
a: &mut <R as RingBase>::Element,
b: &mut <R as RingBase>::Element,
c: &mut <R as RingBase>::Element,
z: &<S as RingBase>::Element,
t: &<S as RingBase>::Element,
t_sqr: &<S as RingBase>::Element,
)where
H: Homomorphism<S, R>,
unstable-enable only.(a, b, c) := (a + b + c, t (a + z^2 b + z c), t^2 (a + z b + z^2 c)). Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<R> KaratsubaHint for R
impl<R> KaratsubaHint for R
Source§default fn karatsuba_threshold(&self) -> usize
default fn karatsuba_threshold(&self) -> usize
unstable-enable only.KaratsubaAlgorithm will use the Karatsuba algorithm. Read moreSource§impl<R> LinSolveRing for Rwhere
R: PrincipalIdealRing + ?Sized,
impl<R> LinSolveRing for Rwhere
R: PrincipalIdealRing + ?Sized,
Source§default fn solve_right<V1, V2, V3, A>(
&self,
lhs: SubmatrixMut<'_, V1, <R as RingBase>::Element>,
rhs: SubmatrixMut<'_, V2, <R as RingBase>::Element>,
out: SubmatrixMut<'_, V3, <R as RingBase>::Element>,
allocator: A,
) -> SolveResultwhere
V1: AsPointerToSlice<<R as RingBase>::Element>,
V2: AsPointerToSlice<<R as RingBase>::Element>,
V3: AsPointerToSlice<<R as RingBase>::Element>,
A: Allocator,
default fn solve_right<V1, V2, V3, A>(
&self,
lhs: SubmatrixMut<'_, V1, <R as RingBase>::Element>,
rhs: SubmatrixMut<'_, V2, <R as RingBase>::Element>,
out: SubmatrixMut<'_, V3, <R as RingBase>::Element>,
allocator: A,
) -> SolveResultwhere
V1: AsPointerToSlice<<R as RingBase>::Element>,
V2: AsPointerToSlice<<R as RingBase>::Element>,
V3: AsPointerToSlice<<R as RingBase>::Element>,
A: Allocator,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R> StrassenHint for R
impl<R> StrassenHint for R
Source§default fn strassen_threshold(&self) -> usize
default fn strassen_threshold(&self) -> usize
unstable-enable only.StrassenAlgorithm will use the Strassen algorithm. Read more