VectorOfElements generators
Advanced Computational Language » Complex Data Types
Collaboration diagram for VectorOfElements generators:

## Functions

template<typename T >
VectorOfElements | acl::generateVEConstant (T a)
| Generates VectorOfElements with 1 Element acl::Constant with value a. More...
template<typename T >
VectorOfElements | acl::generateVEConstant (T a, T b)
| Generates VectorOfElements with 2 Elements acl::Constant with values a and b. More...
template<typename T >
VectorOfElements | acl::generateVEConstant (T a, T b, T c)
| Generates VectorOfElements with 3 Elements acl::Constant with values a,b and c. More...
template<typename T >
VectorOfElements | acl::generateVEConstantN (unsigned int n, T a)
| Generates VectorOfElements with n Elements acl::Constant with values a. More...
template<typename T >
VectorOfElements | acl::generateVEConstant (unsigned int n, const T *const a)
| Generates VectorOfElements with `n` Elements acl::Constant with values a[i]. More...
template<typename T >
VectorOfElements | acl::generateVEConstant (const std::vector< T > &a)
| Generates VectorOfElements with a.size() Elements acl::Constant with values a[i]. More...
template<typename T >
VectorOfElements | acl::generateVEConstant (const asl::AVec< T > &a)
| Generates VectorOfElements correspondinng to `a`. More...
template<typename T >
VectorOfElementsData | acl::generateVEData (unsigned int length, unsigned int nComponents, CommandQueue queue)
| Generates VectorOfElements with `nComponents` Elements acl::Vector with size `length`. More...
template<typename T >
VectorOfElementsData | acl::generateVEData (unsigned int length, unsigned int nComponents=1)
| Generates VectorOfElements with `nComponents` Elements acl::Vector with size `length` and default queue. More...
VectorOfElementsData | acl::generateVEData (unsigned int length, TypeID typeID, unsigned int nComponents, CommandQueue queue)
| Generates VectorOfElementsData with `nComponents` Elements acl::Array of type `with` size `length`. More...
VectorOfElementsData | acl::generateVEData (unsigned int length, TypeID typeID, unsigned int nComponents=1)
| Generates VectorOfElementsData with `nComponents` Elements acl::Array of type `with` size `length` and default queue. More...
VectorOfElements | acl::generateVELocalArray (unsigned int componentSize, TypeID typeID, unsigned int size)
| Generates VectorOfElements with `size` Elements acl::LocalArray of type `typeID` with size `componentSize`. More...
template<typename T >
VectorOfElements | acl::generateVEPrivateArray (const vector< T > &data)
| Generates VectorOfElements with `size` Elements acl::PrivateArray of type `with` data defined by `data`. More...
template<typename T >
VectorOfElements | acl::generateVEPrivateArray (const vector< asl::AVec< T >> &data)
| Generates VectorOfElements with `size` Elements acl::PrivateArray of type `with` data defined by `data`. More...
template<typename T >
VectorOfElements | acl::generateVEPrivateArray (const vector< T > &data, TypeID typeID)
| Generates VectorOfElements with `size` Elements acl::PrivateArray of type `with` size `componentSize`. More...
template<typename T >
VectorOfElements | acl::generateVEPrivateArray (const vector< asl::AVec< T >> &data, TypeID typeID)
| Generates VectorOfElements with `size` Elements acl::PrivateArray of type `with` size `componentSize`. More...
template<typename T >
VectorOfElements | acl::generateVEDataSub (T, unsigned int sublength, unsigned int length, unsigned int nComponents, CommandQueue queue)
| Generates VectorOfElements with `nComponents` Elements acl::Subvector with size `sublength`. `length` is the vector size. More...
template<typename T >
VectorOfElements | acl::generateVEVariableR (T &a)
| Generates VectorOfElements with 1 Element acl::VariableReference with reference on `a`. More...
template<typename T >
VectorOfElements | acl::generateVEVariableR (T &a, T &b)
| Generates VectorOfElements with 2 Element acl::VariableReference with references on `a` and `b`. More...
template<typename T >
VectorOfElements | acl::generateVEVariableR (T &a, T &b, T &c)
| Generates VectorOfElements with 3 Element acl::VariableReference with references on `a`, `b` and `c`. More...
template<typename T >
VectorOfElements | acl::generateVEVariableR (asl::AVec< T > &a)
| Generates VectorOfElements with nD(a) Element acl::VariableReference with reference on `a`[i] <> More...
template<typename T >
VectorOfElements | acl::generateVEVariableSP (std::shared_ptr< T > a)
| Generates VectorOfElements with 1 Element acl::VariableReference with reference on `a`. More...
template<typename T >
VectorOfElements | acl::generateVEVariableSP (std::shared_ptr< T > a, std::shared_ptr< T > b)
| Generates VectorOfElements with 2 Element acl::VariableReference with references on `a` and `b`. More...
template<typename T >
VectorOfElements | acl::generateVEVariableSP (std::shared_ptr< T > a, std::shared_ptr< T > b, std::shared_ptr< T > c)
| Generates VectorOfElements with 3 Element acl::VariableReference with references on `a`, `b` and `c`. More...
template<typename T >
VectorOfElements | acl::generateVEVariableSP (std::shared_ptr< asl::AVec< T >> a)
| Generates VectorOfElements with nD(a) Element acl::VariableReference with reference on `a`[i] <> More...
template<typename T >
VectorOfElements | acl::generateVEPrivateVariable (unsigned int n)
| Generates VectorOfElements with `n` Element of acl::PrivateVariable. More...
VectorOfElements | acl::generateVEPrivateVariable (unsigned int n, TypeID t)
| Generates VectorOfElements with `n` Element of acl::PrivateVariable with type `t`. More...
VectorOfElements | acl::generateVESubElements (VectorOfElements a, unsigned int length, int offset)
| Generates VectorOfElements which contains SubElements of the corresponding element of `a`. More...
VectorOfElements | acl::generateVESubElements (VectorOfElements a, unsigned int length, VectorOfElements offset)
| Generates VectorOfElements which contains SubElements of the corresponding element of `a`. More...
VectorOfElements | acl::generateVEShftedElements (VectorOfElements a, int offset)
| Generates VectorOfElements which contains SubElements of the corresponding element of `a`. More...
VectorOfElements | acl::generateVEShftedElements (VectorOfElements a, const std::vector< int > &offset)
| Generates VectorOfElements which contains SubElements of the corresponding element of `a`. More...
VectorOfElements | acl::generateVEShiftedElements (VectorOfElements a, VectorOfElements offset)
| Generates VectorOfElements which contains SubElements of the corresponding element of `a`. More...
VectorOfElements | acl::generateVEPolynom (VectorOfElements x, VectorOfElements coefs)
VectorOfElements | acl::generateVEIndex (unsigned int size=0)
VectorOfElements | acl::generateVEGroupID ()
VectorOfElements | acl::generateVEIndexExt (unsigned int size=0)

