|
Cytnx v0.9.1
|
#include "Type.hpp"#include "cytnx_error.hpp"#include "intrusive_ptr_base.hpp"#include <vector>#include <initializer_list>#include <string>#include <iostream>#include <cmath>#include <type_traits>#include <limits>

Go to the source code of this file.
Classes | |
| class | cytnx::Scalar |
| A class to represent a scalar. More... | |
Namespaces | |
| namespace | cytnx |
Functions | |
| Scalar | cytnx::operator+ (const Scalar &lc, const Scalar &rs) |
| The addition operator between two Scalar objects. | |
| Scalar | cytnx::operator* (const Scalar &lc, const Scalar &rs) |
| The multiplication operator between two Scalar objects. | |
| Scalar | cytnx::operator- (const Scalar &lc, const Scalar &rs) |
| The subtraction operator between two Scalar objects. | |
| Scalar | cytnx::operator/ (const Scalar &lc, const Scalar &rs) |
| The division operator between two Scalar objects. | |
| bool | cytnx::operator< (const Scalar &lc, const Scalar &rs) |
| The less-than operator between two Scalar objects. | |
| bool | cytnx::operator> (const Scalar &lc, const Scalar &rs) |
| The greater-than operator between two Scalar objects. | |
| bool | cytnx::operator<= (const Scalar &lc, const Scalar &rs) |
| The less-than-or-equal operator between two Scalar objects. | |
| bool | cytnx::operator>= (const Scalar &lc, const Scalar &rs) |
| The greater-than-or-equal operator between two Scalar objects. | |
| bool | cytnx::operator== (const Scalar &lc, const Scalar &rs) |
| The equal operator between two Scalar objects. | |
| Scalar | cytnx::abs (const Scalar &c) |
| Return the absolute value of a Scalar object. | |
| Scalar | cytnx::sqrt (const Scalar &c) |
| Return the square root of a Scalar object. | |
| cytnx_complex128 | cytnx::complex128 (const Scalar &in) |
| Convert a Scalar object to a cytnx::complex128. | |
| cytnx_complex64 | cytnx::complex64 (const Scalar &in) |
| Convert a Scalar object to a cytnx::complex64. | |