AFLOW
 
Loading...
Searching...
No Matches
aurostd::xtensor< utype > Class Template Reference

#include <aurostd_xtensor.h>

Public Member Functions

 xtensor ()
 
 xtensor (const std::vector< int > &)
 
 xtensor (const std::vector< int > &, const std::vector< int > &)
 
 xtensor (const aurostd::xvector< int > &)
 
 xtensor (const aurostd::xvector< int > &, const aurostd::xvector< int > &)
 
 xtensor (const int &, const int &li=1)
 
 xtensor (const _subtensor< utype > &)
 
 xtensor (const xtensor< utype > &)
 
xtensor< utype > operator= (const xtensor< utype > &)
 
xtensor< utype > operator= (const _subtensor< utype > &)
 
 ~xtensor ()
 
void buildTensor (const std::vector< int > &, const std::vector< int > &)
 
_subtensor< utype > operator() (std::vector< int >) const
 
_subtensor< utype > operator() (aurostd::xvector< int >) const
 
_subtensor< utype > operator[] (int) const
 
xtensor< utype > & operator+= (utype)
 
xtensor< utype > & operator-= (utype)
 
xtensor< utype > & operator*= (utype)
 
xtensor< utype > & operator/= (utype)
 
xtensor< utype > & operator+= (const xtensor< utype > &)
 
xtensor< utype > & operator-= (const xtensor< utype > &)
 
xtensor< utype > & operator+= (const _subtensor< utype > &)
 
xtensor< utype > & operator-= (const _subtensor< utype > &)
 
void set (const utype &)
 
void set (const utype &, const int &)
 
void reset ()
 
void clear ()
 
bool sameShape (const xtensor< utype > &) const
 
bool sameShape (const _subtensor< utype > &) const
 
utype get (const int &) const
 
void abs ()
 
void ceil ()
 
void floor ()
 
void nint ()
 
void round (const utype &)
 
void sign ()
 
utype max ()
 
utype min ()
 
utype sum ()
 

Public Attributes

int * shape
 
bool is_cubic
 
int nelements
 
uint ndim
 
int * uindex
 
int * lindex
 
int * shifts
 

Private Member Functions

bool checkInit (const std::vector< int > &, const std::vector< int > &)
 

Private Attributes

utype * corpus
 
char size
 
long int tsize
 

Detailed Description

template<class utype>
class aurostd::xtensor< utype >

Definition at line 65 of file aurostd_xtensor.h.

Constructor & Destructor Documentation

◆ xtensor() [1/8]

template<class utype>
aurostd::xtensor< utype >::xtensor ( )

Definition at line 584 of file aurostd_xtensor.cpp.

◆ xtensor() [2/8]

template<class utype>
aurostd::xtensor< utype >::xtensor ( const std::vector< int > & uind)

Definition at line 593 of file aurostd_xtensor.cpp.

◆ xtensor() [3/8]

template<class utype>
aurostd::xtensor< utype >::xtensor ( const std::vector< int > & uind,
const std::vector< int > & lind )

Definition at line 601 of file aurostd_xtensor.cpp.

◆ xtensor() [4/8]

template<class utype>
aurostd::xtensor< utype >::xtensor ( const aurostd::xvector< int > & xuind)

Definition at line 608 of file aurostd_xtensor.cpp.

◆ xtensor() [5/8]

template<class utype>
aurostd::xtensor< utype >::xtensor ( const aurostd::xvector< int > & xuind,
const aurostd::xvector< int > & xlind )

Definition at line 617 of file aurostd_xtensor.cpp.

◆ xtensor() [6/8]

template<class utype>
aurostd::xtensor< utype >::xtensor ( const int & ui,
const int & li = 1 )

Definition at line 626 of file aurostd_xtensor.cpp.

◆ xtensor() [7/8]

template<class utype>
aurostd::xtensor< utype >::xtensor ( const _subtensor< utype > & st)