## Detailed Description

## Function Documentation

## generateVEConstant() [1/6]

template<typename T >

VectorOfElements acl::generateVEConstant | ( | const asl::AVec< T > & | a | ) |

Generates VectorOfElements correspondinng to `a`.

## generateVEConstant() [2/6]

template<typename T >

VectorOfElements acl::generateVEConstant | ( | const std::vector< T > & | a | ) |

Generates VectorOfElements with a.size() Elements acl::Constant with values a[i].

## generateVEConstant() [3/6]

template<typename T >

VectorOfElements acl::generateVEConstant | ( | T | a | ) |

Generates VectorOfElements with 1 Element acl::Constant with value a.

Examples
  acousticWaves.cc, bus_wind.cc, compressor.cc, cubeGravity.cc, cubeIncompressibleGravity.cc, cubePoroelasticGravity.cc, flow.cc, flow2.cc, flow3.cc, flowKDPGrowth.cc, flowRotatingCylinders.cc, jumpingBox.cc, locomotive.cc, locomotive_laminar.cc, locomotive_stability.cc, multicomponent_flow.cc, multiphase_flow.cc, pitot_tube_ice.cc, poroelastic.cc, testMatrixOfElements.cc, testPrivateVar.cc, testReductionFunction.cc, testSMDiff.cc, testSMDiff3C.cc, testSMPhi.cc, testSMPhiBV.cc, and testVectorOfElements.cc.

## generateVEConstant() [4/6]

template<typename T >

VectorOfElements acl::generateVEConstant | ( | T | a,
|  | T | b
| ) |  |

Generates VectorOfElements with 2 Elements acl::Constant with values a and b.

## generateVEConstant() [5/6]

template<typename T >

VectorOfElements acl::generateVEConstant | ( | T | a,
|  | T | b,
|  | T | c
| ) |  |

