MCPcopy Create free account
hub / github.com/Singular/Singular / getWritePtr

Method getWritePtr

Singular/svd_si.h:1313–1322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1311
1312 template<unsigned int Precision>
1313 mpfr_ptr ampf<Precision>::getWritePtr()
1314 {
1315 if( rval->refCount==1 )
1316 return rval->value;
1317 mpfr_record *newrval = mpfr_storage::newMpfr(Precision);
1318 mpfr_set(newrval->value, rval->value, GMP_RNDN);
1319 rval->refCount--;
1320 rval = newrval;
1321 return rval->value;
1322 }
1323
1324 template<unsigned int Precision>
1325 bool ampf<Precision>::isFiniteNumber() const

Callers 15

getUlpOfMethod · 0.45
getUlpMethod · 0.45
getUlp256Method · 0.45
getUlp512Method · 0.45
getMaxNumberMethod · 0.45
getMinNumberMethod · 0.45
getRandomMethod · 0.45
sqrFunction · 0.45
absFunction · 0.45
maximumFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected