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

◆ increase_maxnorm() [4/5]

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

Reimplemented from Ring.

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

1126{
1127 ARingRR::Element a(*R); // will be the norm
1128 const ElementType &b = R->from_ring_elem_const(f);
1129 R->abs(a, b);
1130 if (mpfr_cmp_d(norm, a) < 0) mpfr_set_d(norm, a, MPFR_RNDN);
1131}
RingType::ElementType ElementType
std::unique_ptr< RingType > R