MCPcopy Create free account
hub / github.com/bluescarni/mppp / complex

Method complex

src/complex.cpp:102–107  ·  view source on GitHub ↗

NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init, hicpp-member-init)

Source from the content-addressed store, hash-verified

100
101// NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init, hicpp-member-init)
102complex::complex()
103{
104 ::mpc_init2(&m_mpc, real_prec_min());
105 ::mpfr_set_zero(mpc_realref(&m_mpc), 1);
106 ::mpfr_set_zero(mpc_imagref(&m_mpc), 1);
107}
108
109// Init a complex with precision p, setting its value to (nan,nan). No precision
110// checking is performed.

Callers

nothing calls this directly

Calls 7

real_prec_checkFunction · 0.85
ignoreFunction · 0.85
complex_prec_tEnum · 0.85
c_strMethod · 0.80
dataMethod · 0.80
check_init_precFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected