Cytnx v0.7.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cytnx::Scalar Class Reference

#include <Scalar.hpp>

Public Member Functions

 Scalar ()
 
 Scalar (const cytnx_complex128 &in)
 
 Scalar (const cytnx_complex64 &in)
 
 Scalar (const cytnx_double &in)
 
 Scalar (const cytnx_float &in)
 
 Scalar (const cytnx_uint64 &in)
 
 Scalar (const cytnx_int64 &in)
 
 Scalar (const cytnx_uint32 &in)
 
 Scalar (const cytnx_int32 &in)
 
 Scalar (const cytnx_uint16 &in)
 
 Scalar (const cytnx_int16 &in)
 
 Scalar (const cytnx_bool &in)
 
template<class T >
 Scalar (const T &in, const unsigned int &dtype)
 
 Scalar (const Sproxy &prox)
 
 Scalar (Scalar_base *in)
 
 Scalar (const Scalar &rhs)
 
Scalaroperator= (const Scalar &rhs)
 
Scalaroperator= (const cytnx_complex128 &rhs)
 
Scalaroperator= (const cytnx_complex64 &rhs)
 
Scalaroperator= (const cytnx_double &rhs)
 
Scalaroperator= (const cytnx_float &rhs)
 
Scalaroperator= (const cytnx_uint64 &rhs)
 
Scalaroperator= (const cytnx_int64 &rhs)
 
Scalaroperator= (const cytnx_uint32 &rhs)
 
Scalaroperator= (const cytnx_int32 &rhs)
 
Scalaroperator= (const cytnx_uint16 &rhs)
 
Scalaroperator= (const cytnx_int16 &rhs)
 
Scalaroperator= (const cytnx_bool &rhs)
 
Scalar astype (const unsigned int &dtype) const
 
Scalar conj () const
 
Scalar imag () const
 
Scalar real () const
 
int dtype () const
 
void print () const
 
 operator cytnx_double () const
 
 operator cytnx_float () const
 
 operator cytnx_uint64 () const
 
 operator cytnx_int64 () const
 
 operator cytnx_uint32 () const
 
 operator cytnx_int32 () const
 
 operator cytnx_uint16 () const
 
 operator cytnx_int16 () const
 
 operator cytnx_bool () const
 
 ~Scalar ()
 
template<class T >
void operator+= (const T &rc)
 
void operator+= (const Scalar &rhs)
 
template<class T >
void operator-= (const T &rc)
 
void operator-= (const Scalar &rhs)
 
template<class T >
void operator*= (const T &rc)
 
void operator*= (const Scalar &rhs)
 
template<class T >
void operator/= (const T &rc)
 
void operator/= (const Scalar &rhs)
 
void iabs ()
 
void isqrt ()
 
Scalar abs () const
 
Scalar sqrt () const
 
template<class T >
bool less (const T &rc) const
 
bool less (const Scalar &rhs) const
 
template<class T >
bool leq (const T &rc) const
 
bool leq (const Scalar &rhs) const
 
template<class T >
bool greater (const T &rc) const
 
bool greater (const Scalar &rhs) const
 
template<class T >
bool geq (const T &rc) const
 
bool geq (const Scalar &rhs) const
 
template<class T >
Scalar radd (const T &rc) const
 
Scalar radd (const Scalar &rhs) const
 
template<class T >
Scalar rmul (const T &rc) const
 
Scalar rmul (const Scalar &rhs) const
 
template<class T >
Scalar rsub (const T &rc) const
 
Scalar rsub (const Scalar &rhs) const
 
template<class T >
Scalar rdiv (const T &rc) const
 
Scalar rdiv (const Scalar &rhs) const
 

Static Public Member Functions

static Scalar maxval (const unsigned int &dtype)
 
static Scalar minval (const unsigned int &dtype)
 

Public Attributes

Scalar_base * _impl
 

Constructor & Destructor Documentation

◆ Scalar() [1/16]

cytnx::Scalar::Scalar ( )
inline

◆ Scalar() [2/16]

cytnx::Scalar::Scalar ( const cytnx_complex128 in)
inline

◆ Scalar() [3/16]

cytnx::Scalar::Scalar ( const cytnx_complex64 in)
inline

◆ Scalar() [4/16]

cytnx::Scalar::Scalar ( const cytnx_double in)
inline

◆ Scalar() [5/16]

cytnx::Scalar::Scalar ( const cytnx_float in)
inline

◆ Scalar() [6/16]

cytnx::Scalar::Scalar ( const cytnx_uint64 in)
inline

◆ Scalar() [7/16]

cytnx::Scalar::Scalar ( const cytnx_int64 in)
inline

◆ Scalar() [8/16]

cytnx::Scalar::Scalar ( const cytnx_uint32 in)
inline

◆ Scalar() [9/16]

cytnx::Scalar::Scalar ( const cytnx_int32 in)
inline

◆ Scalar() [10/16]

cytnx::Scalar::Scalar ( const cytnx_uint16 in)
inline

◆ Scalar() [11/16]

cytnx::Scalar::Scalar ( const cytnx_int16 in)
inline

◆ Scalar() [12/16]

cytnx::Scalar::Scalar ( const cytnx_bool in)
inline

◆ Scalar() [13/16]

template<class T >
cytnx::Scalar::Scalar ( const T &  in,
const unsigned int &  dtype 
)
inline

◆ Scalar() [14/16]

cytnx::Scalar::Scalar ( const Sproxy &  prox)

◆ Scalar() [15/16]

cytnx::Scalar::Scalar ( Scalar_base *  in)
inline

◆ Scalar() [16/16]

cytnx::Scalar::Scalar ( const Scalar rhs)
inline

◆ ~Scalar()

cytnx::Scalar::~Scalar ( )
inline

Member Function Documentation

◆ abs()

Scalar cytnx::Scalar::abs ( ) const
inline

◆ astype()

Scalar cytnx::Scalar::astype ( const unsigned int &  dtype) const
inline

◆ conj()

Scalar cytnx::Scalar::conj ( ) const
inline

◆ dtype()

int cytnx::Scalar::dtype ( ) const
inline

◆ geq() [1/2]

bool cytnx::Scalar::geq ( const Scalar rhs) const
inline

◆ geq() [2/2]

template<class T >
bool cytnx::Scalar::geq ( const T &  rc) const
inline

◆ greater() [1/2]

bool cytnx::Scalar::greater ( const Scalar rhs) const
inline

◆ greater() [2/2]

template<class T >
bool cytnx::Scalar::greater ( const T &  rc) const
inline

◆ iabs()

void cytnx::Scalar::iabs ( )
inline

◆ imag()

Scalar cytnx::Scalar::imag ( ) const
inline

◆ isqrt()

void cytnx::Scalar::isqrt ( )
inline

◆ leq() [1/2]

bool cytnx::Scalar::leq ( const Scalar rhs) const
inline

◆ leq() [2/2]

template<class T >
bool cytnx::Scalar::leq ( const T &  rc) const
inline

◆ less() [1/2]

bool cytnx::Scalar::less ( const Scalar rhs) const
inline

◆ less() [2/2]

template<class T >
bool cytnx::Scalar::less ( const T &  rc) const
inline

◆ maxval()

static Scalar cytnx::Scalar::maxval ( const unsigned int &  dtype)
inlinestatic

◆ minval()

static Scalar cytnx::Scalar::minval ( const unsigned int &  dtype)
inlinestatic

◆ operator cytnx_bool()

cytnx::Scalar::operator cytnx_bool ( ) const
inlineexplicit

◆ operator cytnx_double()

cytnx::Scalar::operator cytnx_double ( ) const
inlineexplicit

◆ operator cytnx_float()

