#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 |
Definition at line 21 of file aurostd_xtensor.h.
aurostd::_subtensor< utype >::_subtensor | ( | const int & | i, |
utype * | crp, | ||
const xtensor< utype > & | tnsr ) |
Definition at line 55 of file aurostd_xtensor.cpp.
aurostd::_subtensor< utype >::_subtensor | ( | const std::vector< int > & | ind, |
utype * | crp, | ||
const xtensor< utype > & | tnsr ) |
Definition at line 64 of file aurostd_xtensor.cpp.
aurostd::_subtensor< utype >::_subtensor | ( | const aurostd::xvector< int > & | ind, |
utype * | crp, | ||
const xtensor< utype > & | tnsr ) |
Definition at line 77 of file aurostd_xtensor.cpp.
aurostd::_subtensor< utype >::~_subtensor | ( | ) |
Definition at line 90 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator[] | ( | const int & | i | ) |
Definition at line 96 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator() | ( | const std::vector< int > & | ind | ) |
Definition at line 117 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator() | ( | const aurostd::xvector< int > & | ind | ) |
Definition at line 145 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator+= | ( | utype | scalar | ) |
Definition at line 199 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator-= | ( | utype | scalar | ) |
Definition at line 214 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator*= | ( | utype | scalar | ) |
Definition at line 229 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator/= | ( | utype | scalar | ) |
Definition at line 244 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator+= | ( | const _subtensor< utype > & | st | ) |
Definition at line 263 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator-= | ( | const _subtensor< utype > & | st | ) |
Definition at line 283 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator+= | ( | const xtensor< utype > & | tensor | ) |
Definition at line 303 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator-= | ( | const xtensor< utype > & | tensor | ) |
Definition at line 322 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator= | ( | const utype & | val | ) |
Definition at line 374 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator= | ( | const _subtensor< utype > & | st | ) |
Definition at line 390 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator= | ( | const xtensor< utype > & | tensor | ) |
Definition at line 407 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator= | ( | const std::vector< utype > & | vec | ) |
Definition at line 423 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator= | ( | const aurostd::xvector< utype > & | xvec | ) |
Definition at line 455 of file aurostd_xtensor.cpp.
_subtensor< utype > & aurostd::_subtensor< utype >::operator= | ( | const aurostd::xmatrix< utype > & | xmat | ) |
Definition at line 486 of file aurostd_xtensor.cpp.
aurostd::_subtensor< utype >::operator utype | ( | ) | const |
Definition at line 366 of file aurostd_xtensor.cpp.
|
nodiscard |
Definition at line 521 of file aurostd_xtensor.cpp.
|
nodiscard |
Definition at line 189 of file aurostd_xtensor.cpp.
void aurostd::_subtensor< utype >::set | ( | const utype & | val | ) |
Definition at line 172 of file aurostd_xtensor.cpp.
void aurostd::_subtensor< utype >::set | ( | const utype & | val, |
const int & | i ) |
Definition at line 182 of file aurostd_xtensor.cpp.
|
private |
Definition at line 533 of file aurostd_xtensor.cpp.
|
private |
Definition at line 552 of file aurostd_xtensor.cpp.
const xtensor<utype>& aurostd::_subtensor< utype >::_tensor |
Definition at line 28 of file aurostd_xtensor.h.
uint aurostd::_subtensor< utype >::indexed_dim |
Definition at line 29 of file aurostd_xtensor.h.
int aurostd::_subtensor< utype >::shift |
Definition at line 30 of file aurostd_xtensor.h.
|
private |
Definition at line 60 of file aurostd_xtensor.h.