ASL  0.1.6
Advanced Simulation Library
Functions
VectorOfElements-VectorOfElements Operations

Functions

VectorOfElements assignmentSafe (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator- (const VectorOfElements &a)
 
VectorOfElements operator+= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator-= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator*= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator/= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator+ (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator- (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator* (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator/ (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator% (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator== (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator!= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator> (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator< (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator<= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator>= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator&& (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator|| (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator! (const VectorOfElements &a)
 
VectorOfElements crossProduct (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements l2 (const VectorOfElements &a)
 
VectorOfElements productOfElements (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements productOfElements (const VectorOfElements &a)
 
VectorOfElements divisionOfElements (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements min (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements min (const VectorOfElements &a, const VectorOfElements &b, TypeID type)
 
VectorOfElements minAbs (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements max (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements max (const VectorOfElements &a, const VectorOfElements &b, TypeID type)
 
VectorOfElements copysign (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements copysign (const VectorOfElements &a, const VectorOfElements &b, TypeID t)
 
VectorOfElements sign (const VectorOfElements &a)
 
VectorOfElements excerpt (const VectorOfElements &source, const VectorOfElements &filter)
 
VectorOfElements select (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c)
 
VectorOfElements select (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c, TypeID t)
 
VectorOfElements select (const VectorOfElements &b, const VectorOfElements &c, TypeID t)
 
VectorOfElements mad (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c)
 
VectorOfElements mad (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c, TypeID t)
 
VectorOfElements log (const VectorOfElements &a)
 
VectorOfElements log10 (const VectorOfElements &a)
 
VectorOfElements powI (const VectorOfElements &a, unsigned int i)
 
VectorOfElements exp (const VectorOfElements &a)
 
VectorOfElements sqrt (const VectorOfElements &a)
 
VectorOfElements rsqrt (const VectorOfElements &a)
 
VectorOfElements fabs (const VectorOfElements &a)
 
VectorOfElements abs (const VectorOfElements &a)
 
VectorOfElements abs_diff (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements floor (const VectorOfElements &a)
 
VectorOfElements convert (acl::TypeID type, const VectorOfElements &a, bool strong=true)
 
VectorOfElements minElement (const VectorOfElements &a)
 
VectorOfElements minAbsElement (const VectorOfElements &a)
 
VectorOfElements maxElement (const VectorOfElements &a)
 
VectorOfElements sumOfElements (const VectorOfElements &a)
 
VectorOfElements andOfElements (const VectorOfElements &a)
 
VectorOfElements orOfElements (const VectorOfElements &a)
 
VectorOfElements cat (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElementsData cat (const VectorOfElementsData &a, const VectorOfElementsData &b)
 
VectorOfElements cat (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c)
 
VectorOfElements cat (const VectorOfElements *a, unsigned int n)
 
VectorOfElements catN (const VectorOfElements &a, unsigned int n)
 
template<typename T >
VectorOfElements operator+= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator-= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator*= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator/= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator+ (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator+ (const T &a, const VectorOfElements &b)
 
template<typename T >
VectorOfElements operator- (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator- (const T &a, const VectorOfElements &b)
 
template<typename T >
VectorOfElements operator* (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator* (const T &a, const VectorOfElements &b)
 
template<typename T >
VectorOfElements operator/ (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator% (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator/ (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator% (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator> (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator> (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator< (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator< (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator>= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator>= (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator<= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator<= (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator== (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator== (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator!= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator!= (const T &b, const VectorOfElements &a)
 

Detailed Description

Function Documentation

VectorOfElements abs ( const VectorOfElements a)
related

Creates VectorOfElements containing result element-wise operation abs(a);

VectorOfElements abs_diff ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing result element-wise operation abs_diff(a, b);

VectorOfElements andOfElements ( const VectorOfElements a)
related

Creates VectorOfElements containing a && operation result of elements

VectorOfElements assignmentSafe ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing assignment operation result a=b

VectorOfElements cat ( const VectorOfElements a,
const VectorOfElements b 
)
related

Concatinates two vectors a and b \( cat\left( \left[\begin{array}{c} a_1\\a_2\\...\\a_n\\ \end{array}\right], \left[\begin{array}{c} b_1\\b_2\\...\\b_m\\ \end{array}\right] \right)= \left[\begin{array}{c} a_1\\a_2\\ \vdots \\a_n\\ b_1\\b_2\\ \vdots \\b_m\\ \end{array}\right]. \)

VectorOfElementsData cat ( const VectorOfElementsData a,
const VectorOfElementsData b 
)
related

Concatinates two vectors a and b \( cat\left( \left[\begin{array}{c} a_1\\a_2\\...\\a_n\\ \end{array}\right], \left[\begin{array}{c} b_1\\b_2\\...\\b_m\\ \end{array}\right] \right)= \left[\begin{array}{c} a_1\\a_2\\ \vdots \\a_n\\ b_1\\b_2\\ \vdots \\b_m\\ \end{array}\right]. \)

VectorOfElements cat ( const VectorOfElements a,
const VectorOfElements b,
const VectorOfElements c 
)
related

Concatinates three vectors a b and c \( cat\left( \left[\begin{array}{c} a_1\\...\\a_n\\ \end{array}\right], \left[\begin{array}{c} b_1\\...\\b_m\\ \end{array}\right], \left[\begin{array}{c} c_1\\...\\c_l\\ \end{array}\right] \right)= \left[\begin{array}{c} a_1\\...\\a_n\\ b_1\\...\\b_m\\ c_1\\...\\c_l\\ \end{array}\right]. \)

VectorOfElements cat ( const VectorOfElements a,
unsigned int  n 
)
related

Concatinates n VectorOfElements a

VectorOfElements catN ( const VectorOfElements a,
unsigned int  n 
)
related

Concatinates VectorOfElements a to itself n times

VectorOfElements convert ( acl::TypeID  type,
const VectorOfElements a,
bool  strong = true 
)
related

Creates VectorOfElements with openCL type casting;

VectorOfElements copysign ( const VectorOfElements a,
const VectorOfElements b 
)
related

returns a with sign of b copysign(a,b)

VectorOfElements copysign ( const VectorOfElements a,
const VectorOfElements b,
TypeID  t 
)
related

returns a with sign of b copysign(a,b) with type specification

VectorOfElements crossProduct ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements c which elements are crossproduct of corresponding elements of a and b

The function is defined for 2D and 3D cases

VectorOfElements divisionOfElements ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements c which elements are division of corresponding elements of a and b

VectorOfElements excerpt ( const VectorOfElements source,
const VectorOfElements filter 
)
related

Creates VectorOfElements which elements are result of excerpt operation of source and filter elements

The filter shoule have only 1 component

VectorOfElements exp ( const VectorOfElements a)
related

Creates VectorOfElements containing result exp(a); a should contain only one element

VectorOfElements fabs ( const VectorOfElements a)
related

Creates VectorOfElements containing result element-wise operation fabs(a);

VectorOfElements floor ( const VectorOfElements a)
related

Creates VectorOfElements containing result element-wise operation \( floor(a_i) \)

VectorOfElements l2 ( const VectorOfElements a)
related

Creates VectorOfElements b corresponding to a scala product a*a

The function is defined for 2D and 3D cases

Definition at line 751 of file aclVectorOfElementsOperations.h.

VectorOfElements log ( const VectorOfElements a)
related

Creates VectorOfElements containing result log(a); a should contain only one element

VectorOfElements log10 ( const VectorOfElements a)
related

Creates VectorOfElements containing result log10(a); a should contain only one element

VectorOfElements mad ( const VectorOfElements a,
const VectorOfElements b,
const VectorOfElements c 
)
related

Creates VectorOfElements containing operation result of elements a, b and c For a scalar type, result = a * b + c

VectorOfElements mad ( const VectorOfElements a,
const VectorOfElements b,
const VectorOfElements c,
TypeID  t 
)
related

Creates VectorOfElements containing operation result of elements a, b and c with type specification For a scalar type, result = a * b + c

VectorOfElements max ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements c which elements are max of corresponding elements of a and b

VectorOfElements max ( const VectorOfElements a,
const VectorOfElements b,
TypeID  type 
)
related

Creates VectorOfElements c which elements are max of corresponding elements of a and b with type specification

VectorOfElements maxElement ( const VectorOfElements a)
related

Creates VectorOfElements containing a min element

VectorOfElements min ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements c which elements are min of corresponding elements of a and b

VectorOfElements min ( const VectorOfElements a,
const VectorOfElements b,
TypeID  type 
)
related

Creates VectorOfElements c which elements are min of corresponding elements of a and b with type specification

VectorOfElements minAbs ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements c which elements are min of corresponding elements of a and b

VectorOfElements minAbsElement ( const VectorOfElements a)
related

Creates VectorOfElements containing an element with minimal absolute value

VectorOfElements minElement ( const VectorOfElements a)
related

Creates VectorOfElements containing a min element

VectorOfElements operator! ( const VectorOfElements a)
related

Creates VectorOfElements containing operation result of element a

VectorOfElements operator!= ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements a and b

template<typename T >
VectorOfElements operator!= ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double b The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator!= ( const T &  b,
const VectorOfElements a 
)
related

Creates VectorOfElements containing operation result of elements of a and a double b

The function creates automaticaly a constant of a corresponding type

VectorOfElements operator% ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and b

template<typename T >
VectorOfElements operator% ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator% ( const T &  b,
const VectorOfElements a 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

VectorOfElements operator&& ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements a && b

VectorOfElements operator* ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and b

In case of sizes of a and b are equal the product is a scalar (dot) product. If one of sizes is 1 than the function results product of a scalar on vector

template<typename T >
VectorOfElements operator* ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double

The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator* ( const T &  a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double

The function creates automaticaly a constant of a corresponding type

VectorOfElements operator*= ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and b

It is assumed that size of b is 1

template<typename T >
VectorOfElements operator*= ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

VectorOfElements operator+ ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and b

template<typename T >
VectorOfElements operator+ ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator+ ( const T &  a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

VectorOfElements operator+= ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and b

template<typename T >
VectorOfElements operator+= ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double

The function creates automaticaly a constant of a corresponding type

VectorOfElements operator- ( const VectorOfElements a)
related

Creates VectorOfElements containing operation result of element a

VectorOfElements operator- ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and b

template<typename T >
VectorOfElements operator- ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double

The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator- ( const T &  a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double

The function creates automaticaly a constant of a corresponding type

VectorOfElements operator-= ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and b

template<typename T >
VectorOfElements operator-= ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double

The function creates automaticaly a constant of a corresponding type

VectorOfElements operator/ ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and b

template<typename T >
VectorOfElements operator/ ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator/ ( const T &  b,
const VectorOfElements a 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

VectorOfElements operator/= ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements of a and b

It is supposed that size of b is 1

template<typename T >
VectorOfElements operator/= ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

VectorOfElements operator< ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements a and b

template<typename T >
VectorOfElements operator< ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator< ( const T &  b,
const VectorOfElements a 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

VectorOfElements operator<= ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements a and b

template<typename T >
VectorOfElements operator<= ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator<= ( const T &  b,
const VectorOfElements a 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

VectorOfElements operator== ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements a and b

template<typename T >
VectorOfElements operator== ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator== ( const T &  b,
const VectorOfElements a 
)
related

Creates VectorOfElements containing operation result of elements of a and a double b The function creates automaticaly a constant of a corresponding type

VectorOfElements operator> ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements a and b

template<typename T >
VectorOfElements operator> ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator> ( const T &  b,
const VectorOfElements a 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

VectorOfElements operator>= ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements a and b

template<typename T >
VectorOfElements operator>= ( const VectorOfElements a,
const T &  b 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

template<typename T >
VectorOfElements operator>= ( const T &  b,
const VectorOfElements a 
)
related

Creates VectorOfElements containing operation result of elements of a and a double The function creates automaticaly a constant of a corresponding type

VectorOfElements operator|| ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements containing operation result of elements a || b

VectorOfElements orOfElements ( const VectorOfElements a)
related

Creates VectorOfElements containing a || operation result of elements

VectorOfElements powI ( const VectorOfElements a,
unsigned int  i 
)
related

Creates VectorOfElements containing result a^i; a should contain only one element

VectorOfElements productOfElements ( const VectorOfElements a,
const VectorOfElements b 
)
related

Creates VectorOfElements c which elements are product of corresponding elements of a and b

VectorOfElements productOfElements ( const VectorOfElements a)
related

Creates VectorOfElements c which element is a product of all elements of a

VectorOfElements rsqrt ( const VectorOfElements a)
related

Creates VectorOfElements containing result exp(a); a should contain only one element

Examples:
testPrivateVar.cc.
VectorOfElements select ( const VectorOfElements a,
const VectorOfElements b,
const VectorOfElements c 
)
related

Creates VectorOfElements containing operation result of elements a, b and c For a scalar type, result = c ? b : a

The function can operate in two modes: c has 1 components and several components.

VectorOfElements select ( const VectorOfElements a,
const VectorOfElements b,
const VectorOfElements c,
TypeID  t 
)
related

Creates VectorOfElements containing operation result of elements a, b and c For a scalar type, result = c ? b : a, with type specification

The function can operate in two modes: c has 1 components and several components.

VectorOfElements select ( const VectorOfElements b,
const VectorOfElements c,
TypeID  t 
)
related

Creates VectorOfElements containing operation result of elements a, b and c For a scalar type, result = c ? b : 0, with type specification

The function can operate in two modes: c has 1 components and several components.

VectorOfElements sign ( const VectorOfElements a)
related

returns sign of a

VectorOfElements sqrt ( const VectorOfElements a)
related

Creates VectorOfElements containing result exp(a); a should contain only one element

VectorOfElements sumOfElements ( const VectorOfElements a)
related

Creates VectorOfElements containing a sum of elements