PICCANTE  0.4
The hottest HDR imaging library!
Public Member Functions | Public Attributes | List of all members
pic::pic::Vec< N, T > Class Template Reference

The Vec class. More...

#include <display.hpp>

Public Member Functions

 Vec ()
 Vec<N, T> More...
 
 Vec (T data0, T data1)
 Vec<N, T> More...
 
 Vec (T data0, T data1, T data2)
 Vec<N, T> More...
 
 Vec (T *data)
 Vec<N, T> More...
 
void setZero ()
 setZero More...
 
void setOne ()
 setOne More...
 
Vec< N, T > inverse (T maxVal=T(-1))
 inverse More...
 
T * convertToArray (T *ret)
 convertToArray More...
 
bool isGreaterThanZero ()
 isGreaterThanZero More...
 
bool hasNegative ()
 hasNegative More...
 
Vec< N, T > clone ()
 
const T & operator[] (std::size_t i) const
 operator [] More...
 
T & operator[] (std::size_t i)
 operator [] More...
 
bool equal (Vec< N, T > a)
 equal More...
 
getMean ()
 Mean. More...
 
getSum ()
 getSum More...
 
getMax ()
 getMax More...
 
int getMaxChannel ()
 getMaxChannel More...
 
dot (Vec< N, T > a)
 dot More...
 
squaredSum ()
 squaredSum More...
 
distanceSq (Vec< N, T > &x)
 distanceSq More...
 
void clamp (T min, T max)
 clamp More...
 
lengthSq ()
 lengthSq More...
 
std::string toString ()
 toString More...
 
void print ()
 print More...
 
void operator= (const T &a)
 operator = More...
 
void operator= (const T *a)
 operator = More...
 
void operator= (const Vec< N, T > &a)
 operator = More...
 
void operator+= (const T &a)
 operator += More...
 
void operator+= (const T *a)
 operator += More...
 
Vec< N, T > operator+ (const T &a) const
 operator + More...
 
void operator-= (const T &a)
 operator -= More...
 
Vec< N, T > operator- (const T &a) const
 operator - More...
 
void mul (const T &a)
 
void operator*= (const T &a)
 operator *= More...
 
void operator*= (const T *a)
 operator *= More...
 
Vec< N, T > operator* (const T &a) const
 operator * More...
 
void operator/= (const float &a)
 operator /= More...
 
Vec< N, T > operator/ (const float &a) const
 operator / More...
 
void operator+= (const Vec< N, T > &col)
 operator += More...
 
Vec< N, T > operator+ (const Vec< N, T > &col) const
 operator + More...
 
void operator-= (const Vec< N, T > &col)
 operator -= More...
 
Vec< N, T > operator- () const
 operator - More...
 
Vec< N, T > operator- (const Vec< N, T > &col) const
 operator - More...
 
void mul (const Vec< N, T > &a)
 
void operator*= (const Vec< N, T > &a)
 operator *= More...
 
Vec< N, T > operator* (const Vec< N, T > &a)
 operator * More...
 
void operator/= (Vec< N, T > &a)
 operator /= More...
 
Vec< N, T > operator/ (Vec< N, T > &a) const
 operator / More...
 
bool operator!= (Vec< N, T > &a)
 operator != More...
 
bool operator== (Vec< N, T > &a)
 operator == More...
 

Public Attributes

data [N]
 

Detailed Description

template<uint N, class T>
class pic::pic::Vec< N, T >

The Vec class.

Constructor & Destructor Documentation

◆ Vec() [1/4]

template<uint N, class T>
pic::pic::Vec< N, T >::Vec ( )
inline

Vec<N, T>

◆ Vec() [2/4]

template<uint N, class T>
pic::pic::Vec< N, T >::Vec ( data0,
data1 
)
inline

Vec<N, T>

Parameters
data0
data1

◆ Vec() [3/4]

template<uint N, class T>
pic::pic::Vec< N, T >::Vec ( data0,
data1,
data2 
)
inline

Vec<N, T>

Parameters
data0
data1
data2

◆ Vec() [4/4]

template<uint N, class T>
pic::pic::Vec< N, T >::Vec ( T *  data)
inline

Vec<N, T>

Parameters
data

Member Function Documentation

◆ clamp()

template<uint N, class T>
void pic::pic::Vec< N, T >::clamp ( min,
max 
)
inline

clamp

Parameters
min
max
Returns

◆ clone()

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::clone ( )
inline

◆ convertToArray()

template<uint N, class T>
T* pic::pic::Vec< N, T >::convertToArray ( T *  ret)
inline

convertToArray

Parameters
col

◆ distanceSq()

template<uint N, class T>
T pic::pic::Vec< N, T >::distanceSq ( Vec< N, T > &  x)
inline

distanceSq

Parameters
x
Returns

◆ dot()

template<uint N, class T>
T pic::pic::Vec< N, T >::dot ( Vec< N, T >  a)
inline

dot

Parameters
a

◆ equal()

template<uint N, class T>
bool pic::pic::Vec< N, T >::equal ( Vec< N, T >  a)
inline

equal

Parameters
a
Returns

◆ getMax()

template<uint N, class T>
T pic::pic::Vec< N, T >::getMax ( )
inline

getMax

Returns

◆ getMaxChannel()

template<uint N, class T>
int pic::pic::Vec< N, T >::getMaxChannel ( )
inline