Definition at line 638 of file aurostd_xtensor.cpp.

◆ xtensor() [8/8]

template<class utype>
aurostd::xtensor< utype >::xtensor ( const xtensor< utype > & that)

Definition at line 756 of file aurostd_xtensor.cpp.

◆ ~xtensor()

template<class utype>
aurostd::xtensor< utype >::~xtensor ( )

Definition at line 827 of file aurostd_xtensor.cpp.

Member Function Documentation

◆ operator=() [1/2]

template<class utype>
xtensor< utype > aurostd::xtensor< utype >::operator= ( const xtensor< utype > & that)

Definition at line 782 of file aurostd_xtensor.cpp.

◆ operator=() [2/2]

template<class utype>
xtensor< utype > aurostd::xtensor< utype >::operator= ( const _subtensor< utype > & st)

Definition at line 817 of file aurostd_xtensor.cpp.

◆ buildTensor()

template<class utype>
void aurostd::xtensor< utype >::buildTensor ( const std::vector< int > & uind,
const std::vector< int > & lind )

Definition at line 664 of file aurostd_xtensor.cpp.

◆ operator()() [1/2]

template<class utype>
_subtensor< utype > aurostd::xtensor< utype >::operator() ( std::vector< int > indices) const

Definition at line 897 of file aurostd_xtensor.cpp.

◆ operator()() [2/2]

template<class utype>
_subtensor< utype > aurostd::xtensor< utype >::operator() ( aurostd::xvector< int > indices) const

Definition at line 920 of file aurostd_xtensor.cpp.

◆ operator[]()

template<class utype>
_subtensor< utype > aurostd::xtensor< utype >::operator[] ( int i) const

Definition at line 942 of file aurostd_xtensor.cpp.

◆ operator+=() [1/3]

template<class utype>
xtensor< utype > & aurostd::xtensor< utype >::operator+= ( utype scalar)

Definition at line 960 of file aurostd_xtensor.cpp.

◆ operator-=() [1/3]

template<class utype>
xtensor< utype > & aurostd::xtensor< utype >::operator-= ( utype scalar)

Definition at line 970 of file aurostd_xtensor.cpp.

◆ operator*=()

template<class utype>
xtensor< utype > & aurostd::xtensor< utype >::operator*= ( utype scalar)

Definition at line 980 of file aurostd_xtensor.cpp.

◆ operator/=()

template<class utype>
xtensor< utype > & aurostd::xtensor< utype >::operator/= ( utype scalar)

Definition at line 990 of file aurostd_xtensor.cpp.

◆ operator+=() [2/3]

template<class utype>
xtensor< utype > & aurostd::xtensor< utype >::operator+= ( const xtensor< utype > & tensor)

Definition at line 1002 of file aurostd_xtensor.cpp.

◆ operator-=() [2/3]

template<class utype>
xtensor< utype > & aurostd::xtensor< utype >::operator-= ( const xtensor< utype > & tensor)

Definition at line 1030 of file aurostd_xtensor.cpp.

◆ operator+=() [3/3]

template<class utype>
xtensor< utype > & aurostd::xtensor< utype >::operator+= ( const _subtensor< utype > & st)

Definition at line 1075 of file aurostd_xtensor.cpp.

◆ operator-=() [3/3]

template<class utype>
xtensor< utype > & aurostd::xtensor< utype >::operator-= ( const _subtensor< utype > & st)

Definition at line 1111 of file aurostd_xtensor.cpp.

◆ set() [1/2]

template<class utype>
void aurostd::xtensor< utype >::set ( const utype & value)

Definition at line 1284 of file aurostd_xtensor.cpp.

◆ set() [2/2]

template<class utype>
void aurostd::xtensor< utype >::set ( const utype & value,
const int & i )

Definition at line 1293 of file aurostd_xtensor.cpp.

◆ reset()

template<class utype>
void aurostd::xtensor< utype >::reset ( )

