|
| Tensor () |
|
| Tensor (const Vector< size_t > &) |
|
| Tensor (const Vector< size_t > &, const T &) |
|
| Tensor (const size_t &) |
|
| Tensor (const size_t &, const size_t &) |
|
| Tensor (const size_t &, const size_t &, const size_t &) |
|
| Tensor (const size_t &, const size_t &, const size_t &, const size_t &) |
|
| Tensor (const Matrix< T > &) |
|
virtual | ~Tensor () |
| Destructor.
|
|
Tensor< T > & | operator= (const Tensor< T > &) |
|
bool | operator== (const T &) |
|
bool | operator== (const Tensor< T > &) |
|
bool | operator>= (const T &) |
|
bool | operator<= (const T &) |
|
T & | operator() (const size_t &) |
|
T & | operator() (const size_t &, const size_t &) |
|
T & | operator() (const size_t &, const size_t &, const size_t &) |
|
T & | operator() (const size_t &, const size_t &, const size_t &, const size_t &) |
|
const T & | operator() (const size_t &) const |
|
const T & | operator() (const size_t &, const size_t &) const |
|
const T & | operator() (const size_t &, const size_t &, const size_t &) const |
|
const T & | operator() (const size_t &, const size_t &, const size_t &, const size_t &) const |
|
Tensor< T > | operator+ (const T &) const |
|
Tensor< T > | operator- (const T &) const |
|
Tensor< T > | operator* (const T &) const |
|
Tensor< T > | operator/ (const T &) const |
|
Tensor< T > | operator+ (const Tensor< T > &) const |
|
Tensor< T > | operator- (const Tensor< T > &) const |
|
Tensor< T > | operator* (const Tensor< T > &) const |
|
Tensor< T > | operator/ (const Tensor< T > &) const |
|
void | operator*= (const Tensor< T > &) |
|
size_t | get_dimensions_number () const |
| Returns the number of dimensions of the tensor.
|
|
size_t | get_dimension (const size_t &) const |
|
size_t | get_element (const size_t &, const size_t &) const |
|
void | add_matrix (const Matrix< T > &) |
|
Vector< T > | get_row (const size_t &) const |
|
Vector< T > | get_column (const size_t &) const |
|
Vector< string > | get_header () const |
| Returns a string vector with the header.
|
|
Tensor< T > | get_tensor (const size_t &) const |
| Returns a tensor with the elements corresponding to the given index.
|
|
Matrix< T > | get_matrix (const size_t &) const |
|
Matrix< T > | get_matrix (const size_t &, const size_t &) const |
|
void | embed (const size_t &, const size_t &, const Matrix< T > &) |
|
void | embed (const size_t &, const size_t &, const Tensor< T > &) |
|
Vector< T > | to_vector () const |
| This method transforms the tensor into a vector.
|
|
Matrix< T > | to_matrix () const |
| This method transforms the tensor into a matrix.
|
|
Tensor< T > | to_2d_tensor () const |
| Returns the tensor reshaped as a 2-dimensional tensor.
|
|
Vector< size_t > | get_dimensions () const |
| Returns the total number of dimensions of the tensor.
|
|
void | set () |
| Sets the size of this tensor to zero.
|
|
void | set (const size_t &) |
|
void | set (const size_t &, const size_t &) |
|
void | set (const Vector< size_t > &) |
|
void | set (const Vector< size_t > &, const T &) |
|
void | set (const Tensor< T > &) |
|
void | set_row (const size_t &, const Vector< T > &) |
|
void | set_matrix (const size_t &, const size_t &, const Matrix< T > &) |
|
void | set_matrix (const size_t &, const Matrix< T > &) |
|
void | set_tensor (const size_t &, const Tensor< T > &) |
|
void | embed (const size_t &, const Vector< T > &) |
|
void | initialize (const T &) |
|
void | initialize_sequential () |
| Initializes all the elements of the tensor in a sequential order (0, 1, 2...).
|
|
void | randomize_uniform (const T &, const T &) |
|
void | randomize_normal (const double &=0.0, const double &=1.0) |
|
T | calculate_sum () const |
| Returns the sum of all the elements in the tensor.
|
|
Tensor< T > | divide (const Vector< T > &, const size_t &) const |
|
template<typename T>
class OpenNN::Tensor< T >
This template class defines a tensor for general purpose use.
This tensor also implements some mathematical methods which can be useful.
Definition at line 37 of file tensor.h.