getMaxChannel

Returns

◆ getMean()

template<uint N, class T>
T pic::pic::Vec< N, T >::getMean ( )
inline

Mean.

Returns

◆ getSum()

template<uint N, class T>
T pic::pic::Vec< N, T >::getSum ( )
inline

getSum

Returns

◆ hasNegative()

template<uint N, class T>
bool pic::pic::Vec< N, T >::hasNegative ( )
inline

hasNegative

Returns

◆ inverse()

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::inverse ( maxVal = T(-1))
inline

inverse

Returns

◆ isGreaterThanZero()

template<uint N, class T>
bool pic::pic::Vec< N, T >::isGreaterThanZero ( )
inline

isGreaterThanZero

Returns

◆ lengthSq()

template<uint N, class T>
T pic::pic::Vec< N, T >::lengthSq ( )
inline

lengthSq

Returns

◆ mul() [1/2]

template<uint N, class T>
void pic::pic::Vec< N, T >::mul ( const T &  a)
inline

◆ mul() [2/2]

template<uint N, class T>
void pic::pic::Vec< N, T >::mul ( const Vec< N, T > &  a)
inline

◆ operator!=()

template<uint N, class T>
bool pic::pic::Vec< N, T >::operator!= ( Vec< N, T > &  a)
inline

operator !=

Parameters
col
Returns

◆ operator*() [1/2]

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::operator* ( const T &  a) const
inline

operator *

Parameters
a
Returns

◆ operator*() [2/2]

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::operator* ( const Vec< N, T > &  a)
inline

operator *

Parameters
col
Returns

◆ operator*=() [1/3]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator*= ( const T &  a)
inline

operator *=

Parameters
a

◆ operator*=() [2/3]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator*= ( const T *  a)
inline

operator *=

Parameters
a

◆ operator*=() [3/3]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator*= ( const Vec< N, T > &  a)
inline

operator *=

Parameters
col

◆ operator+() [1/2]

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::operator+ ( const T &  a) const
inline

operator +

Parameters
a
Returns

◆ operator+() [2/2]

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::operator+ ( const Vec< N, T > &  col) const
inline

operator +

Parameters
col
Returns

◆ operator+=() [1/3]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator+= ( const T &  a)
inline

operator +=

Parameters
a

◆ operator+=() [2/3]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator+= ( const T *  a)
inline

operator +=

Parameters
a

◆ operator+=() [3/3]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator+= ( const Vec< N, T > &  col)
inline

operator +=

Parameters
col

◆ operator-() [1/3]

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::operator- ( const T &  a) const
inline

operator -

Parameters
a
Returns

◆ operator-() [2/3]

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::operator- ( ) const
inline

operator -

Returns

◆ operator-() [3/3]

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::operator- ( const Vec< N, T > &  col) const
inline

operator -

Parameters
col
Returns

◆ operator-=() [1/2]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator-= ( const T &  a)
inline

operator -=

Parameters
a

◆ operator-=() [2/2]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator-= ( const Vec< N, T > &  col)
inline

operator -=

Parameters
col

◆ operator/() [1/2]

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::operator/ ( const float &  a) const
inline

operator /

Parameters
a
Returns

◆ operator/() [2/2]

template<uint N, class T>
Vec<N, T> pic::pic::Vec< N, T >::operator/ ( Vec< N, T > &  a) const
inline

operator /

Parameters
col
Returns

◆ operator/=() [1/2]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator/= ( const float &  a)
inline

operator /=

Parameters
a

◆ operator/=() [2/2]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator/= ( Vec< N, T > &  a)
inline

operator /=

Parameters
col

◆ operator=() [1/3]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator= ( const T &  a)
inline

operator =

Parameters
a

◆ operator=() [2/3]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator= ( const T *  a)
inline

operator =

Parameters
a

◆ operator=() [3/3]

template<uint N, class T>
void pic::pic::Vec< N, T >::operator= ( const Vec< N, T > &  a)
inline

operator =

Parameters
a

◆ operator==()

template<uint N, class T>
bool pic::pic::Vec< N, T >::operator== ( Vec< N, T > &  a)
inline

operator ==

Parameters
col
Returns

◆ operator[]() [1/2]

template<uint N, class T>
const T& pic::pic::Vec< N, T >::operator[] ( std::size_t  i) const
inline

operator []

Parameters
index
Returns

◆ operator[]() [2/2]

template<uint N, class T>
T& pic::pic::Vec< N, T >::operator[] ( std::size_t  i)
inline

operator []

Parameters
index
Returns

◆ print()

template<uint N, class T>
void pic::pic::Vec< N, T >::print ( )
inline

print

◆ setOne()

template<uint N, class T>
void pic::pic::Vec< N, T >::setOne ( )
inline

setOne

◆ setZero()

template<uint N, class T>
void pic::pic::Vec< N, T >::setZero ( )
inline

setZero

◆ squaredSum()

template<uint N, class T>
T pic::pic::Vec< N, T >::squaredSum ( )
inline

squaredSum

Returns

◆ toString()

template<uint N, class T>
std::string pic::pic::Vec< N, T >::toString ( )
inline

toString

Parameters
x
Returns

Member Data Documentation

◆ data

template<uint N, class T>
T pic::pic::Vec< N, T >::data[N]

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