1template<
int Size,
typename Scalar>
3 for (
int i=0; i<Size; i++) {
4 _values[i] = *(values+i);
13template<
int Size,
typename Scalar>
16 for (
typename std::initializer_list<Scalar>::const_iterator p = values.begin(); p!=values.end(); p++) {
23template<
int Size,
typename Scalar>
25 for (
int i=0; i<Size; i++) {
26 _values[i] = value[i] ? 1 : 0;
30template<
int Size,
typename Scalar>
34 #if !defined(GPUOffloadingOMP) and !defined(GPUOffloadingSYCL) and !defined(SharedSYCL)
41 for (
int i=0; i<Size; i++) {
42 _values[i] = toAssign.
_values[i];
47template<
int Size,
typename Scalar>
52 #if !defined(GPUOffloadingOMP) and !defined(GPUOffloadingSYCL) and !defined(SharedSYCL)
59 for (
int i=0; i<Size; i++) {
64template<
int Size,
typename Scalar>
66 const Scalar& initialValue
69 for (
int i=0; i < Size; i++) {
74template<
int Size,
typename Scalar>
79template<
int Size,
typename Scalar>
81 std::ostringstream os;
83 for (
int i=0; i < Size; i++ ) {
93template <
typename NewScalarType,
int Size,
typename Scalar>
96 for (
int i=0; i < Size; i++ ) {
97 result(i) = vector(i);
tarch::la::Vector< Size, NewScalarType > convertScalar(const tarch::la::Vector< Size, Scalar > &vector)
std::string toString(MemoryLocation value)
int size() const
Returns the number of components of the vector.
Vector() InlineMethod=default
Clang requires the always_inline attribute, as it otherwise makes weird decisions.
Vector< Size, Scalar > & operator=(const Vector< Size, Scalar > &toAssign) InlineMethod
Assignment operator for any vector type.