Generates VectorOfElements with 3 Elements acl::Constant with values a,b and c.

## generateVEConstant() [6/6]

template<typename T >

VectorOfElements acl::generateVEConstant | ( | unsigned int | n,
|  | const T *const | a
| ) |  |

Generates VectorOfElements with `n` Elements acl::Constant with values a[i].

## generateVEConstantN()

template<typename T >

VectorOfElements acl::generateVEConstantN | ( | unsigned int | n,
|  | T | a
| ) |  |

Generates VectorOfElements with n Elements acl::Constant with values a.

Examples
  cubeGravity.cc, cubeIncompressibleGravity.cc, jumpingBox.cc, poroelastic.cc, and testASLData.cc.

## generateVEData() [1/4]

VectorOfElementsData acl::generateVEData | ( | unsigned int | length,
|  | TypeID | typeID,
|  | unsigned int | nComponents,
|  | CommandQueue | queue
| ) |  |

Generates VectorOfElementsData with `nComponents` Elements acl::Array of type `with` size `length`.

## generateVEData() [2/4]

VectorOfElementsData acl::generateVEData | ( | unsigned int | length,
|  | TypeID | typeID,
|  | unsigned int | nComponents = `1`
| ) |  |

Generates VectorOfElementsData with `nComponents` Elements acl::Array of type `with` size `length` and default queue.

## generateVEData() [3/4]

template<typename T >

VectorOfElementsData acl::generateVEData | ( | unsigned int | length,
|  | unsigned int | nComponents,
|  | CommandQueue | queue
| ) |  |

Generates VectorOfElements with `nComponents` Elements acl::Vector with size `length`.

## generateVEData() [4/4]

template<typename T >

VectorOfElementsData acl::generateVEData | ( | unsigned int | length,
|  | unsigned int | nComponents = `1`
| ) |  |

Generates VectorOfElements with `nComponents` Elements acl::Vector with size `length` and default queue.

## generateVEDataSub()

template<typename T >

VectorOfElements acl::generateVEDataSub | ( | T | ,
|  | unsigned int | sublength,
|  | unsigned int | length,
|  | unsigned int | nComponents,
|  | CommandQueue | queue
| ) |  |

Generates VectorOfElements with `nComponents` Elements acl::Subvector with size `sublength`. `length` is the vector size.

## generateVEGroupID()

VectorOfElements acl::generateVEGroupID | ( |  | ) |

Generates VectorOfElements with one Element of type GroupID

## generateVEIndex()

VectorOfElements acl::generateVEIndex | ( | unsigned int | size = `0` | ) |

Generates VectorOfElements with one Element of type Index

Examples
  testPrivateVar.cc, testReductionFunction.cc, and testVectorOfElements.cc.

## generateVEIndexExt()

VectorOfElements acl::generateVEIndexExt | ( | unsigned int | size = `0` | ) |

Generates VectorOfElements with one Element of type Index

## generateVELocalArray()

VectorOfElements acl::generateVELocalArray | ( | unsigned int | componentSize,
|  | TypeID | typeID,
|  | unsigned int | size
| ) |  |

Generates VectorOfElements with `size` Elements acl::LocalArray of type `typeID` with size `componentSize`.

## generateVEPolynom()

VectorOfElements acl::generateVEPolynom | ( | VectorOfElements | x,
|  | VectorOfElements | coefs
| ) |  |

Generates VectorOfElements which 1 element correspond to polynom for `x` with `coefs` The polinom is \( x^{n-1}*coefs_0+x^{n-2}coefs_1+...+coefs_{n-1} \) The polynom contains mad fanction with type specification the type is defined by `x`

## generateVEPrivateArray() [1/4]

template<typename T >

VectorOfElements acl::generateVEPrivateArray | ( | const vector< asl::AVec< T >> & | data | ) |

Generates VectorOfElements with `size` Elements acl::PrivateArray of type `with` data defined by `data`.

## generateVEPrivateArray() [2/4]

template<typename T >

VectorOfElements acl::generateVEPrivateArray | ( | const vector< asl::AVec< T >> & | data,
|  | TypeID | typeID
| ) |  |

Generates VectorOfElements with `size` Elements acl::PrivateArray of type `with` size `componentSize`.

## generateVEPrivateArray() [3/4]

template<typename T >

VectorOfElements acl::generateVEPrivateArray | ( | const vector< T > & | data | ) |

Generates VectorOfElements with `size` Elements acl::PrivateArray of type `with` data defined by `data`.

