|
Cytnx v0.7.4
|
Namespaces | |
| namespace | algo |
| namespace | linalg |
| linear algebra related functions. | |
| namespace | physics |
| namespace | qgates |
| namespace | random |
| namespace | stat |
Classes | |
| class | Accessor |
| object that mimic the python slice to access elements in C++ [this is for c++ API only]. More... | |
| class | Bond |
| the object contains auxiliary properties for each Tensor rank (bond) More... | |
| class | LinOp |
| class | Network |
| class | Scalar |
| class | Storage |
| an memeory storage with multi-type/multi-device support More... | |
| class | Symmetry |
| the symmetry object More... | |
| class | Tensor |
| an tensor (multi-dimensional array) More... | |
| class | UniTensor |
| An Enhanced tensor specifically designed for physical Tensor network simulation. More... | |
Typedefs | |
| typedef double | cytnx_double |
| typedef float | cytnx_float |
| typedef uint64_t | cytnx_uint64 |
| typedef uint32_t | cytnx_uint32 |
| typedef uint16_t | cytnx_uint16 |
| typedef int64_t | cytnx_int64 |
| typedef int32_t | cytnx_int32 |
| typedef int16_t | cytnx_int16 |
| typedef size_t | cytnx_size_t |
| typedef std::complex< float > | cytnx_complex64 |
| typedef std::complex< double > | cytnx_complex128 |
| typedef bool | cytnx_bool |
| typedef Accessor | ac |
Enumerations | |
| enum | bondType : int { BD_KET = -1 , BD_BRA = 1 , BD_REG =0 } |
Functions | |
| Tensor | zeros (const cytnx_uint64 &Nelem, const unsigned int &dtype=Type.Double, const int &device=Device.cpu) |
| create an rank-1 Tensor with all the elements are initialized with zero. | |
| Tensor | zeros (const std::vector< cytnx_uint64 > &Nelem, const unsigned int &dtype=Type.Double, const int &device=Device.cpu) |
| create an Tensor with all the elements are initialized with zero. | |
| Tensor | identity (const cytnx_uint64 &Dim, const unsigned int &dtype=Type.Double, const int &device=Device.cpu) |
| create an square rank-2 Tensor with all diagonal to be one. | |
| Tensor | eye (const cytnx_uint64 &Dim, const unsigned int &dtype=Type.Double, const int &device=Device.cpu) |
| create an square rank-2 Tensor with all diagonal to be one. | |
| Tensor | ones (const cytnx_uint64 &Nelem, const unsigned int &dtype=Type.Double, const int &device=Device.cpu) |
| create an rank-1 Tensor with all the elements are initialized with one. | |
| Tensor | ones (const std::vector< cytnx_uint64 > &Nelem, const unsigned int &dtype=Type.Double, const int &device=Device.cpu) |
| create an Tensor with all the elements are initialized with one. | |
| Tensor | arange (const cytnx_int64 &Nelem) |
| create an rank-1 Tensor with incremental unsigned integer elements start with [0,Nelem) | |
| Tensor | arange (const cytnx_double &start, const cytnx_double &end, const cytnx_double &step=1, const unsigned int &dtype=Type.Double, const int &device=Device.cpu) |
| create an rank-1 Tensor with elements defined in range [start,end) with assigned step-size | |
| Tensor | linspace (const cytnx_double &start, const cytnx_double &end, const cytnx_uint64 &Nelem, const bool &endpoint=true, const unsigned int &dtype=Type.Double, const int &device=Device.cpu) |
| cytnx::UniTensor | operator+ (const cytnx::UniTensor &Lt, const cytnx::UniTensor &Rt) |
| template<class T > | |
| cytnx::UniTensor | operator+ (const T &lc, const cytnx::UniTensor &Rt) |
| template<class T > | |
| cytnx::UniTensor | operator+ (const cytnx::UniTensor &Lt, const T &rc) |
| cytnx::UniTensor | operator- (const cytnx::UniTensor &Lt, const cytnx::UniTensor &Rt) |
| template<class T > | |
| cytnx::UniTensor | operator- (const T &lc, const cytnx::UniTensor &Rt) |
| template<class T > | |
| cytnx::UniTensor | operator- (const cytnx::UniTensor &Lt, const T &rc) |
| cytnx::UniTensor | operator* (const cytnx::UniTensor &Lt, const cytnx::UniTensor &Rt) |
| template<class T > | |
| cytnx::UniTensor | operator* (const T &lc, const cytnx::UniTensor &Rt) |
| template<class T > | |
| cytnx::UniTensor | operator* (const cytnx::UniTensor &Lt, const T &rc) |
| cytnx::UniTensor | operator/ (const cytnx::UniTensor &Lt, const cytnx::UniTensor &Rt) |
| template<class T > | |
| cytnx::UniTensor | operator/ (const T &lc, const cytnx::UniTensor &Rt) |
| template<class T > | |
| cytnx::UniTensor | operator/ (const cytnx::UniTensor &Lt, const T &rc) |
| cytnx::UniTensor | operator% (const cytnx::UniTensor &Lt, const cytnx::UniTensor &Rt) |
| template<class T > | |
| cytnx::UniTensor | operator% (const T &lc, const cytnx::UniTensor &Rt) |
| template<class T > | |
| cytnx::UniTensor | operator% (const cytnx::UniTensor &Lt, const T &rc) |
| Tensor | operator+ (const Tensor &Lt, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator+ (const T &lc, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator+ (const Tensor &Lt, const T &rc) |
| Tensor | operator- (const Tensor &Lt, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator- (const T &lc, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator- (const Tensor &Lt, const T &rc) |
| Tensor | operator* (const Tensor &Lt, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator* (const T &lc, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator* (const Tensor &Lt, const T &rc) |
| Tensor | operator/ (const Tensor &Lt, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator/ (const T &lc, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator/ (const Tensor &Lt, const T &rc) |
| Tensor | operator% (const Tensor &Lt, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator% (const T &lc, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator% (const Tensor &Lt, const T &rc) |
| Tensor | operator== (const Tensor &Lt, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator== (const T &lc, const Tensor &Rt) |
| template<class T > | |
| Tensor | operator== (const Tensor &Lt, const T &rc) |
| Scalar | operator+ (const Scalar &lc, const Scalar &rs) |
| Scalar | operator* (const Scalar &lc, const Scalar &rs) |
| Scalar | operator- (const Scalar &lc, const Scalar &rs) |
| Scalar | operator/ (const Scalar &lc, const Scalar &rs) |
| bool | operator< (const Scalar &lc, const Scalar &rs) |
| bool | operator> (const Scalar &lc, const Scalar &rs) |
| bool | operator<= (const Scalar &lc, const Scalar &rs) |
| bool | operator>= (const Scalar &lc, const Scalar &rs) |
| bool | operator== (const Scalar &lc, const Scalar &rs) |
| Scalar | abs (const Scalar &c) |
| Scalar | sqrt (const Scalar &c) |
| cytnx_complex128 | complex128 (const Scalar &in) |
| cytnx_complex64 | complex64 (const Scalar &in) |
| std::ostream & | operator<< (std::ostream &os, const Scalar &in) |
| std::ostream & | operator<< (std::ostream &os, const Symmetry &in) |
| Tensor | operator+ (const Tensor &lhs, const Tensor::Tproxy &rhs) |
| Tensor | operator- (const Tensor &lhs, const Tensor::Tproxy &rhs) |
| Tensor | operator* (const Tensor &lhs, const Tensor::Tproxy &rhs) |
| Tensor | operator/ (const Tensor &lhs, const Tensor::Tproxy &rhs) |
| Tensor | operator+ (const Tensor &lhs, const Scalar::Sproxy &rhs) |
| Tensor | operator- (const Tensor &lhs, const Scalar::Sproxy &rhs) |
| Tensor | operator* (const Tensor &lhs, const Scalar::Sproxy &rhs) |
| Tensor | operator/ (const Tensor &lhs, const Scalar::Sproxy &rhs) |
| std::ostream & | operator<< (std::ostream &os, const Tensor &in) |
| std::ostream & | operator<< (std::ostream &os, const Tensor::Tproxy &in) |
| UniTensor | Contract (const UniTensor &inL, const UniTensor &inR, const bool &cacheL=false, const bool &cacheR=false) |
| Contract two UniTensor by tracing the ranks with common labels. | |
| std::ostream & | operator<< (std::ostream &os, const Accessor &in) |
| std::ostream & | operator<< (std::ostream &os, const Bond &bin) |
| std::ostream & | operator<< (std::ostream &os, const Network &in) |
| void | _parse_ORDER_line_ (vector< string > &tokens, const string &line, const cytnx_uint64 &line_num) |
| void | _parse_TOUT_line_ (vector< cytnx_int64 > &lbls, cytnx_uint64 &TOUT_iBondNum, const string &line, const cytnx_uint64 &line_num) |
| void | tri (const char *text) |
| This is debug function for printing special characters. | |
| void | _parse_TN_line_ (vector< cytnx_int64 > &lbls, cytnx_uint64 &TN_iBondNum, const string &line, const cytnx_uint64 &line_num) |
| void | _extract_TNs_from_ORDER_ (vector< string > &TN_names, const vector< string > &tokens) |
| Scalar_base * | ScIInit_cd () |
| Scalar_base * | ScIInit_cf () |
| Scalar_base * | ScIInit_d () |
| Scalar_base * | ScIInit_f () |
| Scalar_base * | ScIInit_u64 () |
| Scalar_base * | ScIInit_i64 () |
| Scalar_base * | ScIInit_u32 () |
| Scalar_base * | ScIInit_i32 () |
| Scalar_base * | ScIInit_u16 () |
| Scalar_base * | ScIInit_i16 () |
| Scalar_base * | ScIInit_b () |
| cytnx_float | get_cost (const PsudoUniTensor &t1, const PsudoUniTensor &t2) |
| PsudoUniTensor | pContract (PsudoUniTensor &t1, PsudoUniTensor &t2) |
| std::vector< cytnx_uint64 > | _locator_to_inner_ij (const std::vector< cytnx_uint64 > &locator, const std::vector< cytnx_uint64 > ¤t_shape, const cytnx_uint64 &inner_rowrank, const std::vector< cytnx_uint64 > &inv_mapper) |
| std::ostream & | operator<< (std::ostream &os, const Storage &in) |
| boost::intrusive_ptr< Storage_base > | SIInit_cd () |
| boost::intrusive_ptr< Storage_base > | SIInit_cf () |
| boost::intrusive_ptr< Storage_base > | SIInit_d () |
| boost::intrusive_ptr< Storage_base > | SIInit_f () |
| boost::intrusive_ptr< Storage_base > | SIInit_u64 () |
| boost::intrusive_ptr< Storage_base > | SIInit_i64 () |
| boost::intrusive_ptr< Storage_base > | SIInit_u32 () |
| boost::intrusive_ptr< Storage_base > | SIInit_i32 () |
| boost::intrusive_ptr< Storage_base > | SIInit_u16 () |
| boost::intrusive_ptr< Storage_base > | SIInit_i16 () |
| boost::intrusive_ptr< Storage_base > | SIInit_b () |
| template<> | |
| std::complex< double > * | Storage_base::data< std::complex< double > > () const |
| template<> | |
| std::complex< float > * | Storage_base::data< std::complex< float > > () const |
| template<> | |
| std::complex< float > & | Storage_base::at< std::complex< float > > (const cytnx_uint64 &idx) const |
| template<> | |
| std::complex< double > & | Storage_base::at< std::complex< double > > (const cytnx_uint64 &idx) const |
| template<> | |
| std::complex< float > & | Storage_base::back< std::complex< float > > () const |
| template<> | |
| std::complex< double > & | Storage_base::back< std::complex< double > > () const |
| ostream & | operator<< (ostream &os, const Symmetry &in) |
| template<> | |
| Tensor & | Tensor::operator+=<Tensor::Tproxy > (const Tensor::Tproxy &rc) |
| template<> | |
| Tensor & | Tensor::operator+=<Scalar::Sproxy > (const Scalar::Sproxy &rc) |
| template<> | |
| Tensor & | Tensor::operator-=<Tensor::Tproxy > (const Tensor::Tproxy &rc) |
| template<> | |
| Tensor & | Tensor::operator-=<Scalar::Sproxy > (const Scalar::Sproxy &rc) |
| template<> | |
| Tensor & | Tensor::operator*=<Tensor::Tproxy > (const Tensor::Tproxy &rc) |
| template<> | |
| Tensor & | Tensor::operator*=<Scalar::Sproxy > (const Scalar::Sproxy &rc) |
| template<> | |
| Tensor & | Tensor::operator/=<Tensor::Tproxy > (const Tensor::Tproxy &rc) |
| template<> | |
| Tensor & | Tensor::operator/=<Scalar::Sproxy > (const Scalar::Sproxy &rc) |
| std::ostream & | operator<< (std::ostream &os, const UniTensor &in) |
Variables | |
| Device_class | Device |
| Type_class | Type |
| int | __blasINTsize__ = sizeof(lapack_int) |
| NetworkType_class | NtType |
| Scalar_init_interface | __ScII |
| Storage_init_interface | __SII |
| SymmetryType_class | SymType |
| UniTensorType_class | UTenType |
| typedef bool cytnx::cytnx_bool |
| typedef std::complex<double> cytnx::cytnx_complex128 |
| typedef std::complex<float> cytnx::cytnx_complex64 |
| typedef double cytnx::cytnx_double |
| typedef float cytnx::cytnx_float |
| typedef int16_t cytnx::cytnx_int16 |
| typedef int32_t cytnx::cytnx_int32 |
| typedef int64_t cytnx::cytnx_int64 |
| typedef size_t cytnx::cytnx_size_t |
| typedef uint16_t cytnx::cytnx_uint16 |
| typedef uint32_t cytnx::cytnx_uint32 |
| typedef uint64_t cytnx::cytnx_uint64 |
| enum cytnx::bondType : int |
| void cytnx::_extract_TNs_from_ORDER_ | ( | vector< string > & | TN_names, |
| const vector< string > & | tokens | ||
| ) |
| std::vector< cytnx_uint64 > cytnx::_locator_to_inner_ij | ( | const std::vector< cytnx_uint64 > & | locator, |
| const std::vector< cytnx_uint64 > & | current_shape, | ||
| const cytnx_uint64 & | inner_rowrank, | ||
| const std::vector< cytnx_uint64 > & | inv_mapper | ||
| ) |
| void cytnx::_parse_ORDER_line_ | ( | vector< string > & | tokens, |
| const string & | line, | ||
| const cytnx_uint64 & | line_num | ||
| ) |
| void cytnx::_parse_TN_line_ | ( | vector< cytnx_int64 > & | lbls, |
| cytnx_uint64 & | TN_iBondNum, | ||
| const string & | line, | ||
| const cytnx_uint64 & | line_num | ||
| ) |
| void cytnx::_parse_TOUT_line_ | ( | vector< cytnx_int64 > & | lbls, |
| cytnx_uint64 & | TOUT_iBondNum, | ||
| const string & | line, | ||
| const cytnx_uint64 & | line_num | ||
| ) |
| Tensor cytnx::arange | ( | const cytnx_double & | start, |
| const cytnx_double & | end, | ||
| const cytnx_double & | step = 1, |
||
| const unsigned int & | dtype = Type.Double, |
||
| const int & | device = Device.cpu |
||
| ) |
create an rank-1 Tensor with elements defined in range [start,end) with assigned step-size
| start | the start value of the range |
| end | the end value of the range |
| step | the step-size of the range |
| dtype | the dtype of the Tensor. It can be any type defined in cytnx::Type |
| device | the device that the Tensor is put on. It can be any device defined in cytnx::Device |
| Tensor cytnx::arange | ( | const cytnx_int64 & | Nelem | ) |
| cytnx_complex128 cytnx::complex128 | ( | const Scalar & | in | ) |
| cytnx_complex64 cytnx::complex64 | ( | const Scalar & | in | ) |
| UniTensor cytnx::Contract | ( | const UniTensor & | inL, |
| const UniTensor & | inR, | ||
| const bool & | cacheL = false, |
||
| const bool & | cacheR = false |
||
| ) |
Contract two UniTensor by tracing the ranks with common labels.
See also UniTensor.contract
| Tensor cytnx::eye | ( | const cytnx_uint64 & | Dim, |
| const unsigned int & | dtype = Type.Double, |
||
| const int & | device = Device.cpu |
||
| ) |
create an square rank-2 Tensor with all diagonal to be one.
| Dim | the dimension of diagonal. |
| dtype | the dtype of the Tensor. It can be any type defined in cytnx::Type |
| device | the device that the Tensor is put on. It can be any device defined in cytnx::Device |
Note: This function is a alias of cytnx::identity().
| cytnx_float cytnx::get_cost | ( | const PsudoUniTensor & | t1, |
| const PsudoUniTensor & | t2 | ||
| ) |
| Tensor cytnx::identity | ( | const cytnx_uint64 & | Dim, |
| const unsigned int & | dtype = Type.Double, |
||
| const int & | device = Device.cpu |
||
| ) |
create an square rank-2 Tensor with all diagonal to be one.
| Dim | the dimension of diagonal. |
| dtype | the dtype of the Tensor. It can be any type defined in cytnx::Type |
| device | the device that the Tensor is put on. It can be any device defined in cytnx::Device |
| Tensor cytnx::linspace | ( | const cytnx_double & | start, |
| const cytnx_double & | end, | ||
| const cytnx_uint64 & | Nelem, | ||
| const bool & | endpoint = true, |
||
| const unsigned int & | dtype = Type.Double, |
||
| const int & | device = Device.cpu |
||
| ) |
| Tensor cytnx::ones | ( | const cytnx_uint64 & | Nelem, |
| const unsigned int & | dtype = Type.Double, |
||
| const int & | device = Device.cpu |
||
| ) |
create an rank-1 Tensor with all the elements are initialized with one.
| Nelem | the number of elements |
| dtype | the dtype of the Tensor. It can be any type defined in cytnx::Type |
| device | the device that the Tensor is put on. It can be any device defined in cytnx::Device |
| Tensor cytnx::ones | ( | const std::vector< cytnx_uint64 > & | Nelem, |
| const unsigned int & | dtype = Type.Double, |
||
| const int & | device = Device.cpu |
||
| ) |
create an Tensor with all the elements are initialized with one.
| Nelem | the shape of the Tensor |
| dtype | the dtype of the Tensor. It can be any type defined in cytnx::Type |
| device | the device that the Tensor is put on. It can be any device defined in cytnx::Device |
| cytnx::UniTensor cytnx::operator% | ( | const cytnx::UniTensor & | Lt, |
| const cytnx::UniTensor & | Rt | ||
| ) |
| cytnx::UniTensor cytnx::operator% | ( | const cytnx::UniTensor & | Lt, |
| const T & | rc | ||
| ) |
| cytnx::UniTensor cytnx::operator% | ( | const T & | lc, |
| const cytnx::UniTensor & | Rt | ||
| ) |
| cytnx::UniTensor cytnx::operator* | ( | const cytnx::UniTensor & | Lt, |
| const cytnx::UniTensor & | Rt | ||
| ) |
| cytnx::UniTensor cytnx::operator* | ( | const cytnx::UniTensor & | Lt, |
| const T & | rc | ||
| ) |
| cytnx::UniTensor cytnx::operator* | ( | const T & | lc, |
| const cytnx::UniTensor & | Rt | ||
| ) |
| Tensor cytnx::operator* | ( | const Tensor & | lhs, |
| const Tensor::Tproxy & | rhs | ||
| ) |
| cytnx::UniTensor cytnx::operator+ | ( | const cytnx::UniTensor & | Lt, |
| const cytnx::UniTensor & | Rt | ||
| ) |
| cytnx::UniTensor cytnx::operator+ | ( | const cytnx::UniTensor & | Lt, |
| const T & | rc | ||
| ) |
| cytnx::UniTensor cytnx::operator+ | ( | const T & | lc, |
| const cytnx::UniTensor & | Rt | ||
| ) |
| Tensor cytnx::operator+ | ( | const Tensor & | lhs, |
| const Tensor::Tproxy & | rhs | ||
| ) |
| cytnx::UniTensor cytnx::operator- | ( | const cytnx::UniTensor & | Lt, |
| const cytnx::UniTensor & | Rt | ||
| ) |
| cytnx::UniTensor cytnx::operator- | ( | const cytnx::UniTensor & | Lt, |
| const T & | rc | ||
| ) |
| cytnx::UniTensor cytnx::operator- | ( | const T & | lc, |
| const cytnx::UniTensor & | Rt | ||
| ) |
| Tensor cytnx::operator- | ( | const Tensor & | lhs, |
| const Tensor::Tproxy & | rhs | ||
| ) |
| cytnx::UniTensor cytnx::operator/ | ( | const cytnx::UniTensor & | Lt, |
| const cytnx::UniTensor & | Rt | ||
| ) |
| cytnx::UniTensor cytnx::operator/ | ( | const cytnx::UniTensor & | Lt, |
| const T & | rc | ||
| ) |
| cytnx::UniTensor cytnx::operator/ | ( | const T & | lc, |
| const cytnx::UniTensor & | Rt | ||
| ) |
| Tensor cytnx::operator/ | ( | const Tensor & | lhs, |
| const Tensor::Tproxy & | rhs | ||
| ) |
| ostream & cytnx::operator<< | ( | ostream & | os, |
| const Symmetry & | in | ||
| ) |
| std::ostream & cytnx::operator<< | ( | std::ostream & | os, |
| const Accessor & | in | ||
| ) |
| std::ostream & cytnx::operator<< | ( | std::ostream & | os, |
| const Bond & | bin | ||
| ) |
| std::ostream & cytnx::operator<< | ( | std::ostream & | os, |
| const Network & | in | ||
| ) |
| std::ostream & cytnx::operator<< | ( | std::ostream & | os, |
| const Scalar & | in | ||
| ) |
| std::ostream & cytnx::operator<< | ( | std::ostream & | os, |
| const Storage & | in | ||
| ) |
| std::ostream & cytnx::operator<< | ( | std::ostream & | os, |
| const Symmetry & | in | ||
| ) |
| std::ostream & cytnx::operator<< | ( | std::ostream & | os, |
| const Tensor & | in | ||
| ) |
| std::ostream & cytnx::operator<< | ( | std::ostream & | os, |
| const Tensor::Tproxy & | in | ||
| ) |
| std::ostream & cytnx::operator<< | ( | std::ostream & | os, |
| const UniTensor & | in | ||
| ) |
| PsudoUniTensor cytnx::pContract | ( | PsudoUniTensor & | t1, |
| PsudoUniTensor & | t2 | ||
| ) |
| Scalar_base * cytnx::ScIInit_b | ( | ) |
| Scalar_base * cytnx::ScIInit_cd | ( | ) |
| Scalar_base * cytnx::ScIInit_cf | ( | ) |
| Scalar_base * cytnx::ScIInit_d | ( | ) |
| Scalar_base * cytnx::ScIInit_f | ( | ) |
| Scalar_base * cytnx::ScIInit_i16 | ( | ) |
| Scalar_base * cytnx::ScIInit_i32 | ( | ) |
| Scalar_base * cytnx::ScIInit_i64 | ( | ) |
| Scalar_base * cytnx::ScIInit_u16 | ( | ) |
| Scalar_base * cytnx::ScIInit_u32 | ( | ) |
| Scalar_base * cytnx::ScIInit_u64 | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_b | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_cd | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_cf | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_d | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_f | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_i16 | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_i32 | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_i64 | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_u16 | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_u32 | ( | ) |
| boost::intrusive_ptr< Storage_base > cytnx::SIInit_u64 | ( | ) |
| std::complex< double > & cytnx::Storage_base::at< std::complex< double > > | ( | const cytnx_uint64 & | idx | ) | const |
| std::complex< float > & cytnx::Storage_base::at< std::complex< float > > | ( | const cytnx_uint64 & | idx | ) | const |
| std::complex< double > & cytnx::Storage_base::back< std::complex< double > > | ( | ) | const |
| std::complex< float > & cytnx::Storage_base::back< std::complex< float > > | ( | ) | const |
| std::complex< double > * cytnx::Storage_base::data< std::complex< double > > | ( | ) | const |
| std::complex< float > * cytnx::Storage_base::data< std::complex< float > > | ( | ) | const |
| Tensor & cytnx::Tensor::operator*=<Scalar::Sproxy > | ( | const Scalar::Sproxy & | rc | ) |
| Tensor & cytnx::Tensor::operator*=<Tensor::Tproxy > | ( | const Tensor::Tproxy & | rc | ) |
| Tensor & cytnx::Tensor::operator+=<Scalar::Sproxy > | ( | const Scalar::Sproxy & | rc | ) |
| Tensor & cytnx::Tensor::operator+=<Tensor::Tproxy > | ( | const Tensor::Tproxy & | rc | ) |
| Tensor & cytnx::Tensor::operator-=<Scalar::Sproxy > | ( | const Scalar::Sproxy & | rc | ) |
| Tensor & cytnx::Tensor::operator-=<Tensor::Tproxy > | ( | const Tensor::Tproxy & | rc | ) |
| Tensor & cytnx::Tensor::operator/=<Scalar::Sproxy > | ( | const Scalar::Sproxy & | rc | ) |
| Tensor & cytnx::Tensor::operator/=<Tensor::Tproxy > | ( | const Tensor::Tproxy & | rc | ) |
| void cytnx::tri | ( | const char * | text | ) |
This is debug function for printing special characters.
| Tensor cytnx::zeros | ( | const cytnx_uint64 & | Nelem, |
| const unsigned int & | dtype = Type.Double, |
||
| const int & | device = Device.cpu |
||
| ) |
create an rank-1 Tensor with all the elements are initialized with zero.
| Nelem | the number of elements |
| dtype | the dtype of the Tensor. It can be any type defined in cytnx::Type |
| device | the device that the Tensor is put on. It can be any device defined in cytnx::Device |
| Tensor cytnx::zeros | ( | const std::vector< cytnx_uint64 > & | Nelem, |
| const unsigned int & | dtype = Type.Double, |
||
| const int & | device = Device.cpu |
||
| ) |
create an Tensor with all the elements are initialized with zero.
| Nelem | the shape of the Tensor |
| dtype | the dtype of the Tensor. It can be any type defined in cytnx::Type |
| device | the device that the Tensor is put on. It can be any device defined in cytnx::Device |
| int cytnx::__blasINTsize__ = sizeof(lapack_int) |
| Scalar_init_interface cytnx::__ScII |
| Storage_init_interface cytnx::__SII |
| Device_class cytnx::Device |
| NetworkType_class cytnx::NtType |
| SymmetryType_class cytnx::SymType |
| Type_class cytnx::Type |
| UniTensorType_class cytnx::UTenType |