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

#include <aurostd_xtensor.h>

Public Member Functions

 _subtensor (const int &, utype *, const xtensor< utype > &)
 
 _subtensor (const std::vector< int > &, utype *, const xtensor< utype > &)
 
 _subtensor (const aurostd::xvector< int > &, utype *, const xtensor< utype > &)
 
 ~_subtensor ()
 
_subtensor< utype > & operator[] (const int &)
 
_subtensor< utype > & operator() (const std::vector< int > &)
 
_subtensor< utype > & operator() (const aurostd::xvector< int > &)
 
_subtensor< utype > & operator+= (utype scalar)
 
_subtensor< utype > & operator-= (utype scalar)
 
_subtensor< utype > & operator*= (utype scalar)
 
_subtensor< utype > & operator/= (utype scalar)
 
_subtensor< utype > & operator+= (const _subtensor< utype > &)
 
_subtensor< utype > & operator-= (const _subtensor< utype > &)
 
_subtensor< utype > & operator+= (const xtensor< utype > &)
 
_subtensor< utype > & operator-= (const xtensor< utype > &)
 
_subtensor< utype > & operator= (const utype &)
 
_subtensor< utype > & operator= (const _subtensor< utype > &)
 
_subtensor< utype > & operator= (const xtensor< utype > &)
 
_subtensor< utype > & operator= (const std::vector< utype > &)
 
_subtensor< utype > & operator= (const aurostd::xvector< utype > &)
 
_subtensor< utype > & operator= (const aurostd::xmatrix< utype > &)
 
 operator utype () const
 
int getNumElements () const
 
utype get (const int &) const
 
void set (const utype &)
 
void set (const utype &, const int &)
 

Public Attributes

const xtensor< utype > & _tensor
 
uint indexed_dim
 
int shift
 

Private Member Functions

bool sameShape (const _subtensor< utype > &)
 
bool sameShape (const xtensor< utype > &)
 

Private Attributes

utype * corpus
 

Detailed Description

template<class utype>
class aurostd::_subtensor< utype >

Definition at line 21 of file aurostd_xtensor.h.

Constructor & Destructor Documentation

◆ _subtensor() [1/3]

template<class utype>
aurostd::_subtensor< utype >::_subtensor ( const int & i,
utype * crp,
const xtensor< utype > & tnsr )

Definition at line 55 of file aurostd_xtensor.cpp.

◆ _subtensor() [2/3]

template<class utype>
aurostd::_subtensor< utype >::_subtensor ( const std::vector< int > & ind,
utype * crp,
const xtensor< utype > & tnsr )

Definition at line 64 of file aurostd_xtensor.cpp.

◆ _subtensor() [3/3]

template<class utype>
aurostd::_subtensor< utype >::_subtensor ( const aurostd::xvector< int > & ind,
utype * crp,
const xtensor< utype > & tnsr )

Definition at line 77 of file aurostd_xtensor.cpp.

◆ ~_subtensor()

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

Definition at line 90 of file aurostd_xtensor.cpp.

Member Function Documentation

◆ operator[]()

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

Definition at line 96 of file aurostd_xtensor.cpp.

◆ operator()() [1/2]

template<class utype>
_subtensor< utype > & aurostd::_subtensor< utype >::operator() ( const std::vector< int > & ind)

Definition at line 117 of file aurostd_xtensor.cpp.

◆ operator()() [2/2]

template<class utype>
_subtensor< utype > & aurostd::_subtensor< utype >::operator() ( const aurostd::xvector< int > & ind)

Definition at line 145 of file aurostd_xtensor.cpp.

◆ operator+=() [1/3]

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

Definition at line 199 of file aurostd_xtensor.cpp.

◆ operator-=() [1/3]

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

Definition at line 214 of file aurostd_xtensor.cpp.

◆ operator*=()

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

Definition at line 229 of file aurostd_xtensor.cpp.

◆ operator/=()

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

Definition at line 244 of file aurostd_xtensor.cpp.

◆ operator+=() [2/3]

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

Definition at line 263 of file aurostd_xtensor.cpp.

◆ operator-=() [2/3]

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

Definition at line 283 of file aurostd_xtensor.cpp.

◆ operator+=() [3/3]

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

Definition at line 303 of file aurostd_xtensor.cpp.

◆ operator-=() [3/3]

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

Definition at line 322 of file aurostd_xtensor.cpp.

◆ operator=() [1/6]

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

Definition at line 374 of file aurostd_xtensor.cpp.

◆ operator=() [2/6]

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

Definition at line 390 of file aurostd_xtensor.cpp.

◆ operator=() [3/6]

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

Definition at line 407 of file aurostd_xtensor.cpp.

◆ operator=() [4/6]

template<class utype>
_subtensor< utype > & aurostd::_subtensor< utype >::operator= ( const std::vector< utype > & vec)

Definition at line 423 of file aurostd_xtensor.cpp.

◆ operator=() [5/6]

template<class utype>
_subtensor< utype > & aurostd::_subtensor< utype >::operator= ( const aurostd::xvector< utype > & xvec)

Definition at line 455 of file aurostd_xtensor.cpp.

◆ operator=() [6/6]

template<class utype>
_subtensor< utype > & aurostd::_subtensor< utype >::operator= ( const aurostd::xmatrix< utype > & xmat)

Definition at line 486 of file aurostd_xtensor.cpp.

◆ operator utype()

template<class utype>
aurostd::_subtensor< utype >::operator utype ( ) const

Definition at line 366 of file aurostd_xtensor.cpp.

◆ getNumElements()

template<class utype>
int aurostd::_subtensor< utype >::getNumElements ( ) const
nodiscard

Definition at line 521 of file aurostd_xtensor.cpp.

◆ get()

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

Definition at line 189 of file aurostd_xtensor.cpp.

◆ set() [1/2]

template<class utype>
void aurostd::_subtensor< utype >::set ( const utype & val)

Definition at line 172 of file aurostd_xtensor.cpp.

◆ set() [2/2]

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

Definition at line 182 of file aurostd_xtensor.cpp.

◆ sameShape() [1/2]

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

Definition at line 533 of file aurostd_xtensor.cpp.

◆ sameShape() [2/2]

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

Definition at line 552 of file aurostd_xtensor.cpp.

Member Data Documentation

◆ _tensor

template<class utype>
const xtensor<utype>& aurostd::_subtensor< utype >::_tensor

Definition at line 28 of file aurostd_xtensor.h.

◆ indexed_dim

template<class utype>
uint aurostd::_subtensor< utype >::indexed_dim

Definition at line 29 of file aurostd_xtensor.h.

◆ shift

template<class utype>
int aurostd::_subtensor< utype >::shift

Definition at line 30 of file aurostd_xtensor.h.

◆ corpus

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

Definition at line 60 of file aurostd_xtensor.h.


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