cytnx::Scalar::operator cytnx_float ( ) const
inlineexplicit

◆ operator cytnx_int16()

cytnx::Scalar::operator cytnx_int16 ( ) const
inlineexplicit

◆ operator cytnx_int32()

cytnx::Scalar::operator cytnx_int32 ( ) const
inlineexplicit

◆ operator cytnx_int64()

cytnx::Scalar::operator cytnx_int64 ( ) const
inlineexplicit

◆ operator cytnx_uint16()

cytnx::Scalar::operator cytnx_uint16 ( ) const
inlineexplicit

◆ operator cytnx_uint32()

cytnx::Scalar::operator cytnx_uint32 ( ) const
inlineexplicit

◆ operator cytnx_uint64()

cytnx::Scalar::operator cytnx_uint64 ( ) const
inlineexplicit

◆ operator*=() [1/2]

void cytnx::Scalar::operator*= ( const Scalar rhs)
inline

◆ operator*=() [2/2]

template<class T >
void cytnx::Scalar::operator*= ( const T &  rc)
inline

◆ operator+=() [1/2]

void cytnx::Scalar::operator+= ( const Scalar rhs)
inline

◆ operator+=() [2/2]

template<class T >
void cytnx::Scalar::operator+= ( const T &  rc)
inline

◆ operator-=() [1/2]

void cytnx::Scalar::operator-= ( const Scalar rhs)
inline

◆ operator-=() [2/2]

template<class T >
void cytnx::Scalar::operator-= ( const T &  rc)
inline

◆ operator/=() [1/2]

void cytnx::Scalar::operator/= ( const Scalar rhs)
inline

◆ operator/=() [2/2]

template<class T >
void cytnx::Scalar::operator/= ( const T &  rc)
inline

◆ operator=() [1/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_bool rhs)
inline

◆ operator=() [2/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_complex128 rhs)
inline

◆ operator=() [3/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_complex64 rhs)
inline

◆ operator=() [4/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_double rhs)
inline

◆ operator=() [5/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_float rhs)
inline

◆ operator=() [6/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_int16 rhs)
inline

◆ operator=() [7/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_int32 rhs)
inline

◆ operator=() [8/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_int64 rhs)
inline

◆ operator=() [9/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_uint16 rhs)
inline

◆ operator=() [10/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_uint32 rhs)
inline

◆ operator=() [11/12]

Scalar & cytnx::Scalar::operator= ( const cytnx_uint64 rhs)
inline

◆ operator=() [12/12]

Scalar & cytnx::Scalar::operator= ( const Scalar rhs)
inline

◆ print()

void cytnx::Scalar::print ( ) const
inline

◆ radd() [1/2]

Scalar cytnx::Scalar::radd ( const Scalar rhs) const
inline

◆ radd() [2/2]

template<class T >
Scalar cytnx::Scalar::radd ( const T &  rc) const
inline

◆ rdiv() [1/2]

Scalar cytnx::Scalar::rdiv ( const Scalar rhs) const
inline

◆ rdiv() [2/2]

template<class T >
Scalar cytnx::Scalar::rdiv ( const T &  rc) const
inline

◆ real()

Scalar cytnx::Scalar::real ( ) const
inline

◆ rmul() [1/2]

Scalar cytnx::Scalar::rmul ( const Scalar rhs) const
inline

◆ rmul() [2/2]

template<class T >
Scalar cytnx::Scalar::rmul ( const T &  rc) const
inline

◆ rsub() [1/2]

Scalar cytnx::Scalar::rsub ( const Scalar rhs) const
inline

◆ rsub() [2/2]

template<class T >
Scalar cytnx::Scalar::rsub ( const T &  rc) const
inline

◆ sqrt()

Scalar cytnx::Scalar::sqrt ( ) const
inline

Member Data Documentation

◆ _impl

Scalar_base* cytnx::Scalar::_impl

The documentation for this class was generated from the following files: