Definition at line 2074 of file matrix.cpp.
2075{
2078 {
2079 ERROR(
"expected ring over an RR or CC");
2080 return nullptr;
2081 }
2083 mpfr_init2(nm, mpfr_get_prec(
p));
2084 mpfr_ui_div(nm, 1,
p, MPFR_RNDN);
2085 if (!mpfr_zero_p(nm))
2086 {
2087 ERROR(
"Lp norm only implemented for p = infinity");
2088 mpfr_clear(nm);
2089 return nullptr;
2090 }
2091
2093
2095}
const Ring * get_ring() const
ring_elem elem(int i, int j) const
virtual unsigned long get_precision() const
void vec_increase_maxnorm(gmp_RRmutable norm, const vec f) const
mpfr_srcptr moveTo_gmpRR(mpfr_ptr _z)
#define getmemstructtype(S)
References elem(), ERROR, Ring::get_precision(), get_ring(), getmemstructtype, moveTo_gmpRR(), n_cols(), norm(), p, and Ring::vec_increase_maxnorm().
Referenced by norm(), and rawMatrixNorm().