Definition at line 1137 of file mutable-matrix.cpp.
1138{
1140 {
1141 ERROR(
"expected ring over an RR or CC");
1142 return nullptr;
1143 }
1145 mpfr_init2(norm, mpfr_get_prec(
p));
1146 mpfr_ui_div(norm, 1,
p, MPFR_RNDN);
1147 if (!mpfr_zero_p(norm))
1148 {
1149 ERROR(
"Lp norm only implemented for p = infinity");
1150 mpfr_clear(norm);
1151 return nullptr;
1152 }
1153 return norm;
1154}
virtual unsigned long get_precision() const
#define getmemstructtype(S)
References ERROR, Ring::get_precision(), getmemstructtype, and p.
Referenced by rawRingElementNorm().