26#ifndef _CXSC_CDOT_HPP_INCLUDED
27#define _CXSC_CDOT_HPP_INCLUDED
34#include "l_complex.hpp"
35#include "cinterval.hpp"
91 inline int get_k()
const {
return k; }
308std::istream& operator >> (std::istream& s, cdotprecision& a)
noexcept;
309std::ostream& operator << (std::ostream& s,
const cdotprecision& a)
noexcept;
310std::string& operator >> (std::string& s, cdotprecision& a)
noexcept;
311std::string& operator << (std::string& s,
const cdotprecision& a)
noexcept;
312void operator >> (
const std::string &s,cdotprecision& a)
noexcept;
313void operator >> (
const char *s ,cdotprecision& a)
noexcept;
315void rnd(
const cdotprecision &,complex &,rndtype = RND_NEXT)
noexcept;
316void rnd(
const cdotprecision &,complex &,complex &)
noexcept;
317void rnd(
const cdotprecision&, cinterval&)
noexcept;
318complex rnd(
const cdotprecision &,rndtype = RND_NEXT)
noexcept;
320void accumulate (cdotprecision&,
const complex&,
const complex&)
noexcept;
330inline cdotprecision &
operator += (cdotprecision &cd,
const l_complex &lc)
noexcept;
331inline cdotprecision & operator -= (cdotprecision &cd,
const l_complex &lc)
noexcept;
The Data Type cdotprecision.
int get_dotprec() const
Get currently set precision for computation of dot products.
void set_k(unsigned int i)
Set precision for computation of dot products.
void set_dotprec(unsigned int i)
Set precision for computation of dot products.
int get_k() const
Get currently set precision for computation of dot products.
friend cdotprecision & SetIm(cdotprecision &a, const dotprecision &b) noexcept
Sets the imaginary part of a complex dotprecision value.
friend cdotprecision _cdotprecision(const dotprecision &)
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC.
friend dotprecision & Re(cdotprecision &a)
Returns the real part of the complex dotprecision value.
friend void rnd(const cdotprecision &, complex &, rndtype) noexcept
Converting the exact complex dotprecision value with one rounding into a complex value.
friend bool operator!=(const cdotprecision &, const cdotprecision &) noexcept
Implementation of standard negated equality operation.
friend cdotprecision operator-(const cdotprecision &) noexcept
Implementation of standard algebraic negative sign operation.
friend cdotprecision conj(const cdotprecision &a) noexcept
Returns the conjugated complex dotprecision value.
friend cdotprecision & SetRe(cdotprecision &a, const dotprecision &b) noexcept
Sets the real part of a complex dotprecision value.
friend cdotprecision & operator+=(cdotprecision &, const cdotprecision &) noexcept
Implementation of standard algebraic addition and allocation operation.
cdotprecision()
Constructor of class cdotprecision.
friend std::istream & operator>>(std::istream &s, cdotprecision &a) noexcept
Implementation of standard input method.
friend dotprecision & Im(cdotprecision &a) noexcept
Returns the imaginary part of the complex dotprecision value.
friend cdotprecision operator+(const cdotprecision &) noexcept
Implementation of standard algebraic positive sign operation.
cdotprecision & operator=(const real &a)
Implementation of standard assigning operator.
friend bool operator==(const cdotprecision &, const cdotprecision &) noexcept
Implementation of standard equality operation.
friend std::ostream & operator<<(std::ostream &s, const cdotprecision &a) noexcept
Implementation of standard output method.
friend bool operator!(const cdotprecision &) noexcept
Implementation of standard negation operation.
friend cdotprecision & operator-=(cdotprecision &, const cdotprecision &) noexcept
Implementation of standard algebraic subtraction and allocation operation.
friend void accumulate(cdotprecision &, const complex &, const complex &) noexcept
The accurate scalar product of the last two arguments added to the value of the first argument.
The Scalar Type cinterval.
The Data Type dotprecision.
void set_k(unsigned int i)
Set precision for computation of dot products.
The Multiple-Precision Data Type l_complex.
The Multiple-Precision Data Type l_real.
The namespace cxsc, providing all functionality of the class library C-XSC.
cdotprecision & operator+=(cdotprecision &cd, const l_complex &lc) noexcept
Implementation of standard algebraic addition and allocation operation.
cdotprecision _cdotprecision(const l_complex &)