vmmlib  1.7.0
 All Classes Namespaces Functions Pages
vmml::tensor4< I1, I2, I3, I4, T > Class Template Reference
+ Collaboration diagram for vmml::tensor4< I1, I2, I3, I4, T >:

Public Types

typedef T value_type
 
typedef T * pointer
 
typedef T & reference
 
typedef tensor3< I1, I2, I3, T > tensor3_t
 
typedef matrix< I1, I2 *I3 *I4, T > mode1_unfolding_type
 
typedef matrix< I2, I3 *I4 *I1, T > mode2_unfolding_type
 
typedef matrix< I3, I4 *I1 *I2, T > mode3_unfolding_type
 
typedef matrix< I4, I1 *I2 *I3, T > mode4_unfolding_type
 

Public Member Functions

tensor3_taverage_I4 (tensor3_t &t3) const
 
void get_tensor3 (const size_t i4_, tensor3_t &t3_data_) const
 
tensor3_tget_tensor3 (size_t i4_)
 
const tensor3_tget_tensor3 (size_t i4_) const
 
void set_tensor3 (size_t i4_, const tensor3_t &t3_data_)
 
void clear_array_pointer ()
 
T & operator() (size_t i1, size_t i2, size_t i3, size_t i4)
 
const T & operator() (size_t i1, size_t i2, size_t i3, size_t i4) const
 
T & at (size_t i1, size_t i2, size_t i3, size_t i4)
 
const T & at (size_t i1, size_t i2, size_t i3, size_t i4) const
 
 tensor4 (void *memory)
 
 tensor4 (const tensor4 &source)
 
template<typename U >
 tensor4 (const tensor4< I1, I2, I3, I4, U > &source_)
 
template<size_t J1, size_t J2, size_t J3, size_t J4>
 tensor4 (const tensor4< J1, J2, J3, J4, T > &source_)
 
size_t size () const
 
void operator= (T fill_value)
 
void fill (T fill_value)
 
void fill_random (int seed=-1)
 
void fill_random_signed (int seed=-1)
 
void fill_increasing_values ()
 
const tensor4operator= (const tensor4 &source_)
 
template<typename input_iterator_t >
void set (input_iterator_t begin_, input_iterator_t end_, bool row_major_layout=true)
 
void zero ()
 
get_min () const
 
get_max () const
 
get_abs_min () const
 
get_abs_max () const
 
size_t nnz () const
 
size_t nnz (const T &threshold_) const
 
void threshold (const T &threshold_value_)
 
double frobenius_norm () const
 
double frobenius_norm (const tensor4< I1, I2, I3, I4, T > &other) const
 
double avg_frobenius_norm () const
 
double mse (const tensor4< I1, I2, I3, I4, T > &other) const
 
double rmse (const tensor4< I1, I2, I3, I4, T > &other) const
 
double compute_psnr (const tensor4< I1, I2, I3, I4, T > &other, const T &max_value_) const
 
void mean (T &mean_) const
 
double mean () const
 
double variance () const
 
double stdev () const
 
template<typename TT >
void cast_from (const tensor4< I1, I2, I3, I4, TT > &other)
 
template<size_t J1, size_t J2, size_t J3, size_t J4, typename TT >
void cast_from (const tensor4< J1, J2, J3, J4, TT > &other)
 
template<typename TT >
void float_t_to_uint_t (const tensor4< I1, I2, I3, I4, TT > &other)
 
bool operator== (const tensor4 &other) const
 
bool operator!= (const tensor4 &other) const
 
bool equals (const tensor4 &other, T tolerance) const
 
template<typename compare_t >
bool equals (const tensor4 &other, compare_t &cmp) const
 
tensor4 operator+ (T scalar) const
 
tensor4 operator- (T scalar) const
 
void operator+= (T scalar)
 
void operator-= (T scalar)
 
tensor4 operator+ (const tensor4 &other) const
 
tensor4 operator- (const tensor4 &other) const
 

Static Public Member Functions

static size_t get_array_size_in_bytes ()
 

Static Public Attributes

static const size_t ROWS = I1
 
static const size_t COLS = I2
 
static const size_t SLICES = I3
 
static const size_t T3S = I4
 
static const size_t MATRIX_SIZE = I1 * I2
 
static const size_t T3_SIZE = I1 * I2 * I3
 
static const size_t SIZE = I1 * I2 * I3 * I4
 

Detailed Description

template<size_t I1, size_t I2, size_t I3, size_t I4, typename T = float>
class vmml::tensor4< I1, I2, I3, I4, T >

Definition at line 57 of file tensor4.hpp.


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