dim4 Class Reference

#include <dim4.hpp>

Public Member Functions

 dim4 ()
 
 dim4 (dim_t first, dim_t second=1, dim_t third=1, dim_t fourth=1)
 
 dim4 (const dim4 &other)
 
 dim4 (const unsigned ndims, const dim_t *const dims)
 
dim_t elements ()
 
dim_t elements () const
 
dim_t ndims ()
 
dim_t ndims () const
 
bool operator== (const dim4 &other) const
 
bool operator!= (const dim4 &other) const
 
dim4operator*= (const dim4 &other)
 
dim4operator+= (const dim4 &other)
 
dim4operator-= (const dim4 &other)
 
dim_toperator[] (const unsigned dim)
 
const dim_toperator[] (const unsigned dim) const
 
dim_tget ()
 
const dim_tget () const
 

Data Fields

dim_t dims [4]
 

Detailed Description

Constructor & Destructor Documentation

◆ dim4() [1/4]

dim4 ( )

◆ dim4() [2/4]

dim4 ( dim_t  first,
dim_t  second = 1,
dim_t  third = 1,
dim_t  fourth = 1 
)

◆ dim4() [3/4]

dim4 ( const dim4 other)

◆ dim4() [4/4]

dim4 ( const unsigned  ndims,
const dim_t *const  dims 
)

Member Function Documentation

◆ elements() [1/2]

dim_t elements ( )

◆ elements() [2/2]

dim_t elements ( ) const

◆ get() [1/2]

dim_t* get ( )
inline

Definition at line 46 of file dim4.hpp.

46 { return dims; }
dim_t dims[4]
Definition: dim4.hpp:26

◆ get() [2/2]

const dim_t* get ( ) const
inline

Definition at line 47 of file dim4.hpp.

47 { return dims; }
dim_t dims[4]
Definition: dim4.hpp:26

◆ ndims() [1/2]

dim_t ndims ( )

◆ ndims() [2/2]

dim_t ndims ( ) const

◆ operator!=()

bool operator!= ( const dim4 other) const

◆ operator*=()

dim4& operator*= ( const dim4 other)

◆ operator+=()

dim4& operator+= ( const dim4 other)

◆ operator-=()

dim4& operator-= ( const dim4 other)

◆ operator==()

bool operator== ( const dim4 other) const

◆ operator[]() [1/2]

dim_t& operator[] ( const unsigned  dim)

◆ operator[]() [2/2]

const dim_t& operator[] ( const unsigned  dim) const

Field Documentation

◆ dims

dim_t dims[4]
Examples:
machine_learning/rbm.cpp.

Definition at line 26 of file dim4.hpp.


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