Macaulay2 Engine
Loading...
Searching...
No Matches

◆ increase_maxnorm() [2/5]

void M2::ConcreteRing< ARingRRR >::increase_maxnorm ( gmp_RRmutable norm,
const ring_elem f ) const
inlinevirtual

Reimplemented from Ring.

Definition at line 1145 of file aring-glue.hpp.

1147{
1148 ARingRRR::Element a(*R); // will be the norm
1149 const ElementType &b = R->from_ring_elem_const(f);
1150 R->abs(a, b);
1151 if (mpfr_cmp(&a.value(), norm) > 0) mpfr_set(norm, &a.value(), MPFR_RNDN);
1152}
RingType::ElementType ElementType
std::unique_ptr< RingType > R