Definition at line 1300 of file aurostd_xtensor.cpp.

◆ clear()

template<class utype>
void aurostd::xtensor< utype >::clear ( )

Definition at line 1309 of file aurostd_xtensor.cpp.

◆ sameShape() [1/2]

template<class utype>
bool aurostd::xtensor< utype >::sameShape ( const xtensor< utype > & tensor) const
nodiscard

Definition at line 865 of file aurostd_xtensor.cpp.

◆ sameShape() [2/2]

template<class utype>
bool aurostd::xtensor< utype >::sameShape ( const _subtensor< utype > & st) const
nodiscard

Definition at line 877 of file aurostd_xtensor.cpp.

◆ get()

template<class utype>
utype aurostd::xtensor< utype >::get ( const int & i) const
nodiscard

Definition at line 1316 of file aurostd_xtensor.cpp.

◆ abs()

template<class utype>
void aurostd::xtensor< utype >::abs ( )

Definition at line 1486 of file aurostd_xtensor.cpp.

◆ ceil()

template<class utype>
void aurostd::xtensor< utype >::ceil ( )

Definition at line 1511 of file aurostd_xtensor.cpp.

◆ floor()

template<class utype>
void aurostd::xtensor< utype >::floor ( )

Definition at line 1536 of file aurostd_xtensor.cpp.

◆ nint()

template<class utype>
void aurostd::xtensor< utype >::nint ( )

Definition at line 1561 of file aurostd_xtensor.cpp.

◆ round()

template<class utype>
void aurostd::xtensor< utype >::round ( const utype & tol)

Definition at line 1586 of file aurostd_xtensor.cpp.

◆ sign()

template<class utype>
void aurostd::xtensor< utype >::sign ( )

Definition at line 1611 of file aurostd_xtensor.cpp.

◆ max()

template<class utype>
utype aurostd::xtensor< utype >::max ( )

Definition at line 1658 of file aurostd_xtensor.cpp.

◆ min()

template<class utype>
utype aurostd::xtensor< utype >::min ( )

Definition at line 1686 of file aurostd_xtensor.cpp.

◆ sum()

template<class utype>
utype aurostd::xtensor< utype >::sum ( )

Definition at line 1714 of file aurostd_xtensor.cpp.

◆ checkInit()

template<class utype>
bool aurostd::xtensor< utype >::checkInit ( const std::vector< int > & uind,
const std::vector< int > & lind )
private

Definition at line 844 of file aurostd_xtensor.cpp.

Member Data Documentation

◆ shape

template<class utype>
int* aurostd::xtensor< utype >::shape

Definition at line 80 of file aurostd_xtensor.h.

◆ is_cubic

template<class utype>
bool aurostd::xtensor< utype >::is_cubic

Definition at line 81 of file aurostd_xtensor.h.

◆ nelements

template<class utype>
int aurostd::xtensor< utype >::nelements

Definition at line 82 of file aurostd_xtensor.h.

◆ ndim

template<class utype>
uint aurostd::xtensor< utype >::ndim

Definition at line 83 of file aurostd_xtensor.h.

◆ uindex

template<class utype>
int* aurostd::xtensor< utype >::uindex

Definition at line 84 of file aurostd_xtensor.h.

◆ lindex

template<class utype>
int* aurostd::xtensor< utype >::lindex

Definition at line 85 of file aurostd_xtensor.h.

◆ shifts

template<class utype>
int* aurostd::xtensor< utype >::shifts

Definition at line 86 of file aurostd_xtensor.h.

◆ corpus

template<class utype>
utype* aurostd::xtensor< utype >::corpus
private

Definition at line 126 of file aurostd_xtensor.h.

◆ size

template<class utype>
char aurostd::xtensor< utype >::size
private

Definition at line 128 of file aurostd_xtensor.h.

◆ tsize

template<class utype>
long int aurostd::xtensor< utype >::tsize
private

Definition at line 129 of file aurostd_xtensor.h.


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