Lines Matching refs:friend
264 friend const mpreal operator-(const unsigned long int b, const mpreal& a);
265 friend const mpreal operator-(const unsigned int b, const mpreal& a);
266 friend const mpreal operator-(const long int b, const mpreal& a);
267 friend const mpreal operator-(const int b, const mpreal& a);
268 friend const mpreal operator-(const double b, const mpreal& a);
293 friend const mpreal operator/(const unsigned long int b, const mpreal& a);
294 friend const mpreal operator/(const unsigned int b, const mpreal& a);
295 friend const mpreal operator/(const long int b, const mpreal& a);
296 friend const mpreal operator/(const int b, const mpreal& a);
297 friend const mpreal operator/(const double b, const mpreal& a);
312 friend bool operator > (const mpreal& a, const mpreal& b);
313 friend bool operator >= (const mpreal& a, const mpreal& b);
314 friend bool operator < (const mpreal& a, const mpreal& b);
315 friend bool operator <= (const mpreal& a, const mpreal& b);
316 friend bool operator == (const mpreal& a, const mpreal& b);
317 friend bool operator != (const mpreal& a, const mpreal& b);
320 friend bool operator == (const mpreal& a, const unsigned long int b);
321 friend bool operator == (const mpreal& a, const unsigned int b);
322 friend bool operator == (const mpreal& a, const long int b);
323 friend bool operator == (const mpreal& a, const int b);
324 friend bool operator == (const mpreal& a, const long double b);
325 friend bool operator == (const mpreal& a, const double b);
374 friend const mpreal sqr (const mpreal& v, mp_rnd_t rnd_mode);
375 friend const mpreal sqrt(const mpreal& v, mp_rnd_t rnd_mode);
376 friend const mpreal sqrt(const unsigned long int v, mp_rnd_t rnd_mode);
377 friend const mpreal cbrt(const mpreal& v, mp_rnd_t rnd_mode);
378 friend const mpreal root(const mpreal& v, unsigned long int k, mp_rnd_t rnd_mode);
379 friend const mpreal pow (const mpreal& a, const mpreal& b, mp_rnd_t rnd_mode);
380 friend const mpreal pow (const mpreal& a, const mpz_t b, mp_rnd_t rnd_mode);
381 friend const mpreal pow (const mpreal& a, const unsigned long int b, mp_rnd_t rnd_mode);
382 friend const mpreal pow (const mpreal& a, const long int b, mp_rnd_t rnd_mode);
383 friend const mpreal pow (const unsigned long int a, const mpreal& b, mp_rnd_t rnd_mode);
384 … friend const mpreal pow (const unsigned long int a, const unsigned long int b, mp_rnd_t rnd_mode);
385 friend const mpreal fabs(const mpreal& v, mp_rnd_t rnd_mode);
387 friend const mpreal abs(const mpreal& v, mp_rnd_t rnd_mode);
388 friend const mpreal dim(const mpreal& a, const mpreal& b, mp_rnd_t rnd_mode);
389 friend inline const mpreal mul_2ui(const mpreal& v, unsigned long int k, mp_rnd_t rnd_mode);
390 friend inline const mpreal mul_2si(const mpreal& v, long int k, mp_rnd_t rnd_mode);
391 friend inline const mpreal div_2ui(const mpreal& v, unsigned long int k, mp_rnd_t rnd_mode);
392 friend inline const mpreal div_2si(const mpreal& v, long int k, mp_rnd_t rnd_mode);
393 friend int cmpabs(const mpreal& a,const mpreal& b);
395 friend const mpreal log (const mpreal& v, mp_rnd_t rnd_mode);
396 friend const mpreal log2 (const mpreal& v, mp_rnd_t rnd_mode);
397 friend const mpreal log10(const mpreal& v, mp_rnd_t rnd_mode);
398 friend const mpreal exp (const mpreal& v, mp_rnd_t rnd_mode);
399 friend const mpreal exp2 (const mpreal& v, mp_rnd_t rnd_mode);
400 friend const mpreal exp10(const mpreal& v, mp_rnd_t rnd_mode);
401 friend const mpreal log1p(const mpreal& v, mp_rnd_t rnd_mode);
402 friend const mpreal expm1(const mpreal& v, mp_rnd_t rnd_mode);
404 friend const mpreal cos(const mpreal& v, mp_rnd_t rnd_mode);
405 friend const mpreal sin(const mpreal& v, mp_rnd_t rnd_mode);
406 friend const mpreal tan(const mpreal& v, mp_rnd_t rnd_mode);
407 friend const mpreal sec(const mpreal& v, mp_rnd_t rnd_mode);
408 friend const mpreal csc(const mpreal& v, mp_rnd_t rnd_mode);
409 friend const mpreal cot(const mpreal& v, mp_rnd_t rnd_mode);
410 friend int sin_cos(mpreal& s, mpreal& c, const mpreal& v, mp_rnd_t rnd_mode);
412 friend const mpreal acos (const mpreal& v, mp_rnd_t rnd_mode);
413 friend const mpreal asin (const mpreal& v, mp_rnd_t rnd_mode);
414 friend const mpreal atan (const mpreal& v, mp_rnd_t rnd_mode);
415 friend const mpreal atan2 (const mpreal& y, const mpreal& x, mp_rnd_t rnd_mode);
416 friend const mpreal acot (const mpreal& v, mp_rnd_t rnd_mode);
417 friend const mpreal asec (const mpreal& v, mp_rnd_t rnd_mode);
418 friend const mpreal acsc (const mpreal& v, mp_rnd_t rnd_mode);
420 friend const mpreal cosh (const mpreal& v, mp_rnd_t rnd_mode);
421 friend const mpreal sinh (const mpreal& v, mp_rnd_t rnd_mode);
422 friend const mpreal tanh (const mpreal& v, mp_rnd_t rnd_mode);
423 friend const mpreal sech (const mpreal& v, mp_rnd_t rnd_mode);
424 friend const mpreal csch (const mpreal& v, mp_rnd_t rnd_mode);
425 friend const mpreal coth (const mpreal& v, mp_rnd_t rnd_mode);
426 friend const mpreal acosh (const mpreal& v, mp_rnd_t rnd_mode);
427 friend const mpreal asinh (const mpreal& v, mp_rnd_t rnd_mode);
428 friend const mpreal atanh (const mpreal& v, mp_rnd_t rnd_mode);
429 friend const mpreal acoth (const mpreal& v, mp_rnd_t rnd_mode);
430 friend const mpreal asech (const mpreal& v, mp_rnd_t rnd_mode);
431 friend const mpreal acsch (const mpreal& v, mp_rnd_t rnd_mode);
433 friend const mpreal hypot (const mpreal& x, const mpreal& y, mp_rnd_t rnd_mode);
435 friend const mpreal fac_ui (unsigned long int v, mp_prec_t prec, mp_rnd_t rnd_mode);
436 friend const mpreal eint (const mpreal& v, mp_rnd_t rnd_mode);
438 friend const mpreal gamma (const mpreal& v, mp_rnd_t rnd_mode);
439 friend const mpreal lngamma (const mpreal& v, mp_rnd_t rnd_mode);
440 friend const mpreal lgamma (const mpreal& v, int *signp, mp_rnd_t rnd_mode);
441 friend const mpreal zeta (const mpreal& v, mp_rnd_t rnd_mode);
442 friend const mpreal erf (const mpreal& v, mp_rnd_t rnd_mode);
443 friend const mpreal erfc (const mpreal& v, mp_rnd_t rnd_mode);
444 friend const mpreal besselj0 (const mpreal& v, mp_rnd_t rnd_mode);
445 friend const mpreal besselj1 (const mpreal& v, mp_rnd_t rnd_mode);
446 friend const mpreal besseljn (long n, const mpreal& v, mp_rnd_t rnd_mode);
447 friend const mpreal bessely0 (const mpreal& v, mp_rnd_t rnd_mode);
448 friend const mpreal bessely1 (const mpreal& v, mp_rnd_t rnd_mode);
449 friend const mpreal besselyn (long n, const mpreal& v, mp_rnd_t rnd_mode);
450 …friend const mpreal fma (const mpreal& v1, const mpreal& v2, const mpreal& v3, mp_rnd_t rnd_m…
451 …friend const mpreal fms (const mpreal& v1, const mpreal& v2, const mpreal& v3, mp_rnd_t rnd_m…
452 friend const mpreal agm (const mpreal& v1, const mpreal& v2, mp_rnd_t rnd_mode);
453 friend const mpreal sum (const mpreal tab[], unsigned long int n, mp_rnd_t rnd_mode);
454 friend int sgn(const mpreal& v); // returns -1 or +1
458 friend int sinh_cosh (mpreal& s, mpreal& c, const mpreal& v, mp_rnd_t rnd_mode);
459 friend const mpreal li2 (const mpreal& v, mp_rnd_t rnd_mode);
460 friend const mpreal fmod (const mpreal& x, const mpreal& y, mp_rnd_t rnd_mode);
461 friend const mpreal rec_sqrt (const mpreal& v, mp_rnd_t rnd_mode);
464 …friend const mpreal rem (const mpreal& x, const mpreal& y, mp_rnd_t rnd_mode); // Remainder after …
465 …friend const mpreal mod (const mpreal& x, const mpreal& y, mp_rnd_t rnd_mode); // Modulus after di…
470 friend const mpreal digamma (const mpreal& v, mp_rnd_t rnd_mode);
471 friend const mpreal ai (const mpreal& v, mp_rnd_t rnd_mode);
472 …friend const mpreal urandom (gmp_randstate_t& state, mp_rnd_t rnd_mode); // use gmp_randinit_d…
473 …friend const mpreal grandom (gmp_randstate_t& state, mp_rnd_t rnd_mode); // use gmp_randinit_d…
474 friend const mpreal grandom (unsigned int seed);
481 friend const mpreal random(unsigned int seed);
484 friend const mpreal frexp(const mpreal& v, mp_exp_t* exp);
485 friend const mpreal ldexp(const mpreal& v, mp_exp_t exp);
489 friend const mpreal modf(const mpreal& v, mpreal& n);
493 friend const mpreal const_log2 (mp_prec_t prec, mp_rnd_t rnd_mode);
494 friend const mpreal const_pi (mp_prec_t prec, mp_rnd_t rnd_mode);
495 friend const mpreal const_euler (mp_prec_t prec, mp_rnd_t rnd_mode);
496 friend const mpreal const_catalan (mp_prec_t prec, mp_rnd_t rnd_mode);
499 friend const mpreal const_infinity(int sign, mp_prec_t prec);
502 friend std::ostream& operator<<(std::ostream& os, const mpreal& v);
503 friend std::istream& operator>>(std::istream& is, mpreal& v);
506 friend const mpreal rint (const mpreal& v, mp_rnd_t rnd_mode);
507 friend const mpreal ceil (const mpreal& v);
508 friend const mpreal floor(const mpreal& v);
509 friend const mpreal round(const mpreal& v);
510 friend const mpreal trunc(const mpreal& v);
511 friend const mpreal rint_ceil (const mpreal& v, mp_rnd_t rnd_mode);
512 friend const mpreal rint_floor (const mpreal& v, mp_rnd_t rnd_mode);
513 friend const mpreal rint_round (const mpreal& v, mp_rnd_t rnd_mode);
514 friend const mpreal rint_trunc (const mpreal& v, mp_rnd_t rnd_mode);
515 friend const mpreal frac (const mpreal& v, mp_rnd_t rnd_mode);
516 friend const mpreal remainder ( const mpreal& x, const mpreal& y, mp_rnd_t rnd_mode);
517 friend const mpreal remquo (long* q, const mpreal& x, const mpreal& y, mp_rnd_t rnd_mode);
520 friend const mpreal nexttoward (const mpreal& x, const mpreal& y);
521 friend const mpreal nextabove (const mpreal& x);
522 friend const mpreal nextbelow (const mpreal& x);
525 friend const mpreal urandomb (gmp_randstate_t& state);
529 friend const mpreal random2 (mp_size_t size, mp_exp_t exp);
533 friend bool isnan (const mpreal& v);
534 friend bool isinf (const mpreal& v);
535 friend bool isfinite (const mpreal& v);
537 friend bool isnum (const mpreal& v);
538 friend bool iszero (const mpreal& v);
539 friend bool isint (const mpreal& v);
542 friend bool isregular(const mpreal& v);
582 friend void swap(mpreal& x, mpreal& y);
584 friend const mpreal fmax(const mpreal& x, const mpreal& y, mp_rnd_t rnd_mode);
585 friend const mpreal fmin(const mpreal& x, const mpreal& y, mp_rnd_t rnd_mode);