## generateVEPrivateArray() [4/4]

template<typename T >

VectorOfElements acl::generateVEPrivateArray | ( | const vector< T > & | data,
|  | TypeID | typeID
| ) |  |

Generates VectorOfElements with `size` Elements acl::PrivateArray of type `with` size `componentSize`.

## generateVEPrivateVariable() [1/2]

template<typename T >

VectorOfElements acl::generateVEPrivateVariable | ( | unsigned int | n | ) |

Generates VectorOfElements with `n` Element of acl::PrivateVariable.

Examples
  testPrivateVar.cc.

## generateVEPrivateVariable() [2/2]

VectorOfElements acl::generateVEPrivateVariable | ( | unsigned int | n,
|  | TypeID | t
| ) |  |

Generates VectorOfElements with `n` Element of acl::PrivateVariable with type `t`.

## generateVEShftedElements() [1/2]

VectorOfElements acl::generateVEShftedElements | ( | VectorOfElements | a,
|  | const std::vector< int > & | offset
| ) |  |

Generates VectorOfElements which contains SubElements of the corresponding element of `a`.

## generateVEShftedElements() [2/2]

VectorOfElements acl::generateVEShftedElements | ( | VectorOfElements | a,
|  | int | offset
| ) |  |

Generates VectorOfElements which contains SubElements of the corresponding element of `a`.

## generateVEShiftedElements()

VectorOfElements acl::generateVEShiftedElements | ( | VectorOfElements | a,
|  | VectorOfElements | offset
| ) |  |

Generates VectorOfElements which contains SubElements of the corresponding element of `a`.

## generateVESubElements() [1/2]

VectorOfElements acl::generateVESubElements | ( | VectorOfElements | a,
|  | unsigned int | length,
|  | int | offset
| ) |  |

Generates VectorOfElements which contains SubElements of the corresponding element of `a`.

## generateVESubElements() [2/2]

VectorOfElements acl::generateVESubElements | ( | VectorOfElements | a,
|  | unsigned int | length,
|  | VectorOfElements | offset
| ) |  |

Generates VectorOfElements which contains SubElements of the corresponding element of `a`.

## generateVEVariableR() [1/4]

template<typename T >

VectorOfElements acl::generateVEVariableR | ( | asl::AVec< T > & | a | ) |

Generates VectorOfElements with nD(a) Element acl::VariableReference with reference on `a`[i] <>

## generateVEVariableR() [2/4]

template<typename T >

VectorOfElements acl::generateVEVariableR | ( | T & | a | ) |

Generates VectorOfElements with 1 Element acl::VariableReference with reference on `a`.

## generateVEVariableR() [3/4]

template<typename T >

VectorOfElements acl::generateVEVariableR | ( | T & | a,
|  | T & | b
| ) |  |

Generates VectorOfElements with 2 Element acl::VariableReference with references on `a` and `b`.

## generateVEVariableR() [4/4]

template<typename T >

VectorOfElements acl::generateVEVariableR | ( | T & | a,
|  | T & | b,
|  | T & | c
| ) |  |

Generates VectorOfElements with 3 Element acl::VariableReference with references on `a`, `b` and `c`.

## generateVEVariableSP() [1/4]

template<typename T >

VectorOfElements acl::generateVEVariableSP | ( | std::shared_ptr< asl::AVec< T >> | a | ) |

Generates VectorOfElements with nD(a) Element acl::VariableReference with reference on `a`[i] <>

## generateVEVariableSP() [2/4]

template<typename T >

VectorOfElements acl::generateVEVariableSP | ( | std::shared_ptr< T > | a | ) |

Generates VectorOfElements with 1 Element acl::VariableReference with reference on `a`.

Examples
  testVectorOfElements.cc.

## generateVEVariableSP() [3/4]

template<typename T >

VectorOfElements acl::generateVEVariableSP | ( | std::shared_ptr< T > | a,
|  | std::shared_ptr< T > | b
| ) |  |

Generates VectorOfElements with 2 Element acl::VariableReference with references on `a` and `b`.

## generateVEVariableSP() [4/4]

template<typename T >

VectorOfElements acl::generateVEVariableSP | ( | std::shared_ptr< T > | a,
|  | std::shared_ptr< T > | b,
|  | std::shared_ptr< T > | c
| ) |  |

Generates VectorOfElements with 3 Element acl::VariableReference with references on `a`, `b` and `c`.