tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Vector< T, Size > Class Template Reference

#include <vector.h>

Inheritance diagram for Vector< T, Size >:
Inheritance graph
[legend]
Collaboration diagram for Vector< T, Size >:
Collaboration graph
[legend]

Public Member Functions

 Vector ()
 
 Vector (T initValue)
 
 Vector (const Vector &other)
 
 Vector (Vector &&other) noexcept
 
 Vector (const T(&array)[Size])
 
T & operator() (my_size_t index)
 
const T & operator() (my_size_t index) const
 
- Public Member Functions inherited from TensorND< T, Size, 1 >
 TensorND ()
 
 TensorND (T initValue)
 
 TensorND (const TensorND &other)
 
 TensorND (TensorND &&other) noexcept
 
T & operator() (Indices... indices)
 
const T & operator() (Indices... indices) const
 
T & operator() (my_size_t(&indices)[length])
 
const T & operator() (my_size_t(&indices)[length]) const
 
bool operator== (const TensorND< T, Dims1... > &other) const
 
bool operator!= (const TensorND< T, Dims1... > &other) const
 
TensorNDoperator= (const TensorND &other)
 
TensorND operator+ (const T scalar) const
 
TensorND operator+ (const TensorND< T, Dims1... > &other) const
 
TensorND operator- (const T scalar) const
 
TensorND operator- (void) const
 
TensorND operator- (const TensorND< T, Dims1... > &other) const
 
TensorND operator* (const T scalar) const
 
TensorND operator* (const TensorND< T, Dims1... > &other) const
 
TensorND operator/ (const T scalar) const
 
TensorND operator/ (const TensorND< T, Dims1... > &other) const
 
constexpr bool areDimsEqual () const
 
bool isIdentity () const
 
TensorND transposed (const my_size_t order[sizeof...(Dims)]) const
 
TensorND transposed (void) const
 
void inplace_transpose (const my_size_t order[sizeof...(Dims)])
 
void inplace_transpose (void)
 
constexpr my_size_t getTotalSize () const
 
constexpr my_size_t getNumDims () const
 
std::string getShape () const
 
TensorNDsetToZero (void)
 
TensorNDsetHomogen (T _val)
 
TensorNDsetRandom (my_size_t _maxRand, my_size_t _minRand)
 
TensorNDsetDiagonal (T _val)
 
TensorNDsetIdentity (void)
 
TensorNDsetSequencial (void)
 
void getDiagonalEntries (TensorND< T, DiagonalSize, 1 > &diagonalEntries) const
 
void print () const
 
my_size_t getDim (my_size_t i) const
 

Additional Inherited Members

- Static Public Member Functions inherited from TensorND< T, Size, 1 >
static TensorND I (void)
 
static TensorND einsum (const TensorND< T, Dims1... > &_tensor1, const TensorND< T, Dims2... > &_tensor2, my_size_t a, my_size_t b)
 

Constructor & Destructor Documentation

◆ Vector() [1/5]

template<typename T , my_size_t Size>
Vector< T, Size >::Vector ( )
inline

◆ Vector() [2/5]

template<typename T , my_size_t Size>
Vector< T, Size >::Vector ( initValue)
inline

◆ Vector() [3/5]

template<typename T , my_size_t Size>
Vector< T, Size >::Vector ( const Vector< T, Size > &  other)
inline

◆ Vector() [4/5]

template<typename T , my_size_t Size>
Vector< T, Size >::Vector ( Vector< T, Size > &&  other)
inlinenoexcept

◆ Vector() [5/5]

template<typename T , my_size_t Size>
Vector< T, Size >::Vector ( const T(&)  array[Size])
inline

Member Function Documentation

◆ operator()() [1/2]

template<typename T , my_size_t Size>
T & Vector< T, Size >::operator() ( my_size_t  index)
inline
Here is the call graph for this function:

◆ operator()() [2/2]

template<typename T , my_size_t Size>
const T & Vector< T, Size >::operator() ( my_size_t  index) const
inline
Here is the call graph for this function:

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