26#ifndef ASLVECTORSDYNAMICLENGTH_H
27#define ASLVECTORSDYNAMICLENGTH_H
30#include "../aslUtilities.h"
39 template <
typename T =
double>
class AVec
48 inline explicit AVec(
unsigned int s);
51 template <
typename Tv>
54 template <
typename Tv>
56 template <
typename Tv>
61 inline const unsigned int &
getSize()
const;
104 for (
unsigned int i(0); i<size; ++i)
114 x(
new T[
a.getSize()]),
117 for (
unsigned int i(0); i < size; ++i)
122 x(
new T[
a.getSize()]),
125 for (
unsigned int i(0); i < size; ++i)
130 template <
typename T>
template<
typename Tv>
134 for (
unsigned int i(0); i<size; ++i)
139 template <
typename T>
143 for (
unsigned int i(0); i<size; ++i)
148 template <
typename T>
template<
typename Tv>
152 for (
unsigned int i(0); i<size; ++i)
158 template <
typename T>
164 template <
typename T>
170 template <
typename T>
211 for (
unsigned int i(0); i<
a.getSize(); ++i)
216 template <
typename T>
222 template <
typename T>
AVec< T > makeAVec(T a1, T a2, T a3)
const T & operator[](unsigned int i) const
AVec< T > makeAVec(T a1, T a2)
AVec< T > makeAVec(T a1, T a2, T a3, T a4)
const unsigned int nD(const AVec< T > a)
T & operator[](unsigned int i)
AVec(const AVec< Tv > &a)
AVec(unsigned int s, T a)
const AVec< T > & operator=(const std::vector< Tv > &a)
const AVec< T > & operator=(const AVec< T > &a)
const unsigned int & getSize() const
std::ostream & operator<<(std::ostream &output, const AVec< T > &a)
const AVec< T > & operator=(const AVec< Tv > &a)
void resize(unsigned int newSize)
const unsigned int nD(const Block &b)
SPDataWrapperACLData generateDataContainerACL_SP(const Block &b, unsigned int n=1)
generates pointer to ACL Data field with n components
void errorMessage(cl_int status, const char *errorMessage)
Prints errorMessage and exits depending on the status.
Advanced Simulation Library.
std::ostream & operator<<(std::ostream &output, const std::vector< T > &vector)
Prints elements of the vector separated by space.